aboutsummaryrefslogtreecommitdiff
path: root/less/grid.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-01-15 17:55:14 -0800
committerMark Otto <[email protected]>2013-01-15 17:55:14 -0800
commit85db846b651842444d374f8e54f3f362ca18d08e (patch)
tree3f8bd10e17327ebcb0a8f5d719741be49cbf6580 /less/grid.less
parent094767fbfe09b921da1f3f5deba4db2c79be37f5 (diff)
downloadbootstrap-85db846b651842444d374f8e54f3f362ca18d08e.tar.xz
bootstrap-85db846b651842444d374f8e54f3f362ca18d08e.zip
mobile-first navs, navbar, grids, and type
Diffstat (limited to 'less/grid.less')
-rw-r--r--less/grid.less17
1 files changed, 16 insertions, 1 deletions
diff --git a/less/grid.less b/less/grid.less
index 2e7a61d91..2638ee068 100644
--- a/less/grid.less
+++ b/less/grid.less
@@ -9,8 +9,23 @@
max-width: 940px;
}
+// Mobile-first defaults
+.row {
+ margin-left: -10px;
+ margin-right: -10px;
+ .clear_float();
+}
+[class^="span"] {
+ padding-left: 10px;
+ padding-right: 10px;
+ // Proper box-model (padding doesn't add to width)
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
// Fixed (940px)
-#grid > .core(@grid-column-width, @grid-gutter-width, @grid-row-width);
+// #grid > .core(@grid-column-width, @grid-gutter-width, @grid-row-width);
// Reset utility classes due to specificity
[class*="span"].pull-right {