animations.scss
10 months ago
colors.scss
1 year ago
mixins.scss
10 months ago
tooltip.scss
1 year ago
typography.scss
10 months ago
utilities.scss
10 months ago
z-index.scss
10 months ago
utilities.scss
86 lines
| 1 | @mixin padding-margin($mode) { |
| 2 | @if $mode == general { |
| 3 | $mode: ''; |
| 4 | } @else { |
| 5 | $mode: '-' + $mode; |
| 6 | } |
| 7 | |
| 8 | @for $i from 0 through 50 { |
| 9 | $num: $i * 4; |
| 10 | .h-m-#{$num}#{$mode} { |
| 11 | margin: #{$num}px !important; |
| 12 | } |
| 13 | .h-mx-#{$num}#{$mode} { |
| 14 | margin-left: #{$num}px !important; |
| 15 | margin-right: #{$num}px !important; |
| 16 | } |
| 17 | .h-my-#{$num}#{$mode} { |
| 18 | margin-top: #{$num}px !important; |
| 19 | margin-bottom: #{$num}px !important; |
| 20 | } |
| 21 | .h-mt-#{$num}#{$mode} { |
| 22 | margin-top: #{$num}px !important; |
| 23 | } |
| 24 | .h-mb-#{$num}#{$mode} { |
| 25 | margin-bottom: #{$num}px !important; |
| 26 | } |
| 27 | .h-ml-#{$num}#{$mode} { |
| 28 | margin-left: #{$num}px !important; |
| 29 | } |
| 30 | .h-mr-#{$num}#{$mode} { |
| 31 | margin-right: #{$num}px !important; |
| 32 | } |
| 33 | |
| 34 | .h-m-#{$num}#{$mode}-minus { |
| 35 | margin: -#{$num}px !important; |
| 36 | } |
| 37 | .h-mx-#{$num}#{$mode}-minus { |
| 38 | margin-left: -#{$num}px !important; |
| 39 | margin-right: -#{$num}px !important; |
| 40 | } |
| 41 | .h-my-#{$num}#{$mode}-minus { |
| 42 | margin-top: -#{$num}px !important; |
| 43 | margin-bottom: -#{$num}px !important; |
| 44 | } |
| 45 | .h-mt-#{$num}#{$mode}-minus { |
| 46 | margin-top: -#{$num}px !important; |
| 47 | } |
| 48 | .h-mb-#{$num}#{$mode}-minus { |
| 49 | margin-bottom: -#{$num}px !important; |
| 50 | } |
| 51 | .h-ml-#{$num}#{$mode}-minus { |
| 52 | margin-left: -#{$num}px !important; |
| 53 | } |
| 54 | .h-mr-#{$num}#{$mode}-minus { |
| 55 | margin-right: -#{$num}px !important; |
| 56 | } |
| 57 | |
| 58 | .h-p-#{$num}#{$mode} { |
| 59 | padding: #{$num}px !important; |
| 60 | } |
| 61 | .h-px-#{$num}#{$mode} { |
| 62 | padding-left: #{$num}px !important; |
| 63 | padding-right: #{$num}px !important; |
| 64 | } |
| 65 | .h-py-#{$num}#{$mode} { |
| 66 | padding-top: #{$num}px !important; |
| 67 | padding-bottom: #{$num}px !important; |
| 68 | } |
| 69 | .h-pt-#{$num}#{$mode} { |
| 70 | padding-top: #{$num}px !important; |
| 71 | } |
| 72 | .h-pb-#{$num}#{$mode} { |
| 73 | padding-bottom: #{$num}px !important; |
| 74 | } |
| 75 | .h-pl-#{$num}#{$mode} { |
| 76 | padding-left: #{$num}px !important; |
| 77 | } |
| 78 | .h-pr-#{$num}#{$mode} { |
| 79 | padding-right: #{$num}px !important; |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | // no media query |
| 85 | @include padding-margin(general); |
| 86 |