Mercurial > nebulaweb3
comparison default/assets/scss/vendors/bourbon/library/_word-wrap.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 /// Provides an easy way to change the `word-wrap` property. | |
4 /// | |
5 /// @argument {string} $wrap [break-word] | |
6 /// Value for the `word-break` property. | |
7 /// | |
8 /// @example scss | |
9 /// .wrapper { | |
10 /// @include word-wrap(break-word); | |
11 /// } | |
12 /// | |
13 /// // CSS Output | |
14 /// .wrapper { | |
15 /// overflow-wrap: break-word; | |
16 /// word-break: break-all; | |
17 /// word-wrap: break-word; | |
18 /// } | |
19 | |
20 @mixin word-wrap($wrap: break-word) { | |
21 overflow-wrap: $wrap; | |
22 word-wrap: $wrap; | |
23 | |
24 @if $wrap == break-word { | |
25 word-break: break-all; | |
26 } @else { | |
27 word-break: $wrap; | |
28 } | |
29 } |