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
| .foo { | |
| color: blue; | |
| } | |
| @media (screen and min-width: 1000px) { | |
| .bar { | |
| @extend .foo; | |
| } | |
| } |
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
| .link { | |
| color: blue; | |
| text-decoration: underline; | |
| &.-secondary { | |
| color: green; | |
| } | |
| /* variant */ | |
| &--button { |
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
| .link { | |
| color: blue; | |
| text-decoration: underline; | |
| &.-secondary { | |
| color: green; | |
| } | |
| /* variant */ | |
| &--button { |
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
| header.primary, | |
| header.secondary { | |
| @extend %header; | |
| } | |
| %header { | |
| color: navy; | |
| margin-bottom: 1rem; | |
| &.primary { |
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
| header.primary, | |
| header.secondary { | |
| color: navy; | |
| margin-bottom: 1rem; | |
| &.primary { | |
| font-size: 3rem; | |
| } | |
| &.secondary { |
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
| $breakpoints: ( | |
| md: 576px, | |
| lg: 1024px, | |
| xl: 1200px | |
| ) !default; | |
| @mixin at($bp, $rule: min-width) { | |
| @if map-has-key($breakpoints, $bp) { | |
| $bp: map-get($breakpoints, $bp); | |
| } |
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
| $breakpoints: ( | |
| md: 576px, | |
| lg: 1024px, | |
| xl: 1200px | |
| ) !default; | |
| @mixin at($bp, $rule: min-width) { | |
| @if map-has-key($breakpoints, $bp) { | |
| $bp: map-get($breakpoints, $bp); | |
| } |
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
| @use "sass:map"; | |
| @use "sass:list"; | |
| @function hydrate($base, $map) { | |
| $new: (); | |
| @each $key, $value in $base { | |
| $new: list.append($new, $value or map-get($map, $key) or $key); | |
| } | |
| @return $new; | |
| } |
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 at($bp, $rule: min-width) { | |
| @if map-has-key($breakpoints, $bp) { | |
| $bp: map-get($breakpoints, $bp); | |
| } | |
| @media screen and (#{$rule}: $bp) { | |
| @content; | |
| } | |
| } | |
| @mixin at-each($map...) { |
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
| /* | |
| <div class="layer bgWhite">…</div> | |
| <div class="layer bgGold">…</div> | |
| <div class="layer bgWhite">…</div> | |
| <div class="layer bgWhite">…</div> | |
| <div class="layer bgGold">…</div> | |
| */ |