git repos / blockattack-game

blame: source/misc/embedded_libs/fmt-8.1.1/doc/bootstrap/mixins/hide-text.less

normal view · raw

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