@littlemissrobot/sass-mixins
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "@littlemissrobot/sass-mixins", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Little Miss Robot sass mixins library that helps execute reusable and complex tasks.", | ||
@@ -5,0 +5,0 @@ "main": "index.scss", |
@@ -45,3 +45,3 @@ # Little Miss Robot - Sass mixins | ||
```scss | ||
@include _mixins.load-font(...); | ||
@include _mixins.responsive-props(...); | ||
``` | ||
@@ -51,26 +51,2 @@ | ||
### load-font($name, $url, $font-weight, $font-style, $font-display) | ||
Load font files with the extensions **.woff** and **.woff2**. Every version of | ||
the font should have the same name. | ||
Parameters: | ||
- **$name**: The name the font should have | ||
- **$url**: The location of the font-files | ||
- **$font-weight** (optional): The weight the font has | ||
- **$font-style** (optional): The style the font has | ||
- **$font-display** (optional): The way the font should be displayed when loaded | ||
```scss | ||
@use "@littlemissrobot/sass-mixins" as _mixins; | ||
@include _mixins.load-font( | ||
"Open Sans", | ||
"./assets/fonts/open-sans", | ||
"300", | ||
normal, | ||
swap | ||
); | ||
``` | ||
### responsive-props($props, $responsive, $min, $max) | ||
@@ -77,0 +53,0 @@ |
Sorry, the diff of this file is not supported yet
5653
6
71