File tree Expand file tree Collapse file tree 4 files changed +24
-13
lines changed Expand file tree Collapse file tree 4 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ module.exports = {
67
67
verticalAlign : [ 'responsive' ] ,
68
68
visibility : [ 'responsive' ] ,
69
69
whitespace : [ 'responsive' ] ,
70
+ wordBreak : [ 'responsive' ] ,
70
71
width : [ 'responsive' ] ,
71
72
zIndex : [ 'responsive' ] ,
72
73
} ,
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ import userSelect from './plugins/userSelect'
61
61
import verticalAlign from './plugins/verticalAlign'
62
62
import visibility from './plugins/visibility'
63
63
import whitespace from './plugins/whitespace'
64
+ import wordBreak from './plugins/wordBreak'
64
65
import width from './plugins/width'
65
66
import zIndex from './plugins/zIndex'
66
67
@@ -131,6 +132,7 @@ export default function({ corePlugins: corePluginConfig }) {
131
132
verticalAlign,
132
133
visibility,
133
134
whitespace,
135
+ wordBreak,
134
136
width,
135
137
zIndex,
136
138
} )
Original file line number Diff line number Diff line change @@ -7,19 +7,6 @@ export default function() {
7
7
'.whitespace-pre' : { 'white-space' : 'pre' } ,
8
8
'.whitespace-pre-line' : { 'white-space' : 'pre-line' } ,
9
9
'.whitespace-pre-wrap' : { 'white-space' : 'pre-wrap' } ,
10
-
11
- '.break-normal' : {
12
- 'overflow-wrap' : 'normal' ,
13
- 'word-break' : 'normal' ,
14
- } ,
15
- '.break-words' : { 'overflow-wrap' : 'break-word' } ,
16
- '.break-all' : { 'word-break' : 'break-all' } ,
17
-
18
- '.truncate' : {
19
- overflow : 'hidden' ,
20
- 'text-overflow' : 'ellipsis' ,
21
- 'white-space' : 'nowrap' ,
22
- } ,
23
10
} ,
24
11
config ( 'variants.whitespace' )
25
12
)
Original file line number Diff line number Diff line change
1
+ export default function ( ) {
2
+ return function ( { addUtilities, config } ) {
3
+ addUtilities (
4
+ {
5
+ '.break-normal' : {
6
+ 'overflow-wrap' : 'normal' ,
7
+ 'word-break' : 'normal' ,
8
+ } ,
9
+ '.break-words' : { 'overflow-wrap' : 'break-word' } ,
10
+ '.break-all' : { 'word-break' : 'break-all' } ,
11
+
12
+ '.truncate' : {
13
+ overflow : 'hidden' ,
14
+ 'text-overflow' : 'ellipsis' ,
15
+ 'white-space' : 'nowrap' ,
16
+ } ,
17
+ } ,
18
+ config ( 'variants.wordBreak' )
19
+ )
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments