hide-text.less 575 B

123456789101112131415161718192021
  1. // CSS image replacement
  2. //
  3. // Heads up! v3 launched with only `.hide-text()`, but per our pattern for
  4. // mixins being reused as classes with the same name, this doesn't hold up. As
  5. // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
  6. //
  7. // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
  8. // Deprecated as of v3.0.1 (has been removed in v4)
  9. .hide-text() {
  10. font: ~"0/0" a;
  11. color: transparent;
  12. text-shadow: none;
  13. background-color: transparent;
  14. border: 0;
  15. }
  16. // New mixin to use as of v3.0.1
  17. .text-hide() {
  18. .hide-text();
  19. }