summaryrefslogtreecommitdiff
path: root/bootstrap/less/mixins/hide-text.less
diff options
context:
space:
mode:
authorsanjeevi012019-07-05 15:30:52 +0530
committersanjeevi012019-07-05 15:33:36 +0530
commit85a9d81638d240f3fa9ed01cb139ef33243b379b (patch)
tree5de2a278bd0b3e8c979defa73b24470a56055a3c /bootstrap/less/mixins/hide-text.less
parente5a79b1f0f70eb0bc413c5b85139617dbe84b07d (diff)
downloadfossee_istos-85a9d81638d240f3fa9ed01cb139ef33243b379b.tar.gz
fossee_istos-85a9d81638d240f3fa9ed01cb139ef33243b379b.tar.bz2
fossee_istos-85a9d81638d240f3fa9ed01cb139ef33243b379b.zip
Initial commit
Diffstat (limited to 'bootstrap/less/mixins/hide-text.less')
-rwxr-xr-xbootstrap/less/mixins/hide-text.less23
1 files changed, 23 insertions, 0 deletions
diff --git a/bootstrap/less/mixins/hide-text.less b/bootstrap/less/mixins/hide-text.less
new file mode 100755
index 0000000..9b21a10
--- /dev/null
+++ b/bootstrap/less/mixins/hide-text.less
@@ -0,0 +1,23 @@
+// stylelint-disable font-family-name-quotes, font-family-no-missing-generic-family-keyword
+
+// CSS image replacement
+//
+// Heads up! v3 launched 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
+
+// Deprecated as of v3.0.1 (has been 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() {
+ .hide-text();
+}