Summary Files Commits Branches @commit @diff @stats
path: root / src / layout.less
diff options
context:
space:
mode:
Commit41ec3e49d63ea45d8aee4f26eeccfedaa20a7f7d (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-08-17 18:54:07 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-08-17 18:54:07 +0800
Files552ac43419aa6b4e9f5dd2b818eabd4cdaa7ea9e /src/layout.less
Spectre-Dark-Gruvbox-41ec3e49d63ea45d8aee4f26eeccfedaa20a7f7d.tar
Spectre-Dark-Gruvbox-41ec3e49d63ea45d8aee4f26eeccfedaa20a7f7d.tar.gz
Spectre-Dark-Gruvbox-41ec3e49d63ea45d8aee4f26eeccfedaa20a7f7d.zip
Parentb56b14d2f4a5c30c9a3d106377b40d3a7f595b8a (diff)
Add Grid offset, more margin and padding utilities
1 files changed, 49 insertions, 44 deletions
-rw-r--r--src/layout.less93
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;
- }
-}