Documentation ➜ Mixins
Fuselage comes with some handy mixins right out of the box. This is how you use them.
- $color color value required
- Border color and text color. Also the fill color when hovered.
- $text color value (white)
- Text color when hovered.
- $reverse boolean (false)
- Inverts button to be filled by default and transparent when hovered.
- $hover color value (transparent)
- Hover color when $reversed: true.
clearfix()
➜ Applies clearfix styles
mq($media-size, [$media])
➜ Includes a media query based on a passed-in lower-bound.
- $media-size value required
- Media variable (
$small
,$medium
,$large
,$xlarge
) or any other validwidth
value.- $media media type (screen)
- Takes any valid media type (
screen
,
text-link([$color])
➜ Styles a text link based on a passed-in color (hover, visited, disabled, etc.).
- $color color value (
$brand-primary
)- Color variable (
$brand-primary
,$brand-secondary
,$brand-tertiary
, etc.) or any other valid color value.
responsive-table-setup([$namespace])
➜ Creates namespaced classes for responsive tables. Couple with mq()
to create new responsive table breakpoints classes to go with them!
- $namespace string (Null)
- Media namespace (
"small"
,"medium"
,"large"
,"xlarge"
) or any custom namespace.- NOTE: Passing nothing to this mixin will duplicate classes that already exist in Fuselage.
- NOTE: Be sure to use UPPER BOUNDS, this is different than using
width-setup()
.
Example SCSS
Example HTML
width-setup([$namespace])
➜ Creates width classes for a given namespace. Couple with mq()
to create new breakpoints and responsive width classes to go with them!
- $namespace string (Null)
- Media namespace (
"small"
,"medium"
,"large"
,"xlarge"
) or any custom namespace.- NOTE: Passing nothing to this mixin will duplicate classes that already exist in Fuselage.