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 pre-focus-styles { | |
outline: none; | |
transition: box-shadow 0.15s; | |
} | |
// Apply within :focus | |
@mixin focus-styles { | |
box-shadow: 0 0 0 2px var(--color-focusOutline), 0 0 0 6px var(--color-focusOutline-light); | |
} |
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 pre-focus-styles { | |
outline: none; | |
transition: box-shadow 0.15s; | |
} | |
// Apply within :focus | |
@mixin focus-styles { | |
box-shadow: 0 0 0 2px var(--color-focusOutline), 0 0 0 6px var(--color-focusOutline-light); | |
} |
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: (xs: 350px, sm: 450px, med: 800px, lg: 1200px, xl: 1800px); | |
$displayValues: none, inline, inline-block, block, grid, table, table-cell, table-row, flex, inline-flex; | |
@each $size, $val in $breakpoints { | |
@each $d in $displayValues { | |
@media (max-width: $val) { | |
.display-#{$size}-#{$d} { | |
display: #{$d}; | |
} | |
} |
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: ( | |
xs: 0em, | |
sm: 37em, | |
md: 64em, | |
lg: 90em | |
); | |
.cool { | |
.stuff { | |
@media only screen and (min-width: map-get($breakpoints, sm)) { |
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 background-image-retina($type, $file, $color, $ext) { | |
background-image: url('src/assets/images/#{$type}/#{$file}-#{$color}.#{$ext}'); | |
background-image: url('src/assets/images/' + $type + '/' + $file + '-' + $color + '.' + $ext); | |
@media only screen and (-webkit-min-device-pixel-ratio: 2), | |
only screen and (-moz-min-device-pixel-ratio: 2), | |
only screen and (-o-min-device-pixel-ratio: 2/1), | |
only screen and (min-device-pixel-ratio: 2), | |
only screen and (min-resolution: 192dpi), | |
only screen and (min-resolution: 2dppx){ |
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
$my-colours: ( | |
'cyan': (#B2EBF2 #80DEEA #4DD0E1 #26C6DA #00BCD4 #00ACC1), | |
'blue': (#B2EBF2 #80DEEA #4DD0E1 #26C6DA #00BCD4 #00ACC1) | |
); | |
@each $map in $my-colours { | |
$name: nth($map, 1); | |
$list: map-get($my-colours, $name); | |
@for $i from 1 through length($list) { |
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
$cool: blue; | |
$mad: red; | |
$colors: ( | |
cool: $cool, | |
mad: $mad | |
); | |
.prfx-color { | |
@each $color in map-keys($colors) { |
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
%placeholder { | |
display: inline-block; | |
&:hover{ color: darken(#FFFFFF, 10%); } | |
} | |
.class-a { | |
@extend %placeholder; | |
color: #000000; | |
} |
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 color-weight ($class, $base-color, $weight: 4) { | |
$bg-color: null; | |
@for $i from 1 through 8 { | |
@if $i < 4 { | |
$weight: $weight - 1; | |
$bg-color: lighten($base-color, $weight * 10%); | |
} @else if $i == 4 { | |
$weight: 0; | |
$bg-color: $base-color; |
NewerOlder