diff options
Add Grid offset, more margin and padding utilities
1 files changed, 49 insertions, 44 deletions
| -rw-r--r-- | src/layout.less | 93 |
diff --git a/src/layout.less b/src/layout.less index 36323ff..7fd2c60 100644 --- a/src/layout.less +++ b/src/layout.less @@ -28,6 +28,15 @@ } } +// Responsive breakpoint system +.show-xs, +.show-sm, +.show-md, +.show-lg, +.show-xl { + display: none !important; +} + // Responsive grid system .columns { display: flex; @@ -39,7 +48,7 @@ margin-left: 0; margin-right: 0; - .column { + & > .column { padding-left: 0; padding-right: 0; } @@ -106,6 +115,21 @@ .col-1 { width: 8.33333333%; } +.col-auto { + flex: 0 0 auto; + max-width: none; + width: auto; +} +.col-mx-auto { + margin-left: auto; + margin-right: auto; +} +.col-ml-auto { + margin-left: auto; +} +.col-mr-auto { + margin-right: auto; +} @media screen and (max-width: @size-xl ) { .col-xl-12, .col-xl-11, @@ -157,6 +181,12 @@ .col-xl-1 { width: 8.33333333%; } + .hide-xl { + display: none !important; + } + .show-xl { + display: block !important; + } } @media screen and (max-width: @size-lg ) { .col-lg-12, @@ -209,6 +239,12 @@ .col-lg-1 { width: 8.33333333%; } + .hide-lg { + display: none !important; + } + .show-lg { + display: block !important; + } } @media screen and (max-width: @size-md ) { .col-md-12, @@ -261,6 +297,12 @@ .col-md-1 { width: 8.33333333%; } + .hide-md { + display: none !important; + } + .show-md { + display: block !important; + } } @media screen and (max-width: @size-sm ) { .col-sm-12, @@ -313,6 +355,12 @@ .col-sm-1 { width: 8.33333333%; } + .hide-sm { + display: none !important; + } + .show-sm { + display: block !important; + } } @media screen and (max-width: @size-xs) { .col-xs-12, @@ -365,17 +413,6 @@ .col-xs-1 { width: 8.33333333%; } -} - -// Responsive breakpoint system -.show-xs, -.show-sm, -.show-md, -.show-lg, -.show-xl { - display: none !important; -} -@media screen and (max-width: @size-xs) { .hide-xs { display: none !important; } @@ -383,35 +420,3 @@ display: block !important; } } -@media screen and (max-width: @size-sm) { - .hide-sm { - display: none !important; - } - .show-sm { - display: block !important; - } -} -@media screen and (max-width: @size-md) { - .hide-md { - display: none !important; - } - .show-md { - display: block !important; - } -} -@media screen and (max-width: @size-lg) { - .hide-lg { - display: none !important; - } - .show-lg { - display: block !important; - } -} -@media screen and (max-width: @size-xl) { - .hide-xl { - display: none !important; - } - .show-xl { - display: block !important; - } -} |