Created
October 29, 2015 22:31
-
-
Save colinwren/ebca99472d66aae0fa80 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
| // ---- | |
| // Sass (v3.4.14) | |
| // Compass (v1.0.3) | |
| // ---- | |
| $properties: (long-name: 'margin', short-name: 'm'), (long-name: 'padding', short-name: 'p'); | |
| $directions: (long-name: 'Top', short-name: 't'), (long-name: 'Right', short-name: 'r'), (long-name:'Bottom', short-name: 'b'), (long-name:'Left', short-name:'l'); | |
| $unit-base: 4px; | |
| @each $property in $properties { | |
| @for $num from 0 through 1 { | |
| $property-rule: ($unit-base * $num) !important; | |
| .u-#{map-get($property, long-name)}#{$num}x { | |
| #{map-get($property, long-name)}: $property-rule; | |
| } | |
| .u-#{map-get($property, short-name)}#{$num}x { | |
| @extend .u-#{map-get($property, long-name)}#{$num}x; | |
| } | |
| } | |
| @for $num from 0 through 1 { | |
| $property-rule: ($unit-base * $num) !important; | |
| .u-#{map-get($property, long-name)}Vertical#{$num}x { | |
| #{map-get($property, long-name)}-top: $property-rule; | |
| #{map-get($property, long-name)}-bottom: $property-rule; | |
| } | |
| .u-#{map-get($property, short-name)}v#{$num}x { | |
| @extend .u-#{map-get($property, long-name)}Vertical#{$num}x; | |
| } | |
| .u-#{map-get($property, long-name)}Horizontal#{$num}x { | |
| #{map-get($property, long-name)}-right: $property-rule; | |
| #{map-get($property, long-name)}-left: $property-rule; | |
| } | |
| .u-#{map-get($property, short-name)}h#{$num}x { | |
| @extend .u-#{map-get($property, long-name)}Horizontal#{$num}x; | |
| } | |
| } | |
| @each $direction in $directions { | |
| @for $num from 0 through 1 { | |
| $property-rule: ($unit-base * $num) !important; | |
| .u-#{map-get($property, long-name)}#{map-get($direction,long-name)}#{$num}x { | |
| #{map-get($property, long-name)}-#{to-lower-case(map-get($direction, long-name))}: $property-rule; | |
| } | |
| .u-#{map-get($property, short-name)}#{map-get($direction,short-name)}#{$num}x { | |
| @extend .u-#{map-get($property, long-name)}#{map-get($direction,long-name)}#{$num}x; | |
| } | |
| } | |
| } | |
| } | |
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
| .u-margin0x, .u-m0x { | |
| margin: 0px !important; | |
| } | |
| .u-margin1x, .u-m1x { | |
| margin: 4px !important; | |
| } | |
| .u-marginVertical0x, .u-mv0x { | |
| margin-top: 0px !important; | |
| margin-bottom: 0px !important; | |
| } | |
| .u-marginHorizontal0x, .u-mh0x { | |
| margin-right: 0px !important; | |
| margin-left: 0px !important; | |
| } | |
| .u-marginVertical1x, .u-mv1x { | |
| margin-top: 4px !important; | |
| margin-bottom: 4px !important; | |
| } | |
| .u-marginHorizontal1x, .u-mh1x { | |
| margin-right: 4px !important; | |
| margin-left: 4px !important; | |
| } | |
| .u-marginTop0x, .u-mt0x { | |
| margin-top: 0px !important; | |
| } | |
| .u-marginTop1x, .u-mt1x { | |
| margin-top: 4px !important; | |
| } | |
| .u-marginRight0x, .u-mr0x { | |
| margin-right: 0px !important; | |
| } | |
| .u-marginRight1x, .u-mr1x { | |
| margin-right: 4px !important; | |
| } | |
| .u-marginBottom0x, .u-mb0x { | |
| margin-bottom: 0px !important; | |
| } | |
| .u-marginBottom1x, .u-mb1x { | |
| margin-bottom: 4px !important; | |
| } | |
| .u-marginLeft0x, .u-ml0x { | |
| margin-left: 0px !important; | |
| } | |
| .u-marginLeft1x, .u-ml1x { | |
| margin-left: 4px !important; | |
| } | |
| .u-padding0x, .u-p0x { | |
| padding: 0px !important; | |
| } | |
| .u-padding1x, .u-p1x { | |
| padding: 4px !important; | |
| } | |
| .u-paddingVertical0x, .u-pv0x { | |
| padding-top: 0px !important; | |
| padding-bottom: 0px !important; | |
| } | |
| .u-paddingHorizontal0x, .u-ph0x { | |
| padding-right: 0px !important; | |
| padding-left: 0px !important; | |
| } | |
| .u-paddingVertical1x, .u-pv1x { | |
| padding-top: 4px !important; | |
| padding-bottom: 4px !important; | |
| } | |
| .u-paddingHorizontal1x, .u-ph1x { | |
| padding-right: 4px !important; | |
| padding-left: 4px !important; | |
| } | |
| .u-paddingTop0x, .u-pt0x { | |
| padding-top: 0px !important; | |
| } | |
| .u-paddingTop1x, .u-pt1x { | |
| padding-top: 4px !important; | |
| } | |
| .u-paddingRight0x, .u-pr0x { | |
| padding-right: 0px !important; | |
| } | |
| .u-paddingRight1x, .u-pr1x { | |
| padding-right: 4px !important; | |
| } | |
| .u-paddingBottom0x, .u-pb0x { | |
| padding-bottom: 0px !important; | |
| } | |
| .u-paddingBottom1x, .u-pb1x { | |
| padding-bottom: 4px !important; | |
| } | |
| .u-paddingLeft0x, .u-pl0x { | |
| padding-left: 0px !important; | |
| } | |
| .u-paddingLeft1x, .u-pl1x { | |
| padding-left: 4px !important; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment