aboutsummaryrefslogtreecommitdiff
path: root/less/layouts.less
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-01-26 21:48:46 -0800
committerJacob Thornton <[email protected]>2012-01-26 21:48:46 -0800
commitdc2deb9a1b1995bbabee91bfd579d9b466fe78f2 (patch)
tree9606da7326fd0a1e2ba1727e7390a69555bd92c3 /less/layouts.less
parente0e54d9c6cb39eae53e31117c38ceae0a08a6e0b (diff)
downloadbootstrap-dc2deb9a1b1995bbabee91bfd579d9b466fe78f2.tar.xz
bootstrap-dc2deb9a1b1995bbabee91bfd579d9b466fe78f2.zip
moving structure around + more work on builder...
Diffstat (limited to 'less/layouts.less')
-rw-r--r--less/layouts.less43
1 files changed, 43 insertions, 0 deletions
diff --git a/less/layouts.less b/less/layouts.less
new file mode 100644
index 000000000..14435c9d1
--- /dev/null
+++ b/less/layouts.less
@@ -0,0 +1,43 @@
+//
+// Layouts
+// Fixed-width and fluid (with sidebar) layouts
+// --------------------------------------------
+
+
+// Container (centered, fixed-width layouts)
+.container {
+ .container-fixed();
+}
+
+// Fluid layouts (left aligned, with sidebar, min- & max-width content)
+.fluid-container {
+ position: relative;
+ min-width: @siteWidth;
+ padding-left: @gridGutterWidth;
+ padding-right: @gridGutterWidth;
+ .clearfix();
+}
+
+// Sidebars (left and right options)
+.fluid-sidebar {
+ width: @fluidSidebarWidth;
+ margin: 0 20px 18px;
+}
+.sidebar-left { padding-left: @fluidSidebarWidth + @gridGutterWidth * 2; }
+.sidebar-right { padding-right: @fluidSidebarWidth + @gridGutterWidth * 2; }
+
+// Float the sidebars accordingly
+.sidebar-left .fluid-sidebar {
+ float: left;
+ margin-left: (@fluidSidebarWidth + @gridGutterWidth) * -1;
+}
+.sidebar-right .fluid-sidebar {
+ float: right;
+ margin-right: (@fluidSidebarWidth + @gridGutterWidth) * -1;
+}
+
+// The main content area
+.fluid-content {
+ float: left;
+ width: 100%;
+}