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
// Custom properties to Sass fallback | |
// @params {String}: $customProp, $renderedValue | |
// Sass Variables | |
$color-base: #000000; | |
$color-base-darkest: #0b0b0b; | |
$color-base-darker: lighten($color-base, 20); | |
$color-base-dark: lighten($color-base, 40); | |
$color-base-light: lighten($color-base, 60); | |
$color-base-lighter: lighten($color-base, 80); |
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
html { | |
scroll-behavior: smooth; | |
} | |
@media screen and (prefers-reduced-motion: reduce) { | |
html { | |
scroll-behavior: auto; | |
} | |
} |
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
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
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
Ctrl+k , Ctrl+f |
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
%animal { | |
background: gray; | |
// and so on... | |
} | |
.cat { | |
@extend %animal; | |
color: white; | |
} | |
.dog { | |
@extend %animal; |
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
@mixin only-for-mobile { | |
@media (max-width: 768px) { | |
@content; | |
} | |
} | |
@include only-for-mobile() /* note: @content begins here */ { | |
p { | |
font-size: 150%; | |
} |
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
$alertClass: "error"; | |
p.message-#{$alertClass} { | |
color: red; | |
} | |
$breakpoint: 768px; | |
@media (max-width: #{$breakpoint}) { | |
/* This block only applies to viewports <= #{$breakpoint} wide... */ |