This file contains 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
.stuff { | |
$color: #808080; | |
color: $color; | |
color: #{fade-out($color, .5)}; | |
$color2: #80808080; | |
color: #{fade-out($color2, .25)}; | |
} |
This file contains 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:list"; | |
@use "sass:string"; | |
@use "sass:map"; | |
// Skip to line 50 | |
@function unslash-colons($str) { | |
$index: string.index($str, \:); | |
@if $index != null { | |
@return unslash-colons(string.slice($str, 1, $index - 1) + string.slice($str, $index + 1)); |
This file contains 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:list"; | |
@use "sass:string"; | |
@use "sass:map"; | |
// Skip to line 50 | |
@function unslash-colons($str) { | |
$index: string.index($str, \:); | |
@if $index != null { | |
@return unslash-colons(string.slice($str, 1, $index - 1) + string.slice($str, $index + 1)); |
This file contains 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:list"; | |
@use "sass:string"; | |
@use "sass:map"; | |
@function unslash-colons($str) { | |
$index: string.index($str, \:); | |
@if $index != null { | |
@return unslash-colons(string.slice($str, 1, $index - 1) + string.slice($str, $index + 1)); | |
} @else { | |
@return $str; |
This file contains 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> | |
*/ |
This file contains 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> | |
*/ |
This file contains 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 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 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 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); | |
} |
NewerOlder