Mercurial > nebulaweb3
comparison default/assets/scss/vendors/bourbon/library/_hide-text.scss @ 0:1d038bc9b3d2 default tip
Up:default
author | Liny <dev@neowd.com> |
---|---|
date | Sat, 31 May 2025 09:21:51 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1d038bc9b3d2 |
---|---|
1 @charset "UTF-8"; | |
2 | |
3 /// Hides the text in an element, commonly used to show an image instead. Some | |
4 /// elements will need block-level styles applied. | |
5 /// | |
6 /// @link http://goo.gl/EvLRIu | |
7 /// | |
8 /// @example scss | |
9 /// .element { | |
10 /// @include hide-text; | |
11 /// } | |
12 /// | |
13 /// // CSS Output | |
14 /// .element { | |
15 /// overflow: hidden; | |
16 /// text-indent: 101%; | |
17 /// white-space: nowrap; | |
18 /// } | |
19 | |
20 @mixin hide-text { | |
21 overflow: hidden; | |
22 text-indent: 101%; | |
23 white-space: nowrap; | |
24 } |