From 6de67c0ab60bc94931def838de2e66764d4838ea Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 23 Aug 2013 22:11:41 -0700 Subject: Deprecate .hide-text mixin for .text-hide as mixin and class --- less/mixins.less | 9 ++++++++- less/utilities.less | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index c18e7c49b..d4c8e0115 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -69,8 +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()`. +// // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 -.hide-text() { + +.hide-text(), +.text-hide() { font: ~"0/0" a; color: transparent; text-shadow: none; 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(); } -- cgit v1.2.3 From a66ccbc562dbdca983fa65a55bfcbe426bcca3dc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 23 Aug 2013 22:19:58 -0700 Subject: split mixin and grunt dist to be sure --- less/mixins.less | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index d4c8e0115..c5a700156 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -72,11 +72,20 @@ // // 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()`. +// 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 -.hide-text(), +// Deprecated as of v3.0.1 (will be removed in v4) +.hide-text() { + font: ~"0/0" a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} +// New mixin to use as of v3.0.1 .text-hide() { font: ~"0/0" a; color: transparent; -- cgit v1.2.3