-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflex.styl
70 lines (57 loc) · 1.2 KB
/
flex.styl
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
wrap(what)
if what == '1'
flex-wrap wrap
if what == '0'
flex-wrap nowrap
if what == 'true'
flex-wrap wrap
if what == 'false'
flex-wrap nowrap
if what == 'wrap'
flex-wrap wrap
if what == 'nowrap'
flex-wrap nowrap
if what == 'reverse'
flex-wrap wrap-reverse
justify(what)
if what == 'start'
justify-content flex-start
if what == 'center'
justify-content center
if what == 'end'
justify-content flex-end
if what == 'between'
justify-content space-between
if what == 'around'
justify-content space-around
align(what)
if what == 'start'
align-items flex-start
if what == 'center'
align-items center
if what == 'end'
align-items flex-end
if what == 'stretch'
align-items stretch
if what == 'baseline'
align-items baseline
flex(what)
if what == 'line'
display inline-flex
if what == 'styl'
display flex
if what == 'center'
justify center
align center
if what == 'row'
flex-direction row
if what == 'column'
flex-direction column
if what == 'grow'
flex-grow 1
if what == 'nogrow'
flex-grow 0
if what == 'shrink'
flex-shrink 1
if what == 'noshrink'
flex-shrink 0