-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheasy-flex.less
114 lines (108 loc) · 1.87 KB
/
easy-flex.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
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
@flex-content-gap: 6px;
efr,.efr{
display: flex;
flex-direction: row;
// width: inherit;
// height: inherit;
flex-wrap: wrap;
}
efc,.efc{
display: flex;
flex-direction: column;
// width: inherit;
// height: inherit;
flex-wrap: nowrap;
}
efr1,.efr1{
flex: 1;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
efc1,.efc1{
flex:1;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
}
ef0,.ef0{flex: 0;}
ef1,.ef1{flex: 1;}
ef2,.ef2{flex: 2;}
ef3,.ef3{flex: 3;}
ef4,.ef4{flex: 4;}
ef5,.ef5{flex: 5;}
ef6,.ef6{flex: 6;}
.ef-gap{
>*{
margin: @flex-content-gap;
}
}
.column-flex-100h{
display: flex;
flex-direction: column;
height: 100%;
}
/*π*/
.ef-pi{
.column-flex-100h();
>:nth-child(2){
flex:1;
display: flex;
height: 100%;
margin: 0;
overflow: auto;
>:not(:last-child){
margin-right: @flex-content-gap;
}
>*{
height: 100%;
margin: 0;
}
}
>:not(:first-child){
margin: @flex-content-gap 0 0 0 ;
}
}
/*T*/
.ef-t{
.column-flex-100h();
>:nth-child(2){
flex:1;
overflow: auto;
margin: @flex-content-gap 0 0 0;
>*{
margin: 0;
}
}
}
/*E*/
.ef-e{
display: flex;
height: 100%;
>:nth-child(1){
flex:1;
min-width: 25%;
margin-right: @flex-content-gap;
}
>:nth-child(2){
flex: 3;
min-width: 25%;
.column-flex-100h();
>:not(:last-child){
margin-bottom: @flex-content-gap;
}
}
}
/*center center*/
.ef-center{
display: flex;
justify-content: center;
align-items: center;
align-content: center;
height: 100%;
}
/*H*/
.h-flex-content{
display: flex;
justify-content: space-between;
}