mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Add spacing classes to style-flat
This commit is contained in:
parent
2a399e71fa
commit
ecfb148b3c
1 changed files with 37 additions and 0 deletions
|
@ -212,6 +212,43 @@ $forest: #20572B
|
|||
a.btn-primary-alt
|
||||
color: $navy
|
||||
|
||||
// Spacing
|
||||
// Copied spacing classes in bootstrap v4 alpha 2
|
||||
// http://v4-alpha.getbootstrap.com/components/utilities/#spacing
|
||||
|
||||
$spacer: 1rem !default
|
||||
$spacer-x: $spacer !default
|
||||
$spacer-y: $spacer !default
|
||||
$spacers: ( 0: ( x: 0, y: 0 ), 1: ( x: $spacer-x, y: $spacer-y ), 2: ( x: ($spacer-x * 1.5), y: ($spacer-y * 1.5) ), 3: ( x: ($spacer-x * 3), y: ($spacer-y * 3) ) ) !default
|
||||
|
||||
.m-x-auto
|
||||
margin-right: auto !important
|
||||
margin-left: auto !important
|
||||
|
||||
@each $prop, $abbrev in (margin: m, padding: p)
|
||||
@each $size, $lengths in $spacers
|
||||
$length-x: map-get($lengths, x)
|
||||
$length-y: map-get($lengths, y)
|
||||
|
||||
.#{$abbrev}-a-#{$size}
|
||||
#{$prop}: $length-y $length-x !important // a = All sides
|
||||
.#{$abbrev}-t-#{$size}
|
||||
#{$prop}-top: $length-y !important
|
||||
.#{$abbrev}-r-#{$size}
|
||||
#{$prop}-right: $length-x !important
|
||||
.#{$abbrev}-b-#{$size}
|
||||
#{$prop}-bottom: $length-y !important
|
||||
.#{$abbrev}-l-#{$size}
|
||||
#{$prop}-left: $length-x !important
|
||||
|
||||
// Axes
|
||||
.#{$abbrev}-x-#{$size}
|
||||
#{$prop}-right: $length-x !important
|
||||
#{$prop}-left: $length-x !important
|
||||
|
||||
.#{$abbrev}-y-#{$size}
|
||||
#{$prop}-top: $length-y !important
|
||||
#{$prop}-bottom: $length-y !important
|
||||
|
||||
// base-flat.jade
|
||||
|
||||
|
|
Loading…
Reference in a new issue