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
$icons: ( | |
checkmark: a, | |
plus: b, | |
minus: c | |
); | |
/* For each key in the map, created an own class */ | |
@each $name, $value in $icons { | |
.icon--#{$name} { | |
content: $value; |
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
$category-colors : (imom-morning, $ff-yellow, $gray-8), | |
(movie-monitor, $ff-coral, white), | |
(pillow-talk, $ff-l-blue, white), | |
(susan, $ff-limey-green, white), | |
(marriage, $ff-red, white), | |
(family-fun, $ff-orange, white), | |
(printables, $ff-teal, white), | |
(mom-life, $ff-blue, white), | |
(quotes, $ff-purple, white), | |
(parenting, $ff-green, white); |
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
$types: 4; | |
$type-width: 20px; | |
@while $types > 0 { | |
.while—#{$types} { | |
width: $type-width + $types; | |
} | |
$types: $types - 1; | |
} |
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
$list: “Amy”, “Henry”, “Isaac”, “Adele”; | |
@each $person in $list { | |
.avatar—#{$person} { | |
background: url(‘avatars/#{$person}.jpg”) no-repeat; | |
} | |
} |
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
$class-slug: span !default; | |
@for $i from 1 through 4 { | |
.#{$class-slug}-#{$i} { | |
width: 60px + $i | |
} | |
} |
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
$white-theme: true !default; | |
@if $white-theme { | |
@debug “we’re using the #{$white-theme}”; | |
background: white; | |
text: black; | |
} @else { | |
@debug “we’re using the #{$black-theme}”; | |
background: black; | |
text: white; |
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
.something { | |
z-index: map-get($zindex, change-your-world); | |
} |
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: ( | |
small: 767px, | |
medium: 992px, | |
large: 1200px | |
); | |
// _mixins.scss | |
@mixin breakpoint($breakpoint) { | |
@if map-has-key($breakpoints, $breakpoint) { | |
@media (min-width: #{map-get($breakpoints, $breakpoint)}) { |
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
/*------------------------------------*\ | |
#PRIMARY-MENU | |
\*------------------------------------*/ | |
.primary-menu { | |
@include grid; | |
@include sans-serif; | |
font-weight: $bold; | |
height: $nav-bar-height; | |
&__wrapper { |