Show More
@@ -14,12 +14,17 b'' | |||
|
14 | 14 | display: box; |
|
15 | 15 | box-orient: horizontal; |
|
16 | 16 | box-align: stretch; |
|
17 | ||
|
18 | display: flex; | |
|
19 | flex-direction: row; | |
|
20 | align-items: stretch; | |
|
17 | 21 | } |
|
18 | 22 | |
|
19 | 23 | .hbox > * { |
|
20 | 24 | -webkit-box-flex: 0; |
|
21 | 25 | -moz-box-flex: 0; |
|
22 | 26 | box-flex: 0; |
|
27 | flex: 0; | |
|
23 | 28 | } |
|
24 | 29 | |
|
25 | 30 | .vbox { |
@@ -36,30 +41,38 b'' | |||
|
36 | 41 | box-align: stretch; |
|
37 | 42 | /* width must be 100% to force FF to behave like webkit */ |
|
38 | 43 | width: 100%; |
|
44 | ||
|
45 | display: flex; | |
|
46 | flex-direction: column; | |
|
47 | align-items: stretch; | |
|
39 | 48 | } |
|
40 | 49 | |
|
41 | 50 | .vbox > * { |
|
42 | 51 | -webkit-box-flex: 0; |
|
43 | 52 | -moz-box-flex: 0; |
|
44 | 53 | box-flex: 0; |
|
54 | flex: 0; | |
|
45 | 55 | } |
|
46 | 56 | |
|
47 | 57 | .reverse { |
|
48 | 58 | -webkit-box-direction: reverse; |
|
49 | 59 | -moz-box-direction: reverse; |
|
50 | 60 | box-direction: reverse; |
|
61 | flex-direction: column-reverse; | |
|
51 | 62 | } |
|
52 | 63 | |
|
53 | 64 | .box-flex0 { |
|
54 | 65 | -webkit-box-flex: 0; |
|
55 | 66 | -moz-box-flex: 0; |
|
56 | 67 | box-flex: 0; |
|
68 | flex: 0; | |
|
57 | 69 | } |
|
58 | 70 | |
|
59 | 71 | .box-flex1 { |
|
60 | 72 | -webkit-box-flex: 1; |
|
61 | 73 | -moz-box-flex: 1; |
|
62 | 74 | box-flex: 1; |
|
75 | flex: 1; | |
|
63 | 76 | } |
|
64 | 77 | |
|
65 | 78 | .box-flex { |
@@ -70,15 +83,24 b'' | |||
|
70 | 83 | -webkit-box-flex: 2; |
|
71 | 84 | -moz-box-flex: 2; |
|
72 | 85 | box-flex: 2; |
|
86 | flex: 2; | |
|
73 | 87 | } |
|
74 | 88 | |
|
75 | 89 | .box-group1 { |
|
90 | /* | |
|
91 | Deprecated | |
|
92 | Grouping isn't supported in http://dev.w3.org/csswg/css-flexbox/ | |
|
93 | */ | |
|
76 | 94 | -webkit-box-flex-group: 1; |
|
77 | 95 | -moz-box-flex-group: 1; |
|
78 | 96 | box-flex-group: 1; |
|
79 | 97 | } |
|
80 | 98 | |
|
81 | 99 | .box-group2 { |
|
100 | /* | |
|
101 | Deprecated | |
|
102 | Grouping isn't supported in http://dev.w3.org/csswg/css-flexbox/ | |
|
103 | */ | |
|
82 | 104 | -webkit-box-flex-group: 2; |
|
83 | 105 | -moz-box-flex-group: 2; |
|
84 | 106 | box-flex-group: 2; |
@@ -88,34 +110,40 b'' | |||
|
88 | 110 | -webkit-box-pack: start; |
|
89 | 111 | -moz-box-pack: start; |
|
90 | 112 | box-pack: start; |
|
113 | justify-content: flex-start; | |
|
91 | 114 | } |
|
92 | 115 | |
|
93 | 116 | .end { |
|
94 | 117 | -webkit-box-pack: end; |
|
95 | 118 | -moz-box-pack: end; |
|
96 | 119 | box-pack: end; |
|
120 | justify-content: flex-end; | |
|
97 | 121 | } |
|
98 | 122 | |
|
99 | 123 | .center { |
|
100 | 124 | -webkit-box-pack: center; |
|
101 | 125 | -moz-box-pack: center; |
|
102 | 126 | box-pack: center; |
|
127 | justify-content: center; | |
|
103 | 128 | } |
|
104 | 129 | |
|
105 | 130 | .align-start { |
|
106 | 131 | -webkit-box-align: start; |
|
107 | 132 | -moz-box-align: start; |
|
108 | 133 | box-align: start; |
|
134 | align-content: flex-start; | |
|
109 | 135 | } |
|
110 | 136 | |
|
111 | 137 | .align-end { |
|
112 | 138 | -webkit-box-align: end; |
|
113 | 139 | -moz-box-align: end; |
|
114 | 140 | box-align: end; |
|
141 | align-content: flex-end; | |
|
115 | 142 | } |
|
116 | 143 | |
|
117 | 144 | .align-center { |
|
118 | 145 | -webkit-box-align: center; |
|
119 | 146 | -moz-box-align: center; |
|
120 | 147 | box-align: center; |
|
148 | align-content: center; | |
|
121 | 149 | } |
General Comments 0
You need to be logged in to leave comments.
Login now