blob: 1301fc43357f0e7bd3629cc57aaae4e7960df502 (
plain) (
blame)
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
|
// Name: Flex
// Description: Utilities for layouts based on flexbox
//
// Component: `uk-flex-*`
//
// ========================================================================
/* ========================================================================
Component: Flex
========================================================================== */
.uk-flex { display: flex; }
.uk-flex-inline { display: inline-flex; }
/*
* Remove pseudo elements created by micro clearfix as precaution
*/
.uk-flex::before,
.uk-flex::after,
.uk-flex-inline::before,
.uk-flex-inline::after { display: none; }
/* Alignment
========================================================================== */
/*
* Align items along the main axis of the current line of the flex container
* Row: Horizontal
*/
// Default
.uk-flex-left { justify-content: flex-start; }
.uk-flex-center { justify-content: center; }
.uk-flex-right { justify-content: flex-end; }
.uk-flex-between { justify-content: space-between; }
.uk-flex-around { justify-content: space-around; }
/* Phone landscape and bigger */
@media (min-width: $breakpoint-small) {
.uk-flex-left\@s { justify-content: flex-start; }
.uk-flex-center\@s { justify-content: center; }
.uk-flex-right\@s { justify-content: flex-end; }
.uk-flex-between\@s { justify-content: space-between; }
.uk-flex-around\@s { justify-content: space-around; }
}
/* Tablet landscape and bigger */
@media (min-width: $breakpoint-medium) {
.uk-flex-left\@m { justify-content: flex-start; }
.uk-flex-center\@m { justify-content: center; }
.uk-flex-right\@m { justify-content: flex-end; }
.uk-flex-between\@m { justify-content: space-between; }
.uk-flex-around\@m { justify-content: space-around; }
}
/* Desktop and bigger */
@media (min-width: $breakpoint-large) {
.uk-flex-left\@l { justify-content: flex-start; }
.uk-flex-center\@l { justify-content: center; }
.uk-flex-right\@l { justify-content: flex-end; }
.uk-flex-between\@l { justify-content: space-between; }
.uk-flex-around\@l { justify-content: space-around; }
}
/* Large screen and bigger */
@media (min-width: $breakpoint-xlarge) {
.uk-flex-left\@xl { justify-content: flex-start; }
.uk-flex-center\@xl { justify-content: center; }
.uk-flex-right\@xl { justify-content: flex-end; }
.uk-flex-between\@xl { justify-content: space-between; }
.uk-flex-around\@xl { justify-content: space-around; }
}
/*
* Align items in the cross axis of the current line of the flex container
* Row: Vertical
*/
// Default
.uk-flex-stretch { align-items: stretch; }
.uk-flex-top { align-items: flex-start; }
.uk-flex-middle { align-items: center; }
.uk-flex-bottom { align-items: flex-end; }
/* Direction
========================================================================== */
// Default
.uk-flex-row { flex-direction: row; }
.uk-flex-row-reverse { flex-direction: row-reverse; }
.uk-flex-column { flex-direction: column; }
.uk-flex-column-reverse { flex-direction: column-reverse; }
/* Wrap
========================================================================== */
// Default
.uk-flex-nowrap { flex-wrap: nowrap; }
.uk-flex-wrap { flex-wrap: wrap; }
.uk-flex-wrap-reverse { flex-wrap: wrap-reverse; }
/*
* Aligns items within the flex container when there is extra space in the cross-axis
* Only works if there is more than one line of flex items
*/
// Default
.uk-flex-wrap-stretch { align-content: stretch; }
.uk-flex-wrap-top { align-content: flex-start; }
.uk-flex-wrap-middle { align-content: center; }
.uk-flex-wrap-bottom { align-content: flex-end; }
.uk-flex-wrap-between { align-content: space-between; }
.uk-flex-wrap-around { align-content: space-around; }
/* Item ordering
========================================================================== */
/*
* Default is 0
*/
.uk-flex-first { order: -1;}
.uk-flex-last { order: 99;}
/* Phone landscape and bigger */
@media (min-width: $breakpoint-small) {
.uk-flex-first\@s { order: -1; }
.uk-flex-last\@s { order: 99; }
}
/* Tablet landscape and bigger */
@media (min-width: $breakpoint-medium) {
.uk-flex-first\@m { order: -1; }
.uk-flex-last\@m { order: 99; }
}
/* Desktop and bigger */
@media (min-width: $breakpoint-large) {
.uk-flex-first\@l { order: -1; }
.uk-flex-last\@l { order: 99; }
}
/* Large screen and bigger */
@media (min-width: $breakpoint-xlarge) {
.uk-flex-first\@xl { order: -1; }
.uk-flex-last\@xl { order: 99; }
}
/* Item dimensions
========================================================================== */
/*
* Initial: 0 1 auto
* Content dimensions, but shrinks
*/
/*
* No Flex: 0 0 auto
* Content dimensions
*/
.uk-flex-none { flex: none; }
/*
* Relative Flex: 1 1 auto
* Space is allocated considering content
*/
.uk-flex-auto { flex: auto; }
/*
* Absolute Flex: 1 1 0%
* Space is allocated solely based on flex
*/
.uk-flex-1 { flex: 1; }
// Hooks
// ========================================================================
@if(mixin-exists(hook-flex-misc)) {@include hook-flex-misc();}
// @mixin hook-flex-misc(){}
|