From: Mark Otto Date: Sun, 25 Mar 2012 08:12:51 +0000 (-0700) Subject: Overhaul the responsive utility classes: X-Git-Tag: v2.0.3~5^2~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7b8e52f8e08cc821d7324153885c085fad25c1a;p=thirdparty%2Fbootstrap.git Overhaul the responsive utility classes: 1. Rename file from responsive-utility-classes.less to responsive-utilities.less 2. Add additional help text around the documentation for the classes in Scaffolding 3. Remove unnecessary display values on initial classes 4. Drop block values for inherit for better support on inline and table elements 5. Make use of \!important on every class to avoid classes with more specific selectors (e.g., .span* classes for the grid) --- diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index eed5be2e03..604ba03d39 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap-responsive.css b/docs/assets/css/bootstrap-responsive.css index 78ce60d7fc..1ad16d6fd9 100644 --- a/docs/assets/css/bootstrap-responsive.css +++ b/docs/assets/css/bootstrap-responsive.css @@ -43,49 +43,40 @@ visibility: hidden; } .visible-phone { - display: none; + display: none !important; } .visible-tablet { - display: none; -} -.visible-desktop { - display: block; -} -.hidden-phone { - display: block; -} -.hidden-tablet { - display: block; + display: none !important; } .hidden-desktop { - display: none; + display: none !important; } @media (max-width: 767px) { .visible-phone { - display: block; + display: inherit !important; } .hidden-phone { - display: none; + display: none !important; } .hidden-desktop { - display: block; + display: inherit !important; } .visible-desktop { - display: none; + display: none !important; } } @media (min-width: 768px) and (max-width: 979px) { .visible-tablet { - display: block; + display: inherit !important; } .hidden-tablet { - display: none; + display: none !important; } .hidden-desktop { - display: block; + display: inherit !important; } .visible-desktop { - display: none; + display: none !important ; } } @media (max-width: 480px) { diff --git a/docs/download.html b/docs/download.html index 44299b927f..e4097ea4e5 100644 --- a/docs/download.html +++ b/docs/download.html @@ -143,7 +143,7 @@

Responsive

- + diff --git a/docs/scaffolding.html b/docs/scaffolding.html index dd26412379..017fd493ea 100644 --- a/docs/scaffolding.html +++ b/docs/scaffolding.html @@ -609,12 +609,14 @@

Test case

Resize your browser or load on different devices to test the above classes.

Visible on...

+

Green checkmarks indicate that class is visible in your current viewport.

Hidden on...

+

Here, green checkmarks indicate that class is hidden in your current viewport.