From: Andy Cochran Date: Mon, 31 Oct 2016 18:10:41 +0000 (-0400) Subject: nix important from drilldown, ammend callouts for components using important X-Git-Tag: v6.3-rc1~44^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e374c07372e6c76b0bc730c28aefd8c9495b05b;p=thirdparty%2Ffoundation%2Ffoundation-sites.git nix important from drilldown, ammend callouts for components using important --- diff --git a/docs/pages/base-typography.md b/docs/pages/base-typography.md index 40a6b6db6..06b7730d0 100644 --- a/docs/pages/base-typography.md +++ b/docs/pages/base-typography.md @@ -56,7 +56,7 @@ The framework includes two typographic scales—one uses a narrow range of s Header | Default | Medium and up --------|---------|-------------- `

` | 24px | 48px -`

` | 20px | 40px +`

` | 20px | 40px `

` | 19px | 31px `

` | 18px | 25px `

` | 17px | 20px @@ -260,3 +260,7 @@ Foundation includes print styles developed by HTML5 Boilerplate to give you some - Page cleanup and window minimization On top of that, Foundation includes a couple of simple classes you can use to control elements printing, or not printing. Simply attach `.show-for-print` to an element to only show when printing, and `.hide-for-print` to hide something when printing. + +
+

Print styles use `!important` to ensure they aren't overriden by more specific selectors. This framework conscientiously avoids using `!important` declarations. This is one of the few components that does.

+
diff --git a/docs/pages/float-classes.md b/docs/pages/float-classes.md index 74b5c685f..e9b710b99 100644 --- a/docs/pages/float-classes.md +++ b/docs/pages/float-classes.md @@ -7,6 +7,10 @@ description: Foundation includes a handful of helpful float classes to add commo You can change the float behavior of an element by adding the `.float-left` or `.float-right` classes to an element. To clear floats, add the class `.clearfix` to the parent element. +
+

Float Left/Right classes use `!important` to ensure they aren't overriden by more specific selectors. This framework conscientiously avoids using `!important` declarations. This is one of the few components that does.

+
+

Float classes don't flip direction in a right-to-left environment—left always means left, and right always means right.

diff --git a/docs/pages/visibility.md b/docs/pages/visibility.md index a21eb0b0f..ebf1a4587 100644 --- a/docs/pages/visibility.md +++ b/docs/pages/visibility.md @@ -8,10 +8,10 @@ tags: ---
-

Visibility classes use `!important` to ensure they aren't overriden by more specific selectors. This is the only component in the framework that uses `!important`.

+

Visibility classes use `!important` to ensure they aren't overriden by more specific selectors. This framework conscientiously avoids using `!important` declarations. This is one of the few components that does.

-
+

There are no classes to detect touchscreen devices, as both desktop and mobile browsers inconsistently report touch support. Learn more here: You Can't Detect a Touchscreen

diff --git a/scss/components/_drilldown.scss b/scss/components/_drilldown.scss index 000fb29fd..a9d2d906f 100644 --- a/scss/components/_drilldown.scss +++ b/scss/components/_drilldown.scss @@ -29,7 +29,7 @@ $drilldown-background: $white !default; overflow: hidden; li { - display: block !important; + display: block; } &.animate-height {