fabric
css
.Button, [class^='Button--'], [class*=' Button--']
.Button,
[class^='Button--'],
[class*=' Button--'] { ... }
fabric base placeholders
placeholders
a
%a { ... }
Description
Sets background color from color map
Requires
- [mixin]
color
- [mixin]
transition
- [mixin]
color
- [function]
get-color
- [variable]
colors
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [external]
SassCore::lightens
article
%article { ... }
Description
Sets a default margin
Requires
- [mixin]
margin
blockquote
%blockquote { ... }
Description
Creates a blockquote effect
Requires
- [mixin]
padding
body
%body { ... }
code
%code { ... }
h1
%h1 { ... }
Requires
h2
%h2 { ... }
Requires
h3
%h3 { ... }
Requires
h4
%h4 { ... }
Requires
h5
%h5 { ... }
Requires
h6
%h6 { ... }
Requires
Heading
%Heading { ... }
Requires
- [mixin]
margin
Used by
hr
%hr { ... }
Requires
html
%html { ... }
Requires
- [mixin]
color
- [mixin]
font
- [variable]
font-family
img
%img { ... }
margins
%margins { ... }
Requires
- [mixin]
margin
ol
%ol { ... }
Requires
- [mixin]
padding
p
%p { ... }
Requires
- [mixin]
margin
pre
%pre { ... }
root
%root { ... }
Requires
- [variable]
colors
strong
%strong { ... }
table
%table { ... }
th
%th { ... }
th and td
%th and td { ... }
Requires
- [mixin]
padding
TextInput
%TextInput { ... }
Requires
ul
%ul { ... }
Requires
- [mixin]
padding
fabric button placeholders
placeholders
Button
%Button { ... }
Requires
- [mixin]
font
- [mixin]
button-colors
- [mixin]
button-hover
- [mixin]
button-size
- [mixin]
transition
- [variable]
buttons-height
fabric component placeholders
placeholders
Clearfix
%Clearfix { ... }
Description
Automatically clear its child elements when used.
Used by
- [placeholder]
Wrap
Grid
%Grid { ... }
Requires
- [mixin]
media
- [function]
camelize
- [function]
list-reverse
- [function]
camelize
- [function]
camelize
- [function]
get-grid-gap
- [function]
camelize
- [variable]
grid-columns
- [variable]
grid-columns
- [variable]
grid-breakpoints
- [variable]
grid-breakpoints
- [variable]
grid-columns
- [variable]
grid-columns
- [variable]
grid-gaps
ResponsiveRatio
%ResponsiveRatio { ... }
ResponsiveRatio--1x2
%ResponsiveRatio--1x2 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--1x2
ResponsiveRatio--2x1
%ResponsiveRatio--2x1 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--2x1
ResponsiveRatio--2x3
%ResponsiveRatio--2x3 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--2x3
ResponsiveRatio--3x1
%ResponsiveRatio--3x1 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--3x1
ResponsiveRatio--3x2
%ResponsiveRatio--3x2 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--3x2
ResponsiveRatio--3x4
%ResponsiveRatio--3x4 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--3x4
ResponsiveRatio--4x1
%ResponsiveRatio--4x1 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--4x1
ResponsiveRatio--4x3
%ResponsiveRatio--4x3 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--4x3
ResponsiveRatio--5x1
%ResponsiveRatio--5x1 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--5x1
ResponsiveRatio--5x2
%ResponsiveRatio--5x2 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--5x2
ResponsiveRatio--5x3
%ResponsiveRatio--5x3 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--5x3
ResponsiveRatio--5x4
%ResponsiveRatio--5x4 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--5x4
ResponsiveRatio--16x9
%ResponsiveRatio--16x9 { ... }
Requires
- [mixin]
responsive-ratio
Used by
- [css]
.ResponsiveRatio--16x9
Wrap
%Wrap { ... }
Requires
- [mixin]
responsive-property
- [function]
_
- [function]
_
- [function]
_
- [placeholder]
Clearfix
- [variable]
layout-width
- [variable]
layout-padding
- [variable]
layout-padding
- [variable]
layout-padding
fabric components
css
.Clearfix
.Clearfix { ... }
Description
Extends the %Clearfix placeholder.
.Grid
.Grid { ... }
.Grid > div and .Grid-item
.Grid > div and .Grid-item { ... }
ResponsiveRatio-- and ResponsiveRatio--
ResponsiveRatio-- and ResponsiveRatio-- { ... }
[class*=' ResponsiveRatio--']
[class*=' ResponsiveRatio--'] { ... }
.ResponsiveRatio--1x2
.ResponsiveRatio--1x2 { ... }
.ResponsiveRatio--2x1
.ResponsiveRatio--2x1 { ... }
.ResponsiveRatio--2x3
.ResponsiveRatio--2x3 { ... }
.ResponsiveRatio--3x1
.ResponsiveRatio--3x1 { ... }
.ResponsiveRatio--3x2
.ResponsiveRatio--3x2 { ... }
.ResponsiveRatio--3x4
.ResponsiveRatio--3x4 { ... }
.ResponsiveRatio--4x1
.ResponsiveRatio--4x1 { ... }
.ResponsiveRatio--4x3
.ResponsiveRatio--4x3 { ... }
.ResponsiveRatio--5x1
.ResponsiveRatio--5x1 { ... }
.ResponsiveRatio--5x2
.ResponsiveRatio--5x2 { ... }
.ResponsiveRatio--5x3
.ResponsiveRatio--5x3 { ... }
.ResponsiveRatio--5x4
.ResponsiveRatio--5x4 { ... }
.ResponsiveRatio--16x9
.ResponsiveRatio--16x9 { ... }
.Wrap
.Wrap { ... }
fabric functions
functions
_
@function _($_value) { ... }
Description
Shorthand to x-to-px
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the height of the button | Number | — none |
Returns
String
Requires
- [function]
x-to-px
Used by
- [placeholder]
Wrap
- [placeholder]
Wrap
- [placeholder]
Wrap
- [function]
get-grid-gap
- [function]
get-text-transform
- [mixin]
button-size
- [mixin]
responsive-property
- [mixin]
responsive-property
- [mixin]
triangle
add-unit
@function add-unit($_value, $_unit) { ... }
Description
Add unit to variable
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the value you which you want to add to the unit | String | — none |
$_unit | Set the unit you wish to use | String | — none |
Returns
Property
Requires
- [external]
SassCore::unquote
- [function]
remove-unit
camelize
@function camelize($_string) { ... }
Description
Convert string to camel-case
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_string | Set the string you which you want to camelize | String | — none |
Returns
String
Requires
- [external]
SassCore::str-length
- [external]
SassCore::str-slice
- [function]
contain
- [function]
capitalize
Used by
capitalize
@function capitalize($_string) { ... }
Description
Capitalize a string
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_string | Set the string you which you want to capitalize | String | — none |
Returns
String
Requires
- [external]
SassCore::to-upper-case
- [external]
SassCore::str-slice
Used by
circumference
@function circumference($r) { ... }
Description
Circumference
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$r | Set the radius you want to the circumference of | String | — none |
Returns
Number
Requires
- [variable]
math-pi
contain
@function contain($list, $value) { ... }
Description
Check if word (or list) contains value
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$list | Set the radius you want to the circumference of | String | — none |
$value | Set the radius you want to the circumference of | String | — none |
Returns
Boolean
Used by
- [function]
camelize
explode
@function explode($_string, $dem) { ... }
Description
Explode a string, cause we can
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_string | Set the string you which you want to explode | String | — none |
$dem | Set the delimiter | String | — none |
Returns
Map
Requires
- [external]
SassCore::str-length
- [external]
SassCore::str-index
- [external]
SassCore::append
- [external]
SassCore::type-of
- [external]
SassCore::str-slice
Used by
- [mixin]
animation-timing-function
- [mixin]
linear-gradient
- [mixin]
responsive-ratio
- [mixin]
responsive-ratio
- [mixin]
transition-timing-function
- [mixin]
transition
get-color
@function get-color($_color, $_alpha: 1, $_return-hex: false) { ... }
Description
Shorthand to get color
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_color | Set the color | String | — none |
$_alpha | Set the alpha the color | String | 1 |
$_return-hex | true to return a hex value for the color | String | false |
Returns
Mixed
Requires
- [function]
string
- [variable]
colors
- [variable]
colors-use-variables
- [variable]
colors
- [external]
SassCore::string
- [external]
SassCore::type-of
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [external]
SassCore::var
- [external]
SassCore::map-get
- [external]
SassCore::rgba
Used by
- [placeholder]
a
- [placeholder]
hr
- [placeholder]
TextInput
- [placeholder]
TextInput
- [placeholder]
TextInput
- [mixin]
background-color
- [mixin]
button-colors
- [mixin]
button-colors
- [mixin]
color
- [mixin]
triangle
get-font-size
@function get-font-size($_value, $_size: '') { ... }
Description
Shorthand to get font size
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the font size type | String | — none |
$_size | — none | String | '' |
Returns
Property
or Null
Requires
- [variable]
font-size
- [variable]
font-size
- [variable]
font-size
- [external]
SassCore::type-of
- [external]
SassCore::map-get
Used by
- [mixin]
font-size
- [mixin]
line-height
get-font-weight
@function get-font-weight($_value, $_size: '') { ... }
Description
Shorthand to get font weight
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the font weight type | String | — none |
$_size | — none | String | '' |
Returns
Number
or Null
Requires
- [variable]
font-weight
- [variable]
font-weight
- [variable]
font-weight
- [external]
SassCore::type-of
- [external]
SassCore::map-get
Used by
- [mixin]
font-weight
get-grid-gap
@function get-grid-gap($_value) { ... }
Description
Shorthand to get grid gap
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the grid gap size | String | — none |
Returns
Property
or 0
or Null
Requires
- [variable]
grid-gaps
- [variable]
grid-gaps
- [external]
SassCore::type-of
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [function]
string
- [function]
_
Used by
get-letter-spacing
@function get-letter-spacing($_value, $_size: '') { ... }
Description
Shorthand to get letter spacing
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the letter-spacing type | String | — none |
$_size | Set the letter-spacing size | String | '' |
Returns
Number
or Null
Requires
- [variable]
letter-spacing
- [variable]
letter-spacing
- [variable]
letter-spacing
- [external]
SassCore::type-of
- [external]
SassCore::map-get
Used by
- [mixin]
letter-spacing
get-line-height
@function get-line-height($_value, $_size: '') { ... }
Description
Shorthand to get line height
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the get-line-height type | String | — none |
$_size | Set the get-line-height size | String | '' |
Returns
Property
or Null
Requires
- [variable]
line-height
- [variable]
line-height
- [variable]
line-height
- [external]
SassCore::type-of
- [external]
SassCore::map-get
Used by
- [mixin]
line-height
get-spacing
@function get-spacing($_value) { ... }
Description
Shorthand to get spacing unit
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the spacing size | String | — none |
Returns
Property
or Null
Requires
- [function]
x-to-px
- [external]
SassCore::type-of
- [external]
SassCore::map-get
get-text-transform
@function get-text-transform($_value, $_size: '') { ... }
Description
Shorthand to get text transform
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the grid gap size | String | — none |
$_size | Set the grid gap size | String | '' |
Returns
Property
or Null
Requires
- [variable]
text-transform
- [variable]
text-transform
- [variable]
text-transform
- [external]
SassCore::type-of
- [external]
SassCore::map-get
- [function]
string
- [function]
_
Used by
- [mixin]
text-transform
get-timing-function
@function get-timing-function($_value) { ... }
Description
Sets transition timing function
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | This sets the animation functions | Property | — none |
Returns
Property
Requires
- [variable]
timing-functions
- [variable]
timing-functions
- [external]
SassCore::type-of
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [external]
SassCore::map-get
- [external]
SassCore::unquote
- [external]
SassCore::inspect
Used by
- [mixin]
animation-timing-function
- [mixin]
transition-timing-function
get-transition-speed
@function get-transition-speed($_value) { ... }
Description
Shorthand to get transition speed
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | This sets the animation speed | String | — none |
Requires
- [variable]
transitions-speed
- [variable]
transitions-speed
- [variable]
transitions-speed
- [external]
SassCore::str-slice
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [external]
SassCore::map-get
hsb
@function hsb($h-hsb, $s-hsb, $b-hsb, $a) { ... }
Description
Convert hsb to hsl color
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$h-hsb | Set the hue of the hsla color | Number | — none |
$s-hsb | Set the saturation of the hsla color | Number | — none |
$b-hsb | Set the lightness of the hsla color | Number | — none |
$a | Set the alpha of the hsla color | Number | — none |
Returns
Color
Requires
- [external]
SassCore::hsla
implode
@function implode($list, $separator: ',') { ... }
Description
Shorthand to get transition speed
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$list | Set the map | Map | — none |
$separator | Set the delimiter | Map | ',' |
Returns
String
Requires
- [external]
SassCore::length
- [external]
SassCore::nth
is-number
@function is-number($_value) { ... }
Description
Is a number?
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Check to see if this is a number | String | — none |
Returns
Boolean
Requires
- [external]
SassCore::type-of
Used by
- [function]
is-x-unit
- [function]
remove-unit
is-string
@function is-string($_value) { ... }
Description
Is a string?
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Check to see if this is a string | String | — none |
Returns
Boolean
Requires
- [external]
SassCore::type-of
is-x-unit
@function is-x-unit($_value) { ... }
Description
Is an x unit?
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Check to see if value is a px value | Mixed | — none |
Returns
Boolean
Requires
- [function]
string
- [function]
is-number
- [function]
number
- [external]
SassCore::str-length
- [external]
SassCore::str-slice
- [external]
SassCore::is-number
- [external]
SassCore::number
Used by
- [function]
x-to-px
list-reverse
@function list-reverse($_list) { ... }
Description
Reverse the order of a list
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_list | Set the list you want to reverse | List | — none |
Returns
Boolean
Requires
- [external]
SassCore::type-of
- [external]
SassCore::length
- [external]
SassCore::append
Used by
- [placeholder]
Grid
map-reverse
@function map-reverse($_map) { ... }
Description
Reverse the order of a map
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_map | Set the map you want to reverse | Map | — none |
Returns
Map
Requires
- [external]
SassCore::type-of
- [external]
SassCore::map-keys
- [external]
SassCore::length
- [external]
SassCore::map-merge
- [external]
SassCore::map-get
- [external]
SassCore::nth
mod
@function mod($number, $divisor) { ... }
Description
Finds the remainder after division of one number by another
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$number | Set the number you want find the reminder of | Map | — none |
$divisor | Set number you want to divide by | Map | — none |
Returns
Number
Requires
- [external]
SassCore::type-of
number
@function number($string) { ... }
Description
Number
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$string | Set the string you want to turn into a number | String | — none |
Returns
Number
Requires
- [external]
SassCore::str-length
- [external]
SassCore::str-slice
- [external]
SassCore::index
- [external]
SassCore::nth
- [function]
unit-length
Used by
- [function]
is-x-unit
- [function]
remove-unit
- [mixin]
responsive-ratio
opposite-position
@function opposite-position($_position) { ... }
Description
Get the opposite position of a position
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_position | Set the position you want to find the opposite of | String | — none |
Returns
String
Requires
- [external]
SassCore::unquote
- [external]
SassCore::map-get
- [function]
validate-position
Used by
- [mixin]
triangle
pascalize
@function pascalize($_position) { ... }
Description
Convert string to pascal-case
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_position | Set the string you want to convert to pascal-case | String | — none |
Returns
String
Requires
- [function]
capitalize
- [function]
camelize
pi
@function pi() { ... }
Description
Pi
Parameters
None.
Returns
Number
—Returns PI the number
Requires
- [variable]
math-pi
pow
@function pow($number, $exponent) { ... }
Description
Returns the base to the exponent power
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$number | Set the base number | String | — none |
$exponent | Set the the exponent used to raise the base | String | — none |
Returns
Number
px-to-rem
@function px-to-rem($_value) { ... }
Description
Converts a pixel value into a root em based value
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the pixel value you want to turn into a rem | String | — none |
Returns
Property
Requires
- [variable]
font-size
- [external]
SassCore::map-get
- [function]
remove-unit
remove-unit
@function remove-unit($_value) { ... }
Description
Removes any unit from the variable
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the pixel value remove the unit from | String | — none |
Returns
Number
Requires
- [external]
SassCore::str-length
- [external]
SassCore::str-slice
- [function]
string
- [function]
is-number
- [function]
number
Used by
string
@function string($_value) { ... }
Description
Convert to string
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the value you want to turn into a string | String | — none |
Returns
String
Requires
- [external]
SassCore::inspect
Used by
- [function]
get-color
- [function]
get-grid-gap
- [function]
get-text-transform
- [function]
is-x-unit
- [function]
remove-unit
- [function]
validate-position
unit-length
@function unit-length($number, $unit) { ... }
Description
Length
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$number | Set the number you want to append to the unit type | Number | — none |
$unit | Set the type of unit you want the number to appended to | String | — none |
Returns
Number
or Boolean
Requires
- [external]
SassCore::index
- [external]
SassCore::nth
Used by
- [function]
number
validate-position
@function validate-position($_position) { ... }
Description
Validate (and normalize) a position value
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_position | Set the position you want to validate | String | — none |
Returns
String
Requires
- [external]
SassCore::index
- [external]
SassCore::unquote
- [function]
string
Used by
- [function]
opposite-position
- [mixin]
triangle
x-to-px
@function x-to-px($_value: '') { ... }
Description
Converts an 'x' unit into px based on the $layout-spacing variable
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | This sets the value to px | Mixed | '' |
Returns
Mixed
Requires
- [function]
is-x-unit
- [function]
remove-unit
- [variable]
layout-spacing
- [external]
SassCore::type-of
- [external]
SassCore::unquote
- [external]
SassCore::is-x-unit
- [external]
SassCore::remove-unit
Used by
- [function]
_
- [function]
get-spacing
- [mixin]
margin
- [mixin]
padding
fabric mixins
mixins
animation-timing-function
@mixin animation-timing-function($_functions) { ... }
Description
Sets animation timing function
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_functions | This sets which timing functions you want to use | Map | — none |
Requires
- [external]
SassCore::length
- [external]
SassCore::type-of
- [external]
SassCore::nth
- [function]
explode
- [function]
get-timing-function
- [external]
SassCore::append
background-color
@mixin background-color($_color, $_alpha) { ... }
Description
Sets background color from color map
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_color | Set the color of the background | Map | — none |
$_alpha | Set the alpha of the background | Map | — none |
Requires
- [function]
get-color
button-colors
@mixin button-colors($_background: 'accent', $_border: transparent, $_text: 'white') { ... }
Description
Creates color styles for a button
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_background | This sets the background color | String | 'accent' |
$_border | This sets the border color | String | transparent |
$_text | This sets the text color | String | 'white' |
Requires
Used by
- [placeholder]
Button
- [mixin]
button-hover
button-hover
@mixin button-hover($_background: 'accent', $_border: transparent, $_text: 'white') { ... }
Description
Creates a hover style effect
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_background | This sets the background color | String | 'accent' |
$_border | This sets the border color | String | transparent |
$_text | This sets the text color | String | 'white' |
Requires
- [mixin]
hover
- [mixin]
button-colors
Used by
- [placeholder]
Button
button-size
@mixin button-size($_height: '', $_padding: 3px, $_border-width: 2px, $_radius: 3px) { ... }
Description
Creates the styles for button sizes
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_height | Set the height of the button | String | '' |
$_padding | Set the padding of the button | String | 3px |
$_border-width | Set the border width of the button | String | 2px |
$_radius | Set the border radius of the button | String | 3px |
Requires
Used by
- [placeholder]
Button
color
@mixin color($_color: '', $_alpha: 1) { ... }
Description
Sets color from color map
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_color | Set the color | String | '' |
$_alpha | Set the alpha the color | String | 1 |
Requires
- [function]
get-color
Used by
drop-shadow
@mixin drop-shadow($_color: 'black', $_elevation: 'medium', $_inset: false) { ... }
Description
Set drop shadow based on default
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_color | Set the color of the drop shadow | String | 'black' |
$_elevation | Set the level of visible appearance of distance from the ground | String | 'medium' |
$_inset | Set if the drop shadow show be inset | String | false |
Requires
- [variable]
colors
- [variable]
colors
- [variable]
drop-shadows-elevations
- [variable]
drop-shadows-alpha
- [variable]
drop-shadows-elevations
- [external]
SassCore::type-of
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [external]
SassCore::map-get
- [external]
SassCore::rgba
- [external]
SassCore::append
- [external]
SassCore::unquote
[private] font-size
@mixin font-size($_value, $_size: '') { ... }
Description
Sets font size responsively
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the font size type | String | — none |
$_size | — none | String | '' |
Requires
- [mixin]
responsive-property
- [function]
get-font-size
- [variable]
font-size
- [external]
SassCore::type-of
- [external]
SassCore::index
- [external]
SassCore::map-keys
Used by
- [mixin]
font
font-weight
@mixin font-weight($_value, $_size: '') { ... }
Description
Sets font weight responsively
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the font weight | String | — none |
$_size | — none | String | '' |
Requires
- [mixin]
responsive-property
- [variable]
font-weight
- [external]
SassCore::type-of
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [function]
get-font-weight
Used by
- [mixin]
font
font
@mixin font($_value, $_size: '') { ... }
Description
Sets font responsively
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | — none | String | — none |
$_size | — none | String | '' |
Requires
- [mixin]
font-size
- [mixin]
font-weight
- [mixin]
letter-spacing
- [mixin]
line-height
- [mixin]
text-transform
Used by
grid-gaps
@mixin grid-gaps($_key: 'normal') { ... }
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_key | Set the grid gap | String | 'normal' |
Requires
- [function]
get-grid-gap
hover
@mixin hover() { ... }
Description
This creates the styles for a hover effect
Parameters
None.
Used by
- [mixin]
button-hover
letter-spacing
@mixin letter-spacing($_value, $_size: '') { ... }
Description
Sets letter spacing responsively
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the letter spacing type | String | — none |
$_size | — none | String | '' |
Requires
- [mixin]
responsive-property
- [variable]
letter-spacing
- [external]
SassCore::type-of
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [function]
get-letter-spacing
Used by
- [mixin]
font
line-height
@mixin line-height($_value, $_size: '') { ... }
Description
Sets line height responsively
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the line height type | String | — none |
$_size | — none | String | '' |
Requires
- [mixin]
responsive-property
- [variable]
line-height
- [external]
SassCore::type-of
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [external]
SassCore::nth
- [function]
get-line-height
- [function]
get-font-size
Used by
- [mixin]
font
linear-gradient
@mixin linear-gradient($_direction, $_color-stops: '') { ... }
Description
Multi color gradients
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_direction | Set the gradient direction | String | — none |
$_color-stops | Set the color stop values | Map | '' |
Requires
margin
@mixin margin($_margins: 3x auto, $_breakpoint: '') { ... }
Description
Sets margins relative to $layout-spacing
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_margins | Set the margin amount | String | 3x auto |
$_breakpoint | Set the color stop values | Map | '' |
Requires
Used by
padding
@mixin padding($_paddings: 3x auto, $_breakpoint: '') { ... }
Description
Sets paddings relative to $layout-spacing
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_paddings | — none | String | 3x auto |
$_breakpoint | — none | String | '' |
Requires
Used by
- [placeholder]
blockquote
- [placeholder]
ol
- [placeholder]
th and td
- [placeholder]
TextInput
- [placeholder]
ul
- [mixin]
button-size
responsive-margin
@mixin responsive-margin($_values) { ... }
Description
Sets margins based on the responsive key:value pairs defined in a map
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_values | Set margin values | String | — none |
Requires
responsive-property
@mixin responsive-property($_property, $_values, $_format: false) { ... }
Description
Sets a property based on the responsive key:value pairs defined in a map
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_property | Set the property you want to be responsive | String | — none |
$_values | Set the font size type | String | — none |
$_format | Set the font size type | String | false |
Requires
Used by
- [placeholder]
Wrap
- [mixin]
font-size
- [mixin]
font-weight
- [mixin]
letter-spacing
- [mixin]
line-height
- [mixin]
text-transform
responsive-ratio
@mixin responsive-ratio($_ratio) { ... }
Description
Sets responsive ratio on an object
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_ratio | Set the property you want to be responsive | String | — none |
Requires
- [function]
explode
- [function]
explode
- [external]
SassCore::nth
- [external]
SassCore::explode
- [external]
SassCore::inspect
- [function]
number
Used by
- [placeholder]
ResponsiveRatio--1x2
- [placeholder]
ResponsiveRatio--2x1
- [placeholder]
ResponsiveRatio--2x3
- [placeholder]
ResponsiveRatio--3x1
- [placeholder]
ResponsiveRatio--3x2
- [placeholder]
ResponsiveRatio--3x4
- [placeholder]
ResponsiveRatio--4x1
- [placeholder]
ResponsiveRatio--4x3
- [placeholder]
ResponsiveRatio--5x1
- [placeholder]
ResponsiveRatio--5x2
- [placeholder]
ResponsiveRatio--5x3
- [placeholder]
ResponsiveRatio--5x4
- [placeholder]
ResponsiveRatio--16x9
text-transform
@mixin text-transform($_value, $_size: '') { ... }
Description
Sets text transform responsively
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_value | Set the text transform type | String | — none |
$_size | — none | String | '' |
Requires
- [mixin]
responsive-property
- [variable]
text-transform
- [external]
SassCore::type-of
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [function]
get-text-transform
Used by
- [mixin]
font
transition-timing-function
@mixin transition-timing-function($_functions) { ... }
Description
Sets transition timing function
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_functions | Set the transition timing function | Map | — none |
Requires
- [external]
SassCore::length
- [external]
SassCore::nth
- [external]
SassCore::type-of
- [external]
SassCore::append
- [function]
explode
- [function]
get-timing-function
transition
@mixin transition($_properties) { ... }
Description
Sets transition based on defaults
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_properties | This sets which transition functions you want to use | Properties | — none |
Requires
- [variable]
transitions-speed
- [variable]
transitions-speed
- [external]
SassCore::length
- [external]
SassCore::type-of
- [external]
SassCore::nth
- [external]
SassCore::index
- [external]
SassCore::map-keys
- [external]
SassCore::get-keys
- [function]
explode
- [external]
SassCore::append
- [external]
SassCore::unquote
- [external]
SassCore::inspect
Used by
- [placeholder]
a
- [placeholder]
TextInput
- [placeholder]
Button
- [placeholder]
has-animatedUnderline
triangle
@mixin triangle($_position: top, $_color: currentcolor, $_size: 2x, $_scale: 1) { ... }
Description
Make a triangle
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$_position | Set the position of the triangle | String | top |
$_color | Set the color of the triangle | String | currentcolor |
$_size | Set the size of the triangle | String | 2x |
$_scale | Set the scale of the triangle | String | 1 |
Requires
- [function]
_
- [function]
validate-position
- [function]
opposite-position
- [function]
get-color
fabric utility
css
.color-
.color- { ... }
.hide-
.hide- { ... }
.show-
.show- { ... }
fabric utility placeholders
placeholders
color-
%color- { ... }
Requires
- [function]
camelize
has-animatedUnderline
%has-animatedUnderline { ... }
Description
Animate a line underneath an element
Requires
- [mixin]
transition
- [external]
SassCore::calc
- [external]
SassCore::scaleX
hide-
%hide- { ... }
Requires
- [external]
SassCore::map-keys
- [external]
SassCore::unquote
- [function]
camelize
show-
%show- { ... }
Requires
fabric variables
variables
breakpoints
$breakpoints: (
'xx-small': 320px,
'x-small': 480px,
'small': 768px,
'medium': 1024px,
'large': 1200px,
'x-large': 1400px,
'xx-large': 1600px
) !default;
Description
Breakpoints
Used by
- [function]
im-intercepts-static-breakpoint
- [function]
get-expression-value
- [function]
get-expression-value
- [mixin]
media-context
- [mixin]
media-context
- [mixin]
media-context
- [mixin]
media-context
buttons-border-width
$buttons-border-width: 2px !default;
buttons-height
$buttons-height: 5x !default;
Used by
- [placeholder]
Button
buttons-padding
$buttons-padding: 3x !default;
buttons-radius
$buttons-radius: 3px !default;
buttons-background-color
$buttons-background-color: 'accent' !default;
buttons-border-color
$buttons-border-color: transparent !default;
buttons-text-color
$buttons-text-color: 'white' !default;
buttons-hover-background-color
$buttons-hover-background-color: 'accent' !default;
buttons-hover-border-color
$buttons-hover-border-color: transparent !default;
buttons-hover-text-color
$buttons-hover-text-color: 'white' !default;
colors-use-variables
$colors-use-variables: false !default;
Used by
- [function]
get-color
colors
$colors: (
'default': #232323,
'accent': #fe5000,
'black': #000,
'darker-gray': #232323,
'dark-gray': #4a4a4a,
'gray': #9b9b9b,
'light-gray': #dedede,
'lighter-gray': #fcfcfc,
'white': #fff
) !default;
Used by
- [placeholder]
a
- [placeholder]
root
- [function]
get-color
- [function]
get-color
- [mixin]
drop-shadow
- [mixin]
drop-shadow
- [mixin]
linear-gradient
- [mixin]
linear-gradient
drop-shadows-alpha
$drop-shadows-alpha: 0.2 !default;
Used by
- [mixin]
drop-shadow
drop-shadows-elevations
$drop-shadows-elevations: (
'lowest': ('0 1px 2px', '0 1px 3px'),
'low': ('0 3px 5px', '0 3px 10px'),
'medium': ('0 5px 5px', '0 10px 20px'),
'high': ('0 10px 10px', '0 15px 30px'),
'highest': ('0 15px 10px', '0 20px 40px')
) !default;
Used by
- [mixin]
drop-shadow
- [mixin]
drop-shadow
font-family
$font-family: Helvetica, Arial, sans-serif !default;
Used by
- [placeholder]
html
font-family--monospace
$font-family--monospace: monospace !default;
font-family--sans-serif
$font-family--sans-serif: Helvetica, Arial, sans-serif !default;
font-family--serif
$font-family--serif: serif !default;
font-size
$font-size: (
'base': 18px,
'h6': 16px,
'h5': 18px,
'h4': 24px,
'h3': 32px,
'h2': 40px,
'h1': 48px
) !default;
Used by
- [function]
get-font-size
- [function]
get-font-size
- [function]
get-font-size
- [function]
px-to-rem
- [mixin]
font-size
font-weight
$font-weight: (
'base': 400,
'h6': 400,
'h5': 400,
'h4': 400,
'h3': 400,
'h2': 400,
'h1': 400
) !default;
Used by
- [function]
get-font-weight
- [function]
get-font-weight
- [function]
get-font-weight
- [mixin]
font-weight
letter-spacing
$letter-spacing: (
'base': 0,
'h6': 0,
'h5': 0,
'h4': 0,
'h3': 0,
'h2': 0,
'h1': 0
) !default;
Used by
- [function]
get-letter-spacing
- [function]
get-letter-spacing
- [function]
get-letter-spacing
- [mixin]
letter-spacing
line-height
$line-height: (
'base': 32px,
'h6': 24px,
'h5': 24px,
'h4': 32px,
'h3': 40px,
'h2': 48px,
'h1': 48px
) !default;
Used by
- [function]
get-line-height
- [function]
get-line-height
- [function]
get-line-height
- [mixin]
line-height
text-transform
$text-transform: (
'base': none,
'h6': none,
'h5': none,
'h4': none,
'h3': none,
'h2': none,
'h1': none
) !default;
Used by
- [function]
get-text-transform
- [function]
get-text-transform
- [function]
get-text-transform
- [mixin]
text-transform
grid-columns
$grid-columns: 12 !default;
Used by
grid-breakpoints
$grid-breakpoints: (
'normal': ('small', 'medium', 'large')
) !default;
Used by
grid-gaps
$grid-gaps: (
'small': 2x,
'normal': 3x,
'large': 4x
) !default;
Used by
- [placeholder]
Grid
- [function]
get-grid-gap
- [function]
get-grid-gap
layout-padding
$layout-padding: 3x !default;
Used by
layout-spacing
$layout-spacing: 8px !default;
Used by
- [function]
x-to-px
layout-width
$layout-width: 1080px !default;
Used by
- [placeholder]
Wrap
math-pi
$math-pi: 3.14159265358979 !default;
Used by
- [function]
circumference
- [function]
pi
timing-functions
$timing-functions: (
'ease-in-sine': cubic-bezier(0.47, 0, 0.745, 0.715),
'ease-out-sine': cubic-bezier(0.39, 0.575, 0.565, 1),
'ease-in-out-sine': cubic-bezier(0.445, 0.05, 0.55, 0.95),
'ease-in-quad': cubic-bezier(0.55, 0.085, 0.68, 0.53),
'ease-out-quad': cubic-bezier(0.25, 0.46, 0.45, 0.94),
'ease-in-out-quad': cubic-bezier(0.455, 0.03, 0.515, 0.955),
'ease-in-cubic': cubic-bezier(0.55, 0.055, 0.675, 0.19),
'ease-out-cubic': cubic-bezier(0.215, 0.61, 0.355, 1),
'ease-in-out-cubic': cubic-bezier(0.645, 0.045, 0.355, 1),
'ease-in-quart': cubic-bezier(0.895, 0.03, 0.685, 0.22),
'ease-out-quart': cubic-bezier(0.165, 0.84, 0.44, 1),
'ease-in-out-quart': cubic-bezier(0.77, 0, 0.175, 1),
'ease-in-quint': cubic-bezier(0.755, 0.05, 0.855, 0.06),
'ease-out-quint': cubic-bezier(0.23, 1, 0.32, 1),
'ease-in-out-quint': cubic-bezier(0.86, 0, 0.07, 1),
'ease-in-expo': cubic-bezier(0.95, 0.05, 0.795, 0.035),
'ease-out-expo': cubic-bezier(0.19, 1, 0.22, 1),
'ease-in-out-expo': cubic-bezier(1, 0, 0, 1),
'ease-in-circ': cubic-bezier(0.6, 0.04, 0.98, 0.335),
'ease-out-circ': cubic-bezier(0.075, 0.82, 0.165, 1),
'ease-in-out-circ': cubic-bezier(0.785, 0.135, 0.15, 0.86),
'ease-in-back': cubic-bezier(0.6, -0.28, 0.735, 0.045),
'ease-out-back': cubic-bezier(0.175, 0.885, 0.32, 1.275),
'ease-in-out-back': cubic-bezier(0.68, -0.55, 0.265, 1.55)
) !default;
Description
Transitions
Used by
- [function]
get-timing-function
- [function]
get-timing-function
transitions-speed
$transitions-speed: (
'x-slow': 0.8s,
'slow': 0.6s,
'normal': 0.4s,
'fast': 0.2s,
'x-fast': 0.1s
) !default;
Used by
- [function]
get-transition-speed
- [function]
get-transition-speed
- [function]
get-transition-speed
- [mixin]
transition
- [mixin]
transition
wrap-padding
$wrap-padding: (
'narrow': $layout-padding,
'no-padding': $layout-padding
) !default;
wrap-width
$wrap-width: (
'narrow': $layout-width * 2/3,
'no-padding': $layout-width
) !default;
include media
for browsers that don't support media queries.
functions
im-log
@function im-log($message) { ... }
Description
Log a message either with @error
if supported else with @warn
, using feature-exists('at-error')
to detect support.
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$message | Message to log | String | — none |
Requires
- [function]
noop
Used by
- [function]
im-intercepts-static-breakpoint
- [function]
get-expression-operator
- [function]
get-expression-operator
- [function]
get-expression-operator
- [function]
get-expression-value
- [function]
get-expression-value
- [function]
get-expression-value
- [function]
to-number
- [function]
to-length
- [mixin]
log
Author
Eduardo Boucas
noop
@function noop() { ... }
Description
Function with no @return
called next to @warn
in Sass 3.3 to trigger a compiling error and stop the process.
Parameters
None.
Used by
- [function]
im-log
Author
Eduardo Boucas
im-intercepts-static-breakpoint
@function im-intercepts-static-breakpoint($conditions...) { ... }
Description
Determines whether a list of conditions is intercepted by the static breakpoint.
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$conditions | Media query conditions | Arglist | — none |
Returns
Boolean
—Returns true if the conditions are intercepted by the static breakpoint
Requires
- [function]
im-log
- [function]
get-expression-operator
- [function]
get-expression-prefix
- [function]
get-expression-value
- [variable]
breakpoints
- [variable]
im-no-media-breakpoint
- [variable]
im-no-media-breakpoint
- [variable]
media-expressions
- [variable]
im-no-media-expressions
Used by
- [mixin]
media
Author
Eduardo Boucas
get-expression-operator
@function get-expression-operator($expression) { ... }
Description
Get operator of an expression
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$expression | Expression to extract operator from | String | — none |
Returns
String
—Any of >=
, >
, <=
, <
, ≥
, ≤
Requires
Used by
- [function]
im-intercepts-static-breakpoint
- [function]
parse-expression
Author
Eduardo Boucas
get-expression-dimension
@function get-expression-dimension($expression, $operator) { ... }
Description
Get dimension of an expression, based on a found operator
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$expression | Expression to extract dimension from | String | — none |
$operator | Operator from | String | — none |
Returns
String
—width
or height
(or potentially anything else)
Used by
- [function]
parse-expression
Author
Eduardo Boucas
get-expression-prefix
@function get-expression-prefix($operator) { ... }
Description
Get dimension prefix based on an operator
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$operator | Operator | String | — none |
Returns
String
—min
or max
Used by
- [function]
im-intercepts-static-breakpoint
- [function]
parse-expression
Author
Eduardo Boucas
get-expression-value
@function get-expression-value($expression, $operator) { ... }
Description
Get value of an expression, based on a found operator
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$expression | Expression to extract value from | String | — none |
$operator | Operator from | String | — none |
Returns
Number
—A numeric value
Requires
- [function]
to-number
- [function]
im-log
- [function]
im-log
- [function]
im-log
- [variable]
breakpoints
- [variable]
breakpoints
- [variable]
unit-intervals
Used by
- [function]
im-intercepts-static-breakpoint
- [function]
parse-expression
Author
Eduardo Boucas
parse-expression
@function parse-expression($expression) { ... }
Description
Parse an expression to return a valid media-query expression
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$expression | Expression to parse | String | — none |
Returns
String
—Valid media query
Requires
- [function]
get-expression-operator
- [function]
get-expression-dimension
- [function]
get-expression-prefix
- [function]
get-expression-value
- [variable]
media-expressions
- [variable]
media-expressions
- [variable]
media-expressions
Used by
- [mixin]
media
Author
Eduardo Boucas
[private] slice
@function slice($list, $start: 1, $end: length($list)) { ... }
Description
Slice $list
between $start
and $end
indexes
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$list | List to slice | List | — none |
$start | Start index | Number | 1 |
$end | End index | Number | length($list) |
Returns
List
—Sliced list
Used by
- [mixin]
media
Author
Eduardo Boucas
to-number
@function to-number($value) { ... }
Description
Casts a string into a number
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | Value to be parsed | String or Number | — none |
Returns
Number
Requires
Used by
- [function]
get-expression-value
Author
Eduardo Boucas
to-length
@function to-length($value, $unit) { ... }
Description
Add $unit
to $value
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$value | Value to add unit to | Number | — none |
$unit | String representation of the unit | String | — none |
Returns
Number
—$value
expressed in $unit
Requires
- [function]
im-log
Used by
- [function]
to-number
Author
Eduardo Boucas
mixins
log
@mixin log($message) { ... }
Description
Wrapper mixin for the log function so it can be used with a more friendly API than @if im-log('..') {}
or $_: im-log('..')
. Basically, use the function within functions because it is not possible to include a mixin in a function and use the mixin everywhere else because it's much more elegant.
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$message | Message to log | String | — none |
Requires
- [function]
im-log
Author
Eduardo Boucas
media-context
@mixin media-context($tweakpoints: (), $tweak-media-expressions: ()) { ... }
Description
This mixin aims at redefining the configuration just for the scope of the call. It is helpful when having a component needing an extended configuration such as custom breakpoints (referred to as tweakpoints) for instance.
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$tweakpoints | Map of tweakpoints to be merged with | Map | () |
$tweak-media-expressions | Map of tweaked media expressions to be merged with | Map | () |
Example
Extend the global breakpoints with a tweakpoint
@include media-context(('custom': 678px)) {
.foo {
@include media('>phone', '<=custom') {
// ...
}
}
}
Extend the global media expressions with a custom one
@include media-context($tweak-media-expressions: ('all': 'all')) {
.foo {
@include media('all', '>phone') {
// ...
}
}
}
Extend both configuration maps
@include media-context(('custom': 678px), ('all': 'all')) {
.foo {
@include media('all', '>phone', '<=custom') {
// ...
}
}
}
Requires
- [variable]
breakpoints
- [variable]
media-expressions
- [variable]
breakpoints
- [variable]
breakpoints
- [variable]
media-expressions
- [variable]
media-expressions
- [variable]
breakpoints
- [variable]
media-expressions
Author
Hugo Giraudel
media
@mixin media($conditions...) { ... }
Description
Generates a media query based on a list of conditions
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$conditions | Media query conditions | Arglist | — none |
Example
With a single set breakpoint
@include media('>phone') { }
With two set breakpoints
@include media('>phone', '<=tablet') { }
With custom values
@include media('>=358px', '<850px') { }
With set breakpoints with custom values
@include media('>desktop', '<=1350px') { }
With a static expression
@include media('retina2x') { }
Mixing everything
@include media('>=350px', '<tablet', 'retina3x') { }
Requires
- [function]
im-intercepts-static-breakpoint
- [function]
parse-expression
- [function]
slice
- [variable]
im-media-support
- [variable]
im-media-support
- [variable]
im-media-support
Used by
- [placeholder]
Grid
- [mixin]
margin
- [mixin]
padding
- [mixin]
responsive-margin
- [mixin]
responsive-property
- [placeholder]
show-
Author
Eduardo Boucas
variables
breakpoints
$breakpoints: (
'phone': 320px,
'tablet': 768px,
'desktop': 1024px
) !default;
Description
Creates a list of global breakpoints
Example
Creates a single breakpoint with the label phone
$breakpoints: ('phone': 320px);
Author
Eduardo Boucas
media-expressions
$media-expressions: (
'screen': 'screen',
'print': 'print',
'handheld': 'handheld',
'landscape': '(orientation: landscape)',
'portrait': '(orientation: portrait)',
'retina2x': '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx)',
'retina3x': '(-webkit-min-device-pixel-ratio: 3), (min-resolution: 350dpi), (min-resolution: 3dppx)'
) !default;
Description
Creates a list of static expressions or media types
Example
Creates a single media type (screen)
$media-expressions: ('screen': 'screen');
Creates a static expression with logical disjunction (OR operator)
$media-expressions: (
'retina2x': '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)'
);
Used by
- [function]
im-intercepts-static-breakpoint
- [function]
parse-expression
- [function]
parse-expression
- [function]
parse-expression
- [mixin]
media-context
- [mixin]
media-context
- [mixin]
media-context
- [mixin]
media-context
Author
Eduardo Boucas
unit-intervals
$unit-intervals: (
'px': 1,
'em': 0.01,
'rem': 0.1,
'': 0
) !default;
Description
Defines a number to be added or subtracted from each unit when declaring breakpoints with exclusive intervals
Example
Interval for pixels is defined as 1
by default
@include media('>128px') {}
/* Generates: */
@media (min-width: 129px) {}
Interval for ems is defined as 0.01
by default
@include media('>20em') {}
/* Generates: */
@media (min-width: 20.01em) {}
Interval for rems is defined as 0.1
by default, to be used with font-size: 62.5%;
@include media('>2.0rem') {}
/* Generates: */
@media (min-width: 2.1rem) {}
Used by
- [function]
get-expression-value
Author
Eduardo Boucas
im-media-support
$im-media-support: true !default;
Description
Defines whether support for media queries is available, useful for creating separate stylesheets
Example
Disables support for media queries
$im-media-support: false;
@include media('>=tablet') {
.foo {
color: tomato;
}
}
/* Generates: */
.foo {
color: tomato;
}
Used by
Author
Eduardo Boucas
im-no-media-breakpoint
$im-no-media-breakpoint: 'desktop' !default;
Description
Selects which breakpoint to emulate when support for media queries is disabled. Media queries that start at or intercept the breakpoint will be displayed, any others will be ignored.
Example
This media query will show because it intercepts the static breakpoint
$im-media-support: false;
$im-no-media-breakpoint: 'desktop';
@include media('>=tablet') {
.foo {
color: tomato;
}
}
/* Generates: */
.foo {
color: tomato;
}
This media query will NOT show because it does not intercept the desktop breakpoint
$im-media-support: false;
$im-no-media-breakpoint: 'tablet';
@include media('>=desktop') {
.foo {
color: tomato;
}
}
/* No output */
Used by
- [function]
im-intercepts-static-breakpoint
- [function]
im-intercepts-static-breakpoint
Author
Eduardo Boucas
im-no-media-expressions
$im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
Description
Selects which media expressions are allowed in an expression for it to be used when media queries are not supported.
Example
This media query will show because it intercepts the static breakpoint and contains only accepted media expressions
$im-media-support: false;
$im-no-media-breakpoint: 'desktop';
$im-no-media-expressions: ('screen');
@include media('>=tablet', 'screen') {
.foo {
color: tomato;
}
}
/* Generates: */
.foo {
color: tomato;
}
This media query will NOT show because it intercepts the static breakpoint but contains a media expression that is not accepted
$im-media-support: false;
$im-no-media-breakpoint: 'desktop';
$im-no-media-expressions: ('screen');
@include media('>=tablet', 'retina2x') {
.foo {
color: tomato;
}
}
/* No output */
Used by
- [function]
im-intercepts-static-breakpoint
Author
Eduardo Boucas