Last active
November 15, 2024 15:56
-
-
Save sarahdayan/4d2cc04a636e8039f10a889a0e29fbd9 to your computer and use it in GitHub Desktop.
Revisions
-
sarahdayan revised this gist
Feb 20, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,7 @@ // ---- // Sass modifiers mixin by Sarah Dayan // Generate All Your Utility Classes with Sass Maps: frontstuff.io/generate-all-your-utility-classes-with-sass-maps // http://frontstuff.io // https://github.com/sarahdayan -
sarahdayan revised this gist
Dec 3, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -32,7 +32,7 @@ $font-sizes: ( @mixin modifiers($map, $attribute, $prefix: '-', $separator: '-', $base: 'base') { @each $key, $value in $map { &#{if($key != $base, #{$prefix}#{$key}, '')} { @if type-of($value) == 'map' { @include modifiers($value, $attribute, $separator); } @else { -
sarahdayan revised this gist
Dec 3, 2017 . No changes.There are no files selected for viewing
-
sarahdayan revised this gist
Dec 3, 2017 . 2 changed files with 5 additions and 14 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,20 +7,8 @@ // http://frontstuff.io // https://github.com/sarahdayan $colors: ( red: #ff3538, grey: ( base: #404145, light: #c7c7cd @@ -44,7 +32,7 @@ $font-sizes: ( @mixin modifiers($map, $attribute, $prefix: '-', $separator: '-', $base: 'base') { @each $key, $value in $map { &#{if($key != $base, #{$prefix}#{$key}, '')} { @if type-of($value) == 'map' { @include modifiers($value, $attribute, $separator); } @else { 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ .text-red { color: #ff3538; } .text-grey { color: #404145; } -
sarahdayan revised this gist
Dec 2, 2017 . No changes.There are no files selected for viewing
-
sarahdayan revised this gist
Dec 2, 2017 . No changes.There are no files selected for viewing
-
sarahdayan revised this gist
Dec 2, 2017 . 1 changed file with 0 additions and 27 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,27 +0,0 @@ -
sarahdayan revised this gist
Dec 2, 2017 . 2 changed files with 12 additions and 12 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -34,11 +34,11 @@ $colors: ( ); $font-sizes: ( small: 12px, medium: 14px, large: 16px, x-large: 18px, xx-large: 20px ); @mixin modifiers($map, $attribute, $prefix: '-', $separator: '-', $base: 'base') { 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 charactersOriginal file line number Diff line number Diff line change @@ -10,18 +10,18 @@ .text-green { color: #5ad864; } .text--small { font-size: 12px; } .text--medium { font-size: 14px; } .text--large { font-size: 16px; } .text--x-large { font-size: 18px; } .text--xx-large { font-size: 20px; } -
sarahdayan revised this gist
Dec 2, 2017 . 1 changed file with 27 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ .text-grey { color: #404145; } .text-grey:light { color: #c7c7cd; } .text-yellow { color: #ecaf2d; } .text-green { color: #5ad864; } .text { font-size: 14px; } .text--s { font-size: 12px; } .text--l { font-size: 16px; } .text--xl { font-size: 18px; } .text--xxl { font-size: 20px; } -
sarahdayan renamed this gist
Dec 2, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
sarahdayan revised this gist
Dec 2, 2017 . 1 changed file with 27 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ .text-grey { color: #404145; } .text-grey:light { color: #c7c7cd; } .text-yellow { color: #ecaf2d; } .text-green { color: #5ad864; } .text { font-size: 14px; } .text--s { font-size: 12px; } .text--l { font-size: 16px; } .text--xl { font-size: 18px; } .text--xxl { font-size: 20px; } -
sarahdayan revised this gist
Dec 2, 2017 . 1 changed file with 0 additions and 27 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,27 +0,0 @@ -
sarahdayan revised this gist
Dec 2, 2017 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
sarahdayan revised this gist
Dec 2, 2017 . No changes.There are no files selected for viewing
-
sarahdayan created this gist
Dec 2, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,60 @@ // ---- // Sass (v3.4.21) // Compass (v1.0.3) // ---- // Sass modifiers mixin by Sarah Dayan // http://frontstuff.io // https://github.com/sarahdayan // Dependency: map-depth by Hugo Giraudel https://hugogiraudel.com @function map-depth($map) { $level: 1; @each $key, $value in $map { @if type-of($value) == "map" { $level: max(map-depth($value) + 1, $level); } } @return $level; } $colors: ( grey: ( base: #404145, light: #c7c7cd ), yellow: ( base: #ecaf2d ), green: ( base: #5ad864 ) ); $font-sizes: ( base: 14px, s: 12px, l: 16px, xl: 18px, xxl: 20px ); @mixin modifiers($map, $attribute, $prefix: '-', $separator: '-', $base: 'base') { @each $key, $value in $map { &#{if($key != $base, #{$prefix}#{$key}, '')} { @if map-depth($map) > 1 { @include modifiers($value, $attribute, $separator); } @else { #{$attribute}: $value; } } } } .text { @include modifiers($colors, 'color', $separator: ':'); @include modifiers($font-sizes, 'font-size', '--'); } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ .text-grey { color: #404145; } .text-grey:light { color: #c7c7cd; } .text-yellow { color: #ecaf2d; } .text-green { color: #5ad864; } .text { font-size: 14px; } .text--s { font-size: 12px; } .text--l { font-size: 16px; } .text--xl { font-size: 18px; } .text--xxl { font-size: 20px; }