Skip to content

Commit a38269e

Browse files
committed
Layouts: cross-browser compatibility for flex.
1 parent a784221 commit a38269e

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

less/variables.less

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,21 @@
3737

3838
// mixins
3939
.border-radius(@r){
40-
border-radius: @r;
41-
-moz-border-radius: @r;
42-
-webkit-border-radius: @r;
40+
border-radius: @r;
41+
-moz-border-radius: @r;
42+
-webkit-border-radius: @r;
4343
}
4444
.flex-holder(){
45-
display: flex;
46-
flex-wrap: wrap;
45+
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
46+
display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
47+
display: -ms-flexbox; /* TWEENER - IE 10 */
48+
display: -webkit-flex; /* NEW - Chrome */
49+
display: flex;
50+
flex-wrap: wrap;
4751
}
4852
.flex-item(){
49-
box-sizing: border-box;
50-
flex-grow: 1;
53+
box-sizing: border-box;
54+
flex-grow: 1;
5155
}
5256

5357
.panel-top-bar(){

0 commit comments

Comments
 (0)