diff options
| author | Chris Rebert <[email protected]> | 2013-08-23 22:39:26 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2013-08-23 22:39:26 -0700 |
| commit | a7e5bac2d7bc1454e7a206e43e78096316bbfff8 (patch) | |
| tree | 889f2aa5f117e7b449445fd67eb7289f5ba13a0d /less | |
| parent | 48d929d69edf06fd0b02e05522e0c8efe6b5b77f (diff) | |
| parent | a66ccbc562dbdca983fa65a55bfcbe426bcca3dc (diff) | |
| download | bootstrap-a7e5bac2d7bc1454e7a206e43e78096316bbfff8.tar.xz bootstrap-a7e5bac2d7bc1454e7a206e43e78096316bbfff8.zip | |
Merge pull request #10100 from twbs/document_hide_text
Fixes #10076: Document hide text
Diffstat (limited to 'less')
| -rw-r--r-- | less/mixins.less | 16 | ||||
| -rw-r--r-- | less/utilities.less | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/less/mixins.less b/less/mixins.less index c18e7c49b..c5a700156 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -69,7 +69,15 @@ } // CSS image replacement +// +// Heads up! v3 launched with with only `.hide-text()`, but per our pattern for +// mixins being reused as classes with the same name, this doesn't hold up. As +// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. Note +// that we cannot chain the mixins together in Less, so they are repeated. +// // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 + +// Deprecated as of v3.0.1 (will be removed in v4) .hide-text() { font: ~"0/0" a; color: transparent; @@ -77,6 +85,14 @@ background-color: transparent; border: 0; } +// New mixin to use as of v3.0.1 +.text-hide() { + font: ~"0/0" a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} diff --git a/less/utilities.less b/less/utilities.less index 3d310e651..a2807cc79 100644 --- a/less/utilities.less +++ b/less/utilities.less @@ -30,7 +30,7 @@ visibility: hidden; } .text-hide { - .hide-text(); + .text-hide(); } |
