File: flexbox.less

package info (click to toggle)
ipython 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 28,032 kB
  • ctags: 15,433
  • sloc: python: 73,792; makefile: 428; sh: 297
file content (221 lines) | stat: -rw-r--r-- 4,057 bytes parent folder | download
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221

/* Flexible box model classes */
/* Taken from Alex Russell http://infrequently.org/2009/08/css-3-progress/ */

/* This file is a compatability layer.  It allows the usage of flexible box 
model layouts accross multiple browsers, including older browsers.  The newest,
universal implementation of the flexible box model is used when available (see
`Modern browsers` comments below).  Browsers that are known to implement this 
new spec completely include:

    Firefox 28.0+
    Chrome 29.0+
    Internet Explorer 11+ 
    Opera 17.0+

Browsers not listed, including Safari, are supported via the styling under the
`Old browsers` comments below.
*/


.hbox {
    /* Old browsers */
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: stretch;

    display: -moz-box;
    -moz-box-orient: horizontal;
    -moz-box-align: stretch;

    display: box;
    box-orient: horizontal;
    box-align: stretch;

    /* Modern browsers */
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.hbox > * {
    /* Old browsers */
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    box-flex: 0;

    /* Modern browsers */
    flex: none;
}

.vbox {
    /* Old browsers */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-align: stretch;

    display: -moz-box;
    -moz-box-orient: vertical;
    -moz-box-align: stretch;

    display: box;
    box-orient: vertical;
    box-align: stretch;

    /* Modern browsers */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.vbox > * {
    /* Old browsers */
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    box-flex: 0;
    
    /* Modern browsers */
    flex: none;
}

.hbox.reverse,
.vbox.reverse,
.reverse {
    /* Old browsers */
    -webkit-box-direction: reverse;
    -moz-box-direction: reverse;
    box-direction: reverse;
    
    /* Modern browsers */
    flex-direction: row-reverse;
}

.hbox.box-flex0,
.vbox.box-flex0,
.box-flex0 {
    /* Old browsers */
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    box-flex: 0;
    
    /* Modern browsers */
    flex: none;
    width: auto;
}

.hbox.box-flex1,
.vbox.box-flex1,
.box-flex1 {
    /* Old browsers */
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;

    /* Modern browsers */
    flex: 1;
}

.hbox.box-flex,
.vbox.box-flex,
.box-flex {
    /* Old browsers */
    .box-flex1();
}

.hbox.box-flex2,
.vbox.box-flex2,
.box-flex2 {
    /* Old browsers */
    -webkit-box-flex: 2;
    -moz-box-flex: 2;
    box-flex: 2;

    /* Modern browsers */
    flex: 2;
}

.box-group1 {
    /*  Deprecated */
    -webkit-box-flex-group: 1;
    -moz-box-flex-group: 1;
    box-flex-group: 1;
}

.box-group2 {
    /* Deprecated */
    -webkit-box-flex-group: 2;
    -moz-box-flex-group: 2;
    box-flex-group: 2;
}

.hbox.start, 
.vbox.start,
.start {
    /* Old browsers */
    -webkit-box-pack: start;
    -moz-box-pack: start;
    box-pack: start;
    
    /* Modern browsers */
    justify-content: flex-start;
}

.hbox.end, 
.vbox.end,
.end {
    /* Old browsers */
    -webkit-box-pack: end;
    -moz-box-pack: end;
    box-pack: end;
    
    /* Modern browsers */
    justify-content: flex-end;
}

.hbox.center, 
.vbox.center,
.center {
    /* Old browsers */
    -webkit-box-pack: center;
    -moz-box-pack: center;
    box-pack: center;
    
    /* Modern browsers */
    justify-content: center;
}

.hbox.align-start, 
.vbox.align-start,
.align-start {
    /* Old browsers */
    -webkit-box-align: start;
    -moz-box-align: start;
    box-align: start;
    
    /* Modern browsers */
    align-items: flex-start;
}

.hbox.align-end, 
.vbox.align-end,
.align-end {
    /* Old browsers */
    -webkit-box-align: end;
    -moz-box-align: end;
    box-align: end;
    
    /* Modern browsers */
    align-items: flex-end;
}

.hbox.align-center, 
.vbox.align-center,
.align-center {
    /* Old browsers */
    -webkit-box-align: center;
    -moz-box-align: center;
    box-align: center;
    
    /* Modern browsers */
    align-items: center;
}