hide-text.less 668 B

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