animation
mixins
animation
@mixin animation($vals...) { ... }
View sourceDescription
Generates the property animation
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$vals... | The value(s) of the animation property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
animation-delay
@mixin animation-delay($val) { ... }
View sourceDescription
Generates the property animation-delay
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the animation-delay property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
animation-direction
@mixin animation-direction($val) { ... }
View sourceDescription
Generates the property animation-direction
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the animation-direction property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
animation-duration
@mixin animation-duration($val) { ... }
View sourceDescription
Generates the property animation-duration
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the animation-duration property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
animation-fill-mode
@mixin animation-fill-mode($val) { ... }
View sourceDescription
Generates the property animation-fill-mode
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the animation-fill-mode property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
animation-iteration-count
@mixin animation-iteration-count($val) { ... }
View sourceDescription
Generates the property animation-iteration-count
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the animation-iteration-count property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
animation-name
@mixin animation-name($val) { ... }
View sourceDescription
Generates the property animation-name
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the animation-name property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
animation-play-state
@mixin animation-play-state($val) { ... }
View sourceDescription
Generates the property animation-play-state
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the animation-play-state property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
animation-timing-function
@mixin animation-timing-function($val) { ... }
View sourceDescription
Generates the property animation-timing-function
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the animation-timing-function property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
keyframes
@mixin keyframes($name) { ... }
View sourceDescription
Generates a @keyframes
rule as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$name | The name of the keyframe. | String | —none |
Content
This mixin allows extra content to be passed (through the @content
directive). Role: The selectors and properties to be inserted in the `@keyframes` rule.
Author
Brandon Sara (http://bsara.github.io)
borders
mixins
border-radius
@mixin border-radius($radius) { ... }
View sourceDescription
Generates the property border-radius
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$radius | The border radius. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
border-bottom-radius
@mixin border-bottom-radius($radius) { ... }
View sourceDescription
Generates the property border-radius
as well as each necessary vendor prefix for only the bottom corners of an element.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$radius | The border radius. |
| —none |
Requires
- [mixin]
border-bottom-left-radius
- [mixin]
border-bottom-right-radius
Used by
- [mixin]
border-radius-bottom
Author
Brandon Sara (http://bsara.github.io)
border-radius-bottom
@mixin border-radius-bottom() { ... }
View sourceParameters
None.
Requires
- [mixin]
border-bottom-radius
See
- [mixin]
border-bottom-radius
Author
Brandon Sara (http://bsara.github.io)
border-bottom-left-radius
@mixin border-bottom-left-radius($radius) { ... }
View sourceDescription
Generates the property border-radius
as well as each necessary vendor prefix for only the bottom-left corner of an element.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$radius | The border radius. |
| —none |
Used by
- [mixin]
border-bottom-radius
- [mixin]
border-radius-bottom-left
- [mixin]
border-left-radius
Author
Brandon Sara (http://bsara.github.io)
border-radius-bottom-left
@mixin border-radius-bottom-left() { ... }
View sourceParameters
None.
Requires
- [mixin]
border-bottom-left-radius
See
- [mixin]
border-bottom-left-radius
Author
Brandon Sara (http://bsara.github.io)
border-bottom-right-radius
@mixin border-bottom-right-radius($radius) { ... }
View sourceDescription
Generates the property border-radius
as well as each necessary vendor prefix for only the bottom-right corner of an element.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$radius | The border radius. |
| —none |
Used by
- [mixin]
border-bottom-radius
- [mixin]
border-radius-bottom-right
- [mixin]
border-right-radius
Author
Brandon Sara (http://bsara.github.io)
border-radius-bottom-right
@mixin border-radius-bottom-right() { ... }
View sourceParameters
None.
Requires
- [mixin]
border-bottom-right-radius
See
- [mixin]
border-bottom-right-radius
Author
Brandon Sara (http://bsara.github.io)
border-left-radius
@mixin border-left-radius($radius) { ... }
View sourceDescription
Generates the property border-radius
as well as each necessary vendor prefix for only the left side corners of an element.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$radius | The border radius. |
| —none |
Requires
- [mixin]
border-top-left-radius
- [mixin]
border-bottom-left-radius
Used by
- [mixin]
border-radius-left
Author
Brandon Sara (http://bsara.github.io)
border-radius-left
@mixin border-radius-left() { ... }
View sourceParameters
None.
Requires
- [mixin]
border-left-radius
See
- [mixin]
border-left-radius
Author
Brandon Sara (http://bsara.github.io)
border-right-radius
@mixin border-right-radius($radius) { ... }
View sourceDescription
Generates the property border-radius
as well as each necessary vendor prefix for only the right side corners of an element.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$radius | The border radius. |
| —none |
Requires
- [mixin]
border-top-right-radius
- [mixin]
border-bottom-right-radius
Used by
- [mixin]
border-radius-right
Author
Brandon Sara (http://bsara.github.io)
border-radius-right
@mixin border-radius-right() { ... }
View sourceParameters
None.
Requires
- [mixin]
border-right-radius
See
- [mixin]
border-right-radius
Author
Brandon Sara (http://bsara.github.io)
border-top-radius
@mixin border-top-radius($radius) { ... }
View sourceDescription
Generates the property border-radius
as well as each necessary vendor prefix for only the top corners of an element.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$radius | The border radius. |
| —none |
Requires
- [mixin]
border-top-left-radius
- [mixin]
border-top-right-radius
Used by
- [mixin]
border-radius-top
Author
Brandon Sara (http://bsara.github.io)
border-radius-top
@mixin border-radius-top() { ... }
View sourceParameters
None.
Requires
- [mixin]
border-top-radius
See
- [mixin]
border-top-radius
Author
Brandon Sara (http://bsara.github.io)
border-top-left-radius
@mixin border-top-left-radius($radius) { ... }
View sourceDescription
Generates the property border-radius
as well as each necessary vendor prefix for only the top-left corner of an element.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$radius | The border radius. |
| —none |
Used by
- [mixin]
border-left-radius
- [mixin]
border-top-radius
- [mixin]
border-radius-top-left
Author
Brandon Sara (http://bsara.github.io)
border-radius-top-left
@mixin border-radius-top-left() { ... }
View sourceParameters
None.
Requires
- [mixin]
border-top-left-radius
See
- [mixin]
border-top-left-radius
Author
Brandon Sara (http://bsara.github.io)
border-top-right-radius
@mixin border-top-right-radius($radius) { ... }
View sourceDescription
Generates the property border-radius
as well as each necessary vendor prefix for only the top-right corner of an element.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$radius | The border radius. |
| —none |
Used by
- [mixin]
border-right-radius
- [mixin]
border-top-radius
- [mixin]
border-radius-top-right
Author
Brandon Sara (http://bsara.github.io)
border-radius-top-right
@mixin border-radius-top-right() { ... }
View sourceParameters
None.
Requires
- [mixin]
border-top-right-radius
See
- [mixin]
border-top-right-radius
Author
Brandon Sara (http://bsara.github.io)
columns
mixins
column-count
@mixin column-count($val) { ... }
View sourceDescription
Generates the property column-count
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the column-count property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
column-fill
@mixin column-fill($val) { ... }
View sourceDescription
Generates the property column-fill
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the column-fill property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
column-gap
@mixin column-gap($val) { ... }
View sourceDescription
Generates the property column-gap
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the column-gap property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
column-rule
@mixin column-rule($val) { ... }
View sourceDescription
Generates the property column-rule
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the column-rule property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
column-rule-color
@mixin column-rule-color($val) { ... }
View sourceDescription
Generates the property column-rule-color
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the column-rule-color property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
column-rule-style
@mixin column-rule-style($val) { ... }
View sourceDescription
Generates the property column-rule-style
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the column-rule-style property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
column-rule-width
@mixin column-rule-width($val) { ... }
View sourceDescription
Generates the property column-rule-width
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the column-rule-width property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
column-span
@mixin column-span($val) { ... }
View sourceDescription
Generates the property column-span
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the column-span property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
column-width
@mixin column-width($val) { ... }
View sourceDescription
Generates the property column-width
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the column-width property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
columns
@mixin columns($val) { ... }
View sourceDescription
Generates the property columns
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the columns property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
multi-column-width
@mixin multi-column-width($num-of-columns) { ... }
View sourceParameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$num-of-columns | TODO | Number | —none |
Example
// Usage:
.my-selector {
@include multi-column-width(5);
}
// Output:
.my-selector:only-child {
width: 100%;
}
.my-selector:first-child:nth-last-child(5),
.my-selector:first-child:nth-last-child(5) ~ .my-selector:first-child {
width: 20%;
}
Requires
- [function]
percentage-of-pieces
TODO's
Add Documentation
Author
Brandon Sara (http://bsara.github.io)
margin
mixins
margin-bottom-left
@mixin margin-bottom-left($val) { ... }
View sourceDescription
Sets margin-bottom
and margin-left
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Margin amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
margin-bottom-right
@mixin margin-bottom-right($val) { ... }
View sourceDescription
Sets margin-bottom
and margin-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Margin amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
margin-bottom-sides
@mixin margin-bottom-sides($val) { ... }
View sourceDescription
Sets margin-bottom
, margin-left
, and margin-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Margin amount. |
| —none |
Requires
- [mixin]
margin-sides
Author
Brandon Sara (http://bsara.github.io)
margin-sides
@mixin margin-sides($val) { ... }
View sourceDescription
Sets margin-left
and margin-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Margin amount. |
| —none |
Used by
- [mixin]
margin-bottom-sides
- [mixin]
margin-top-sides
Author
Brandon Sara (http://bsara.github.io)
margin-top-bottom
@mixin margin-top-bottom($val) { ... }
View sourceDescription
Sets margin-top
and margin-bottom
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Margin amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
margin-top-left
@mixin margin-top-left($val) { ... }
View sourceDescription
Sets margin-top
and margin-left
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Margin amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
margin-top-right
@mixin margin-top-right($val) { ... }
View sourceDescription
Sets margin-top
and margin-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Margin amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
margin-top-sides
@mixin margin-top-sides($val) { ... }
View sourceDescription
Sets margin-top
, margin-left
, and margin-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Margin amount. |
| —none |
Requires
- [mixin]
margin-sides
Author
Brandon Sara (http://bsara.github.io)
padding
mixins
padding-bottom-left
@mixin padding-bottom-left($val) { ... }
View sourceDescription
Sets padding-bottom
and padding-left
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Padding amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
padding-bottom-right
@mixin padding-bottom-right($val) { ... }
View sourceDescription
Sets padding-bottom
and padding-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Padding amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
padding-bottom-sides
@mixin padding-bottom-sides($val) { ... }
View sourceDescription
Sets padding-bottom
, padding-left
, and padding-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Padding amount. |
| —none |
Requires
- [mixin]
padding-sides
Author
Brandon Sara (http://bsara.github.io)
padding-sides
@mixin padding-sides($val) { ... }
View sourceDescription
Sets padding-left
and padding-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Padding amount. |
| —none |
Used by
- [mixin]
padding-bottom-sides
- [mixin]
padding-top-sides
Author
Brandon Sara (http://bsara.github.io)
padding-top-bottom
@mixin padding-top-bottom($val) { ... }
View sourceDescription
Sets padding-top
and padding-bottom
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Padding amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
padding-top-left
@mixin padding-top-left($val) { ... }
View sourceDescription
Sets padding-top
and padding-left
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Padding amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
padding-top-right
@mixin padding-top-right($val) { ... }
View sourceDescription
Sets padding-top
and padding-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Padding amount. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
padding-top-sides
@mixin padding-top-sides($val) { ... }
View sourceDescription
Sets padding-top
, padding-left
, and padding-right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Padding amount. |
| —none |
Requires
- [mixin]
padding-sides
Author
Brandon Sara (http://bsara.github.io)
miscellaneous
variables
pt-per-px
$pt-per-px: 0.75pt;
View sourceDescription
The number of pts per pixel.
Type
Point
Used by
- [function]
px-to-pt
Author
Brandon Sara (http://bsara.github.io)
px-per-pt
$px-per-pt: 1px + (1px/3);
View sourceDescription
The number of pixels per pt.
Type
Pixel
Used by
- [function]
pt-to-px
Author
Brandon Sara (http://bsara.github.io)
string-empty
$string-empty: '';
View sourceDescription
An empty string. (Using this can help increase code readability).
Type
String
Used by
- [function]
process-browser-prefix
Author
Brandon Sara (http://bsara.github.io)
string-space
$string-space: ' ';
View sourceDescription
A space character. (Using this can help increase code readability).
Type
String
Author
Brandon Sara (http://bsara.github.io)
functions
prepend-slash
@function prepend-slash($value) { ... }
View sourceDescription
Adds a slash (\
) to the beginning of the given value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$value | Value on which to prepend a slash. |
| —none |
Returns
String
—$value
prepended with a \
character.
Example
// Usage:
content: prepend-slash(2716);
// Output:
content: "\2716";
Author
Brandon Sara (http://bsara.github.io)
process-browser-prefix
@function process-browser-prefix($browser-prefix) { ... }
View sourceDescription
Processes browser prefixes to be used when generating vendor prefix versions of properties for functions.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$browser-prefix | The browser prefix to process. | String | —none |
Returns
String
—$browser-prefix
wrapped in dashes (-
). If $browser-prefix
is an empty string, then an empty string is returned.
Example
// Usage:
#{process-browser-prefix('webkit')}user-select: none;
#{process-browser-prefix('')}user-select: none;
// Output:
-webkit-user-select: none;
user-select: none;
Requires
- [variable]
string-empty
Author
Brandon Sara (http://bsara.github.io)
add-percent-sign
@function add-percent-sign($num) { ... }
View sourceDescription
Adds a percent sign (%
) to the given number.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$num | Value to add | Number | —none |
Returns
Percent
—$num
witha %
appended to it.
Example
// Usage:
width: add-percent-sign(42);
// Output:
width: 42%;
Used by
- [function]
percentage-of-pieces
Author
Brandon Sara (http://bsara.github.io)
percentage-of-pieces
@function percentage-of-pieces($num-of-pieces) { ... }
View sourceDescription
Gets the percentage that the given $num-of-pieces
is out of 100.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$num-of-pieces | Represents the number of times you are dividing something (I.E. number of pieces of a whole). | Number | —none |
Returns
Percent
—A percentage value of 100 / $num-of-pieces
.
Example
// Usage:
width: percentage-of-pieces(5);
height: percentage-of-pieces(3);
// Output:
width: 20%;
height: 33.33333%;
Requires
- [function]
add-percent-sign
Used by
- [mixin]
multi-column-width
Author
Brandon Sara (http://bsara.github.io)
mixins
appearance
@mixin appearance($val) { ... }
View sourceDescription
Generates the property appearance
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the appearance property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
box-shadow
@mixin box-shadow($vals...) { ... }
View sourceDescription
Generates the property box-shadow
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$vals... | The value(s) of the box-shadow property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
box-sizing
@mixin box-sizing($val) { ... }
View sourceDescription
Generates the property box-sizing
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the box-sizing property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
cursor-pointer
@mixin cursor-pointer() { ... }
View sourceDescription
Sets the cursor to a pointer with cross browser compatibility.
Parameters
None.
Author
Brandon Sara (http://bsara.github.io)
filter
@mixin filter($val) { ... }
View sourceDescription
Generates the property filter
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the filter property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
font-icon-defaults
@mixin font-icon-defaults() { ... }
View sourceDescription
Adds sensible default property values for an element displaying a font icon.
For a good example of font icons, refer to http://fontawesome.io.
(Note: The font-family
property is NOT set by this mixin).
Parameters
None.
Requires
- [mixin]
font-smoothing
Author
Brandon Sara (http://bsara.github.io)
font-smoothing
@mixin font-smoothing($val) { ... }
View sourceDescription
Generates the property font-smoothing
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the font-smoothing property. |
| —none |
Used by
- [mixin]
font-icon-defaults
Author
Brandon Sara (http://bsara.github.io)
linear-gradient
@mixin linear-gradient($property, $vals...) { ... }
View sourceDescription
Generates the given property with a linear-gradient
value as well as each necessary vendor prefix for that value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$property | The property to generate. | String | —none |
$vals... | The value(s) to pass to the |
| —none |
Example
// Usage:
@include linear-gradient(background, left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%)
// Output:
background: -webkit-linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
background: -moz-linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
background: -ms-linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
background: -o-linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
background: linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
Author
Brandon Sara (http://bsara.github.io)
opacity
@mixin opacity($val) { ... }
View sourceDescription
Generates the property opacity
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the opacity property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
position-sides
@mixin position-sides($val) { ... }
View sourceDescription
Sets left
and right
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Position value. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
position-top-bottom
@mixin position-top-bottom($val) { ... }
View sourceDescription
Sets top
and bottom
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Position value. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
remove-from-print
@mixin remove-from-print() { ... }
View sourceDescription
Causes element(s) to be completely absent from print media.
Parameters
None.
Used by
- [placeholder]
remove-from-print
See
- [mixin]
remove-from-print
Author
Brandon Sara (http://bsara.github.io)
repeating-linear-gradient
@mixin repeating-linear-gradient($property, $vals...) { ... }
View sourceDescription
Generates the given property with a repeating-linear-gradient
value as well as each necessary vendor prefix for that value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$property | The property to generate. | String | —none |
$vals... | The value(s) to pass to the |
| —none |
Example
// Usage:
@include repeating-linear-gradient(color, left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%)
// Output:
color: -webkit-repeating-linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
color: -moz-repeating-linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
color: -ms-repeating-linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
color: -o-repeating-linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
color: repeating-linear-gradient(left, #ff0 0%, #f00 50%, #000 51%, #222 71%, #fff 100%);
Author
Brandon Sara (http://bsara.github.io)
size
@mixin size($val) { ... }
View sourceDescription
Sets width
and height
to the same value.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | Size value. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
text-size-adjust
@mixin text-size-adjust($val) { ... }
View sourceDescription
Generates the property text-size-adjust
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the text-size-adjust property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
transform
@mixin transform($val) { ... }
View sourceDescription
Generates the property transform
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the transform property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
user-select
@mixin user-select($val) { ... }
View sourceDescription
Generates the property user-select
as well as each necessary vendor prefix.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | The value of the user-select property. |
| —none |
Author
Brandon Sara (http://bsara.github.io)
placeholders
remove-from-print
%remove-from-print { ... }
View sourceDescription
Causes any inheriting children to be completely absent from print media.
Requires
- [mixin]
remove-from-print
See
- [mixin]
remove-from-print
Author
Brandon Sara (http://bsara.github.io)
unit manipulation
functions
add-mixed-units
@function add-mixed-units($return-unit, $vals) { ... }
View sourceParameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$return-unit | TODO | String | —none |
$vals | TODO | Em or Point or Pixel | —none |
Returns
Em
or Point
or Pixel
—TODO
Example
TODO
Throws
$return-unit must be either
$vals cannot be empty.
$vals must have more than one element if the $return-unit is
$vals cannot contain a value with
Requires
- [function]
to-em
- [function]
px-to-pt
- [function]
pt-to-px
- [function]
remove-unit
TODO's
Add Documentation
Author
Brandon Sara (http://bsara.github.io)
em-to-pt
@function em-to-pt($em, $base: 12pt) { ... }
View sourceParameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$em | TODO | Em | —none |
$base | TODO | Point | 12pt |
Returns
Point
—TODO
Throws
$em must either be unitless or be of the unit
$base must either be unitless or be of the unit
Requires
- [function]
px-to-pt
- [function]
remove-unit
TODO's
Add Documentation
Author
Brandon Sara (http://bsara.github.io)
em-to-px
@function em-to-px($em, $base: 16px) { ... }
View sourceParameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$em | TODO | Em | —none |
$base | TODO | Pixel | 16px |
Returns
Pixel
—TODO
Throws
$em must either be unitless or be of the unit
$base must either be unitless or be of the unit
Requires
- [function]
pt-to-px
- [function]
remove-unit
TODO's
Add Documentation
Author
Brandon Sara (http://bsara.github.io)
pt-to-px
@function pt-to-px($pt) { ... }
View sourceParameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$pt | TODO | Point | —none |
Returns
Pixel
—TODO
Throws
$pt must either be unitless or be of the unit
Requires
- [function]
remove-unit
- [variable]
px-per-pt
Used by
- [function]
add-mixed-units
- [function]
em-to-px
- [function]
to-em
TODO's
Add Documentation
Author
Brandon Sara (http://bsara.github.io)
px-to-pt
@function px-to-pt($px) { ... }
View sourceParameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$px | TODO | Pixel | —none |
Returns
Point
—TODO
Throws
$px must either be unitless or be of the unit
Requires
- [function]
remove-unit
- [variable]
pt-per-px
Used by
- [function]
add-mixed-units
- [function]
em-to-pt
TODO's
Add Documentation
Author
Brandon Sara (http://bsara.github.io)
to-em
@function to-em($val, $base: 16px) { ... }
View sourceParameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$val | TODO | Pt or Px | —none |
$base | TODO | Pt or Px | 16px |
Returns
Em
—TODO
Throws
$val cannot be in
$base cannot be in
Requires
- [function]
pt-to-px
Used by
- [function]
add-mixed-units
TODO's
Add Documentation
Author
Brandon Sara (http://bsara.github.io)
remove-unit
@function remove-unit($num) { ... }
View sourceDescription
Removes any units used appended to the given number.
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$num | Number from which units will be removed. | Number | —none |
Returns
Number
—The same number given, but without the units.
Example
// Usage:
z-index: remove-unit(10px);
// Output:
z-index: 10;
Throws
The following unit is not supported:
Used by
- [function]
add-mixed-units
- [function]
em-to-pt
- [function]
em-to-px
- [function]
pt-to-px
- [function]
px-to-pt
Author
Brandon Sara (http://bsara.github.io)