From b441742867bf828dc8797d19c7e4e1191f3cbf5b Mon Sep 17 00:00:00 2001 From: Arnold Daniels Date: Tue, 17 Jul 2012 13:45:23 +0200 Subject: [PATCH] Documented `.row-desktop` Added row desktop to jasny/responsive.less --- docs/assets/css/docs.css | 5 +++++ docs/templates/pages/index.mustache | 4 ++++ docs/templates/pages/scaffolding.mustache | 22 ++++++++++++++++++++++ less/jasny/responsive.less | 1 + 4 files changed, 32 insertions(+) diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 5b576964..7325f728 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -903,6 +903,11 @@ 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 5e9a2bfb..ebf423f4 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -71,6 +71,10 @@

{{_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}}

+
+

{{_i}}Desktop rows{{/i}}

+

{{_i}}By default columns of a row are show next to each other for tablets and desktops and not for phones. A desktop row displays acts like a row for desktops only and not for tablets or phones.{{/i}}

+
diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index b7e3f6b3..19ea675b 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -569,6 +569,28 @@
+ +

{{_i}}Desktop rows{{/i}}

+
+
+

{{_i}}By default columns of a .row are show next to each other, however for phones the columns are show underneath each other. By adding the class .row-desktop to a row, + it will display the columns underneath each other for tablets as well.{{/i}}

+
+
+

{{_i}}Test case{{/i}}

+

{{_i}}Resize your browser to see the rows behave differently. They look the same for desktops and phones, but different for tablets.{{/i}}

+
+
Normal row 1
+
Normal row 2
+
Normal row 3
+
+
+
Desktop row 1
+
Desktop row 2
+
Desktop row 3
+
+
+
diff --git a/less/jasny/responsive.less b/less/jasny/responsive.less index 3abd9df2..dc31c333 100644 --- a/less/jasny/responsive.less +++ b/less/jasny/responsive.less @@ -14,6 +14,7 @@ // Grid system and page structure @import "layouts-semifluid.responsive.less"; +@import "row-desktop.responsive.less"; // Base CSS @import "forms.responsive.less";