From 3ab1eb55b9c19e836af300b8db1fc3096815efe4 Mon Sep 17 00:00:00 2001 From: Arnold Daniels Date: Tue, 17 Jul 2012 12:45:11 +0200 Subject: [PATCH] Documented semifluid layouts Added semifluid layouts to jasny/bootstrap.less and jasny/responsive.less --- docs/assets/css/docs.css | 6 +----- docs/templates/pages/index.mustache | 4 ++++ docs/templates/pages/scaffolding.mustache | 24 ++++++++++++++++++++++- less/jasny/bootstrap.less | 3 +++ less/jasny/responsive.less | 3 +++ 5 files changed, 34 insertions(+), 6 deletions(-) diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 5b636caa..5b576964 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -396,6 +396,7 @@ hr.soften { width: 100%; } + /* Popover docs -------------------------------------------------- */ .popover-well { @@ -902,11 +903,6 @@ form.well { border-top-width: 0px; padding: 0; } - - /* Space out the show-grid examples */ - .row-desktop.show-grid [class*="span"] { - margin-bottom: 5px; - } } diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index 88973aed..5e9a2bfb 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -67,6 +67,10 @@

{{_i}}Page alerts{{/i}}

{{_i}}Know those nice little alerts after you save your profile? With .page-alert the alert will be shown on top op your page.{{/i}}

+
+

{{_i}}Semi-fluid layout{{/i}}

+

{{_i}}Get the best of both worlds with a semi-fluid layout. It acts as a fixed layout for big screens. For smaller screens, it behaves like a fluid layout.{{/i}}

+
diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index 1088cc77..b7e3f6b3 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -358,6 +358,28 @@ </div> </div> </div> + +
+
+ +
+
+

{{_i}}Semi-fluid layout{{/i}}

+

{{_i}}Get the best of both worlds with <div class="container-semifluid">. It acts as a fixed layout for big screens. For smaller screens, it behaves like a fluid layout.{{/i}}

+
+
+
+
+
+
+
+
+
+<div class="container-fluid">
+  <div class="row-fluid">
+    ...
+  </div>
+</div>
 
@@ -547,7 +569,7 @@ - +
diff --git a/less/jasny/bootstrap.less b/less/jasny/bootstrap.less index 984ee594..1991d8dc 100644 --- a/less/jasny/bootstrap.less +++ b/less/jasny/bootstrap.less @@ -12,6 +12,9 @@ @import "../variables.less"; // Modify this for custom colors, font-sizes, etc @import "../mixins.less"; +// Grid system and page structure +@import "layouts-semifluid.less"; + // Base CSS @import "forms.less"; @import "forms-uneditable.less"; diff --git a/less/jasny/responsive.less b/less/jasny/responsive.less index 6adedb91..3abd9df2 100644 --- a/less/jasny/responsive.less +++ b/less/jasny/responsive.less @@ -12,6 +12,9 @@ @import "../variables.less"; // Modify this for custom colors, font-sizes, etc @import "../mixins.less"; +// Grid system and page structure +@import "layouts-semifluid.responsive.less"; + // Base CSS @import "forms.responsive.less";