forked from tailwindlabs/tailwindcss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhitespace.js
More file actions
23 lines (21 loc) · 701 Bytes
/
whitespace.js
File metadata and controls
23 lines (21 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export default function() {
return function({ addUtilities, config }) {
addUtilities(
{
'.whitespace-normal': { 'white-space': 'normal' },
'.whitespace-no-wrap': { 'white-space': 'nowrap' },
'.whitespace-pre': { 'white-space': 'pre' },
'.whitespace-pre-line': { 'white-space': 'pre-line' },
'.whitespace-pre-wrap': { 'white-space': 'pre-wrap' },
'.break-words': { 'word-wrap': 'break-word' },
'.break-normal': { 'word-wrap': 'normal' },
'.truncate': {
overflow: 'hidden',
'text-overflow': 'ellipsis',
'white-space': 'nowrap',
},
},
config('modules.whitespace')
)
}
}