-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflex.css
56 lines (41 loc) · 1.35 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
/* Flexbox
// ================================================== */
.d--f { display: flex; }
.d--if { display: inline-flex; }
/* Flex direction */
.fd--r { flex-direction: row; } /* Default */
.fd--rr { flex-direction: row-reverse; }
.fd--c { flex-direction: column; }
.fd--cr { flex-direction: column-reverse; }
/* Flex wrap */
.fw--n { flex-wrap: nowrap; } /* Default */
.fw--w { flex-wrap: wrap; }
.fw--wr { flex-wrap: wrap-reverse; }
/* Justify content */
.jc--fe { justify-content: flex-end; }
.jc--fs { justify-content: flex-start; } /* Default */
.jc--c { justify-content: center; }
.jc--sa { justify-content: space-around; }
.jc--sb { justify-content: space-between; }
/* Align items */
.ai--fs { align-items: flex-start; }
.ai--c { align-items: center; }
.ai--fe { align-items: flex-end; }
.ai--s { align-items: stretch; } /* Default */
.ai--b { align-items: baseline; }
/* Flex grow */
.fg--0 { flex-grow: 0; } /* Default */
.fg--1 { flex-grow: 1; }
/* Flex shrink */
.fs--0 { flex-shrink: 0; }
.fs--1 { flex-shrink: 1; } /* Default */
/* Flex basis */
.fb--a { flex-basis: auto; } /* Default */
.fb--0 { flex-basis: 0; }
/* Align self */
.as--a { align-self: auto; } /* Default */
.as--fs { align-self: flex-start; }
.as--c { align-self: center; }
.as--fe { align-self: flex-end; }
.as--s { align-self: stretch; }
.as--b { align-self: baseline }