forked from tailwindlabs/tailwindcss
/
display.js
77 lines (77 loc) · 1.64 KB
/
display.js
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
71
72
73
74
75
76
77
export default function () {
return function ({ addUtilities, variants }) {
addUtilities(
{
'.block': {
display: 'block',
},
'.inline-block': {
display: 'inline-block',
},
'.inline': {
display: 'inline',
},
'.flex': {
display: 'flex',
},
'.inline-flex': {
display: 'inline-flex',
},
'.table': {
display: 'table',
},
'.inline-table': {
display: 'inline-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',
},
'.flow-root': {
display: 'flow-root',
},
'.grid': {
display: 'grid',
},
'.inline-grid': {
display: 'inline-grid',
},
'.contents': {
display: 'contents',
},
'.list-item': {
display: 'list-item',
},
},
variants('display')
)
addUtilities(
{
'.hidden': {
display: 'none',
},
},
variants('display')
)
}
}