Summary Files Commits Branches @commit @diff @stats
path: root / src / layout.less
diff options
context:
space:
mode:
Commit99c7ca56f6921515f03a306f772cd35d9fe47a7d (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-05-05 13:41:52 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-05-05 13:41:52 +0800
Filesdc0da570301f796f3bfa0e9ff14995da49e308d6 /src/layout.less
Spectre-Dark-Gruvbox-99c7ca56f6921515f03a306f772cd35d9fe47a7d.tar
Spectre-Dark-Gruvbox-99c7ca56f6921515f03a306f772cd35d9fe47a7d.tar.gz
Spectre-Dark-Gruvbox-99c7ca56f6921515f03a306f772cd35d9fe47a7d.zip
Parente0b8c0453aa5f5ac70558ae6ccf626c6182052f6 (diff)
code cleanup
1 files changed, 9 insertions, 12 deletions
-rw-r--r--src/layout.less21
diff --git a/src/layout.less b/src/layout.less
index 6a9a643..dbc48c9 100644
--- a/src/layout.less
+++ b/src/layout.less
@@ -8,18 +8,15 @@
width: 100%;
&:extend(.clearfix all);
}
-@media screen and (min-width: 981px) {
+// Grid sizes
+@media screen and (min-width: (960px + 2 * @html-font-size * @layout-gutter)) {
.grid-960 {
- margin-left: auto;
- margin-right: auto;
- width: 96rem;
+ width: 96rem + 2 * @layout-gutter;
}
}
-@media screen and (min-width: 481px) {
+@media screen and (min-width: (480px + 2 * @html-font-size * @layout-gutter)) {
.grid-480 {
- margin-left: auto;
- margin-right: auto;
- width: 48rem;
+ width: 48rem + 2 * @layout-gutter;
}
}
@@ -84,7 +81,7 @@
.col-1 {
width: 8.33333333%;
}
-@media screen and (min-width: (@size-xs+1px)) {
+@media screen and (min-width: (@size-xs + 1px)) {
.col-xs-12,
.col-xs-11,
.col-xs-10,
@@ -136,7 +133,7 @@
width: 8.33333333%;
}
}
-@media screen and (min-width: (@size-sm+1px)) {
+@media screen and (min-width: (@size-sm + 1px)) {
.col-sm-12,
.col-sm-11,
.col-sm-10,
@@ -188,7 +185,7 @@
width: 8.33333333%;
}
}
-@media screen and (min-width: (@size-md+1px)) {
+@media screen and (min-width: (@size-md + 1px)) {
.col-md-12,
.col-md-11,
.col-md-10,
@@ -240,7 +237,7 @@
width: 8.33333333%;
}
}
-@media screen and (min-width: (@size-md+1px)) {
+@media screen and (min-width: (@size-md + 1px)) {
.form-horizontal {
padding: 1rem;