Mixins
To speed up your development process in SCSS you can use mixins. These are really useful shortcodes to add in your SCSS elements.
File to include
@import "mixins";
| Name | Effect | Variables | Example |
|---|---|---|---|
| flexbox | Add a flexbox | $align, $justify, $gap (not required) |
|
| inlineFlex | Add an inline flexbox | $align, $justify, $gap (not required) |
|
| grid | Add a CSS grid | $template, $gap (not required) |
|
| inlineGrid | Add an inline grid | $template, $gap (not required) |
|
| gridCol | Add a CSS grid with columns all the same size | $col, $gap (not-required) |
|
| icon | Add a way to add an icon in SCSS | $icon, $size, $color (not required) |
|
| paMar | Sets margins and paddings to 0 | None |
|
| ulNone | Sets margins and paddings to 0, and list-style to none | None |
|
| tablet | Media queries for tablet viewports | None |
|
| mobile | Media queries for mobile viewports | None |
|