forked from tailwindlabs/tailwindcss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplay.js
More file actions
70 lines (70 loc) · 1.59 KB
/
display.js
File metadata and controls
70 lines (70 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
export default function() {
return function({ addUtilities, variants, target }) {
addUtilities(
{
'.block': {
display: 'block',
},
'.inline-block': {
display: 'inline-block',
},
'.inline': {
display: 'inline',
},
'.flex': {
display: 'flex',
},
'.inline-flex': {
display: 'inline-flex',
},
'.table': {
display: 'table',
},
'.table-caption': {
display: 'table-caption',
},
'.table-cell': {
display: 'table-cell',
},
'.table-column': {
display: 'table-column',
},
'.table-column-group': {
display: 'table-column-group',
},
'.table-footer-group': {
display: 'table-footer-group',
},
'.table-header-group': {
display: 'table-header-group',
},
'.table-row-group': {
display: 'table-row-group',
},
'.table-row': {
display: 'table-row',
},
...(target('display') === 'ie11'
? {}
: {
'.flow-root': {
display: 'flow-root',
},
'.grid': {
display: 'grid',
},
'.inline-grid': {
display: 'inline-grid',
},
'.contents': {
display: 'contents',
},
}),
'.hidden': {
display: 'none',
},
},
variants('display')
)
}
}