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 = {
6767 verticalAlign : [ 'responsive' ] ,
6868 visibility : [ 'responsive' ] ,
6969 whitespace : [ 'responsive' ] ,
70+ wordBreak : [ 'responsive' ] ,
7071 width : [ 'responsive' ] ,
7172 zIndex : [ 'responsive' ] ,
7273 } ,
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ import userSelect from './plugins/userSelect'
6161import verticalAlign from './plugins/verticalAlign'
6262import visibility from './plugins/visibility'
6363import whitespace from './plugins/whitespace'
64+ import wordBreak from './plugins/wordBreak'
6465import width from './plugins/width'
6566import zIndex from './plugins/zIndex'
6667
@@ -131,6 +132,7 @@ export default function({ corePlugins: corePluginConfig }) {
131132 verticalAlign,
132133 visibility,
133134 whitespace,
135+ wordBreak,
134136 width,
135137 zIndex,
136138 } )
Original file line number Diff line number Diff line change @@ -7,19 +7,6 @@ export default function() {
77 '.whitespace-pre' : { 'white-space' : 'pre' } ,
88 '.whitespace-pre-line' : { 'white-space' : 'pre-line' } ,
99 '.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- } ,
2310 } ,
2411 config ( 'variants.whitespace' )
2512 )
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