animations
mixins
keyframes
@mixin keyframes() { ... }
Description
Streamline animations
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
animation
@mixin animation() { ... }
Description
Autoprefix animations
Parameters
None.
buttons
mixins
create-disabled-btn
@mixin create-disabled-btn() { ... }
Description
Create disabled buttons
Parameters
None.
Used by
- [mixin]
create-btn
create-btn
@mixin create-btn() { ... }
Description
Create buttons
Parameters
None.
Requires
- [mixin]
rem
- [mixin]
create-disabled-btn
Author
kymbee
icons
mixins
create-icon
@mixin create-icon($name, $icon) { ... }
Description
Creates pseudo class containing font icon
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$name | Name of class, ie 'gift' will become '.icon--gift' | String | —none |
$icon | Name of icon you would like to extend, ie '.icon-gift' | String | —none |
Output
.icon--gift { &:before { @extend %icon-gift; } }
Example
@include rem('gift', 'icon-gift');
jacket
mixins
jacket
@mixin jacket() { ... }
Description
Conditional Styles with Sass. Dress you CSS appropriately. Jacket is a Compass component that prints and hides styles based on context variables you set in your stylesheet. Write and maintain a master stylesheet, then output custom tailored stylesheets for modern and legacy browsers, site and app builds, or any other context you can think of.
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
Links
measurements
functions
calculateEm
@function calculateEm() { ... }
Description
Return EM from PX input
Parameters
None.
Used by
- [mixin]
media-query-max-xsmall
- [mixin]
media-query-below-xsmall
- [mixin]
media-query-xsmall
- [mixin]
media-query-xsmall-small
- [mixin]
media-query-small
- [mixin]
media-query-medium
- [mixin]
media-query-large
parseInt
@function parseInt() { ... }
Description
Returns boolean
Parameters
None.
Used by
- [mixin]
rem
mixins
rem
@mixin rem($property, $values) { ... }
Description
Sets rem values
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$property | Font-size, margin, etc | String | —none |
$values | Measurement in px (15px 5px) | Number | —none |
Output
ie browsers - padding: 15px 5px; other browsers - padding: 1.5rem 0.5rem;
Example
@include rem(padding, 15px 5px);
Requires
- [function]
parseInt
Used by
- [mixin]
create-btn
Links
Author
Hugo Giraudel
media queries
mixins
media-query-max-xsmall
@mixin media-query-max-xsmall() { ... }
Description
Extra small devices ONLY (phones, less than 768px)
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
Output
@media (max-width: 767px)
Example
@include media-query-max-xsmall
Requires
- [function]
calculateEm
media-query-below-xsmall
@mixin media-query-below-xsmall() { ... }
Description
Extra small devices ONLY (phones, less than 480px)
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
Output
@media (max-width: 479px)
Example
@include media-query-below-xsmall
Requires
- [function]
calculateEm
media-query-xsmall
@mixin media-query-xsmall() { ... }
Description
Extra small devices (480px and up)
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
Output
@media only screen and (min-width: 30em)
Example
@include media-query-xsmall
Requires
- [function]
calculateEm
- [variable]
screen-xs
media-query-xsmall-small
@mixin media-query-xsmall-small() { ... }
Description
Extra small devices to Small devices(480px to 768px)
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
Output
@media (min-width: 30em) and (max-width: 48em)
Example
@include media-query-xsmall-small
Requires
- [function]
calculateEm
- [variable]
screen-xs
media-query-small
@mixin media-query-small() { ... }
Description
Small devices (tablets, 768px and up)
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
Output
@media only screen and (min-width: 48em)
Example
@include media-query-small
Requires
- [function]
calculateEm
- [variable]
screen-sm
media-query-medium
@mixin media-query-medium() { ... }
Description
Medium devices (desktops, 992px and up)
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
Output
@media only screen and (min-width: 62em)
Example
@include media-query-medium
Requires
- [function]
calculateEm
- [variable]
screen-md
media-query-large
@mixin media-query-large() { ... }
Description
Large devices (large desktops, 1200px and up)
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
Output
@media only screen and (min-width: 75em)
Example
@include media-query-large
Requires
- [function]
calculateEm
- [variable]
screen-lg
variables
screen-xs
$screen-xs: 480px !default;
Description
Up to mobile portrait
Used by
- [mixin]
media-query-xsmall
- [mixin]
media-query-xsmall-small
screen-sm
$screen-sm: 769px !default;
Description
Up to mobile landscape / tablet portrait
Used by
- [mixin]
media-query-small
screen-md
$screen-md: 992px !default;
Description
Up to tablet landscape / desktop
Used by
- [mixin]
media-query-medium
screen-lg
$screen-lg: 1200px !default;
Description
Large desktop
Used by
- [mixin]
media-query-large
sprites
mixins
center-horizontally
@mixin center-horizontally() { ... }
Description
Center an icon (sprite) horizontally
Parameters
None.
center-vertically
@mixin center-vertically() { ... }
Description
Center an icon (sprite) vertically
Parameters
None.
General
mixins
[private] -webkit-sibling-fix
@mixin -webkit-sibling-fix() { ... }
Description
Webkit on IOS 7 / 8 does not re-paint when sibling selectors are used The combination of nth-child and tranzlateZ cause the browser to paint any changes.
Parameters
None.
Content
This mixin allows extra content to be passed (through the @content
directive).
create-arrow
@mixin create-arrow($size, $direction, $position, $color) { ... }
Description
Create arrows mixin, based on the CSS version (link provided).
Parameters
parameterName | parameterDescription | parameterType | parameterDefault value |
---|---|---|---|
$size | ie, 5px | String | —none |
$direction | ie, up | down | left | right | String | —none |
$position | ie, top | bottom | left | right | String | —none |
$color | ie, $color__brand--green | String | —none |
Example
@include create-arrow(5px, up, right, $color__brand--green);
Links
Author
kymbee
utility helpers
mixins
vertical-align
@mixin vertical-align() { ... }
Description
Vertically align element in the middle
Parameters
None.