Revisions
-
rebotak revised this gist
Mar 3, 2021 . No changes.There are no files selected for viewing
-
victorS7P revised this gist
Feb 17, 2019 . 1 changed file with 21 additions and 9 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,18 +7,30 @@ $positions: ( y: ('top', 'bottom') ); @mixin sizeValue($prop, $i) { #{$prop}: ($i * .5em); }; @for $i from 0 to 6 { @each $prop, $propValue in (m: 'margin', p: 'padding') { .#{$prop}-#{$i} { @include sizeValue((#{$propValue}), $i); } @each $var, $value in $positions { .#{$prop}#{$var}-#{$i} { @each $pos in $value { @include sizeValue((#{$propValue}-#{$pos}), $i); } } @if ($i == 0 and $prop == 'm') { .m#{$var}-auto { @each $pos in $value { margin-#{$pos}: auto; } } } } } } -
victorS7P revised this gist
Feb 17, 2019 . No changes.There are no files selected for viewing
-
victorS7P revised this gist
Feb 17, 2019 . 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 @@ -12,7 +12,7 @@ $positions: ( @for $i from 0 to 6 { @each $prop, $propValue in (m: 'margin', p: 'padding') { .#{$prop}#{$var}-#{$i} { #{$propValue}-#{$pos}: ($i * .5em); } } } -
victorS7P revised this gist
Feb 17, 2019 . 1 changed file with 9 additions and 5 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,14 +7,18 @@ $positions: ( y: ('top', 'bottom') ); @each $var, $value in $positions { @each $pos in $value { @for $i from 0 to 6 { @each $prop, $propValue in (m: 'margin', p: 'padding') { .#{$prop}#{$var}-#{$i} { #{$propValue}-#{$pos}: ($i * .5) + 'em'; } } } .m#{$var}-auto { margin-#{$pos}: auto; } } } -
victorS7P created this gist
Feb 17, 2019 .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,20 @@ $positions: ( t: ('top'), r: ('right'), b: ('bottom'), l: ('left'), x: ('left', 'right'), y: ('top', 'bottom') ); @for $i from 0 to 5 { @each $var, $value in $positions { @each $prop, $propValue in (m: 'margin', p: 'padding') { .#{$prop}#{$var}-#{$i} { @each $pos in $value { #{$propValue}-#{$pos}: ($i * .5) + 'em'; } } } } }