-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflex.css
126 lines (108 loc) · 2.29 KB
/
flex.css
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/* tailwindcss */
.flex {
align-items: center;
}
.flex-col.left, .flex.top:not(.flex-col) {
align-items: flex-start;
}
.flex-col.top, .flex.left:not(.flex-col) {
justify-content: flex-start;
}
.flex-col.bottom, .flex.right:not(.flex-col) {
justify-content: flex-end;
}
.flex.center {
justify-content: center;
}
.flex-col.top.bottom, .flex.left.right:not(.flex-col) {
justify-content: space-between;
}
.flex:not(.flex-col) > .self-top, .flex-col > .self-left {
align-self: flex-start;
}
.flex:not(.flex-col) > .self-bottom, .flex-col > .self-right {
align-self: flex-end;
}
.flex:not(.flex-col) > .self-center, .flex-col > .self-center {
align-self: center;
}
/* common */
.flex-fill {
display: block;
flex: 1;
}
flex-v, flex-h,
.flex-v, .flex-h,
flex-v.flex-fill,
flex-h.flex-fill {
display: flex;
align-items: center;
}
flex-v.inline,
.flex-h.inline {
display: inline-flex;
}
flex-h.wrap, .flex-h.wrap,
flex-v.wrap, .flex-v.wrap{
flex-wrap: wrap;
align-content: center;
}
flex-h.wrap.between, .flex-h.wrap.between,
flex-v.wrap.between, .flex-v.wrap.between{
align-content: space-between;
}
flex-h.wrap > hr,
.flex-h.wrap > hr{
width: 100%;
border: 0;
margin: 0;
}
flex-v.wrap > hr,
.flex-v.wrap > hr{
height: 100%;
border: 0;
margin: 0;
}
flex-v, .flex-v {
flex-direction: column;
}
flex-h.stretch, .flex-h.stretch,
flex-v.stretch, .flex-v.stretch{
align-items: stretch;
}
flex-v.right, flex-h.bottom,
.flex-v.right, .flex-h.bottom {
align-items: flex-end;
}
flex-v.left, flex-h.top,
.flex-v.left, .flex-h.top {
align-items: flex-start;
}
flex-v.top, flex-h.left,
.flex-v.top, .flex-h.left {
justify-content: flex-start;
}
flex-v.bottom, flex-h.right,
.flex-v.bottom, .flex-h.right {
justify-content: flex-end;
}
flex-v.center, flex-h.center,
.flex-v.center, .flex-h.center {
justify-content: center;
}
flex-v.top.bottom, flex-h.left.right,
.flex-v.top.bottom, .flex-h.left.right {
justify-content: space-between;
}
flex-h > .self-top, .flex-h > .self-top,
flex-v > .self-left, .flex-v > .self-left{
align-self: flex-start;
}
flex-h > .self-bottom, .flex-h > .self-bottom,
flex-v > .self-right, .flex-v > .self-right{
align-self: flex-end;
}
flex-h > .self-center, .flex-h > .self-center,
flex-v > .self-center, .flex-v > .self-center{
align-self: center;
}