This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$breakpoints: (mobile: 767px, tablet: 992px, desktop: 1200px); | |
@mixin respond-to($breakpoint) { | |
@if map-has-key($breakpoints, $breakpoint) { | |
@media (min-width: #{map-get($breakpoints, $breakpoint)}) { | |
@content; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Esimerkki kuinka käyttää Sass Mixineitä null data tyypillä. | |
// ---- | |
// Luodaan mixin nimeltää display, jossa on haluttuja properteja kuten | |
// Display, Padding, Margin-Left, Margin-Right. Jotta halutut propertit toimii @includessa | |
// tulee niiden olla data pyytiltään null. Kuten esimerkissä. | |
@mixin display ( | |
$disp, | |
$padding: null, |
NewerOlder