Mercurial > nebulaweb3
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/assets/scss/vendors/bourbon/library/_hide-text.scss Sat May 31 09:21:51 2025 +0800 @@ -0,0 +1,24 @@ +@charset "UTF-8"; + +/// Hides the text in an element, commonly used to show an image instead. Some +/// elements will need block-level styles applied. +/// +/// @link http://goo.gl/EvLRIu +/// +/// @example scss +/// .element { +/// @include hide-text; +/// } +/// +/// // CSS Output +/// .element { +/// overflow: hidden; +/// text-indent: 101%; +/// white-space: nowrap; +/// } + +@mixin hide-text { + overflow: hidden; + text-indent: 101%; + white-space: nowrap; +}