forked from arve0/NBLeser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflexbox.less
38 lines (37 loc) · 882 Bytes
/
flexbox.less
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
/* Mixins */
.flexbox() {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
.flexbox-center() {
-webkit-box-pack: center;
-moz-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-moz-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
}
.flex(@values) {
-webkit-box-flex: @values;
-moz-box-flex: @values;
-ms-box-flex: @values;
box-flex: @values;
-webkit-flex: @values;
-ms-flex: @values;
flex: @values;
}
.flex-direction-column() {
-webkit-box-orient:vertical;
-moz-box-orient:vertical;
-ms-box-orient:vertical;
-webkit-flex-direction:column;
-ms-flex-direction:column;
flex-direction:column;
}