uikit 3.18.4-dev.379fa2bf1 → 3.18.4-dev.3b6dec3a6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/build/scss.js +3 -0
  3. package/dist/css/uikit-core-rtl.css +188 -31
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +188 -31
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +188 -31
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +188 -31
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +1 -1
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +1 -1
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +1 -1
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +1 -1
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +12 -9
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -1
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +1 -1
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +2 -2
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +3 -3
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +15 -12
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/images/components/navbar-toggle-icon.svg +2 -2
  45. package/src/js/components/internal/slider-transitioner.js +2 -2
  46. package/src/js/components/slider.js +12 -11
  47. package/src/js/components/tooltip.js +1 -1
  48. package/src/less/components/flex.less +110 -2
  49. package/src/less/components/heading.less +2 -2
  50. package/src/less/components/width.less +64 -38
  51. package/src/less/theme/text.less +1 -1
  52. package/src/scss/components/flex.scss +110 -2
  53. package/src/scss/components/heading.scss +2 -2
  54. package/src/scss/components/width.scss +64 -38
  55. package/src/scss/variables-theme.scss +1 -1
  56. package/tests/slider.html +12 -1
  57. package/tests/slideshow.html +2 -2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit",
3
3
  "title": "UIkit",
4
4
  "description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
5
- "version": "3.18.4-dev.379fa2bf1",
5
+ "version": "3.18.4-dev.3b6dec3a6",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -1,14 +1,14 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2
2
  <style>
3
3
 
4
- .uk-navbar-toggle-animate svg > [class*='line-'] {
4
+ .uk-navbar-toggle-icon svg > [class*='line-'] {
5
5
  transition: 0.2s ease-in-out;
6
6
  transition-property: transform, opacity;
7
7
  transform-origin: center;
8
8
  opacity: 1;
9
9
  }
10
10
 
11
- .uk-navbar-toggle-animate svg > .line-3 { opacity: 0; }
11
+ .uk-navbar-toggle-icon svg > .line-3 { opacity: 0; }
12
12
  .uk-navbar-toggle-animate[aria-expanded="true"] svg > .line-3 { opacity: 1; }
13
13
 
14
14
  .uk-navbar-toggle-animate[aria-expanded="true"] svg > .line-2 { transform: rotate(45deg); }
@@ -147,8 +147,8 @@ export function getMax(list) {
147
147
  return Math.max(0, getWidth(list) - dimensions(list).width);
148
148
  }
149
149
 
150
- export function getWidth(list) {
151
- return sumBy(children(list), (el) => dimensions(el).width);
150
+ export function getWidth(list, index) {
151
+ return sumBy(children(list).slice(0, index), (el) => dimensions(el).width);
152
152
  }
153
153
 
154
154
  function centerEl(el, list) {
@@ -33,6 +33,7 @@ export default {
33
33
  props: {
34
34
  center: Boolean,
35
35
  sets: Boolean,
36
+ active: String,
36
37
  },
37
38
 
38
39
  data: {
@@ -42,6 +43,7 @@ export default {
42
43
  selList: '.uk-slider-items',
43
44
  selNav: '.uk-slider-nav',
44
45
  clsContainer: 'uk-slider-container',
46
+ active: 'all',
45
47
  Transitioner,
46
48
  },
47
49
 
@@ -235,7 +237,11 @@ export default {
235
237
  },
236
238
 
237
239
  updateActiveClasses(currentIndex = this.index) {
238
- const actives = this._getTransitioner(currentIndex).getActives();
240
+ let actives = this._getTransitioner(currentIndex).getActives();
241
+
242
+ if (this.active !== 'all') {
243
+ actives = [this.slides[this.getValidIndex(currentIndex)]];
244
+ }
239
245
 
240
246
  const activeClasses = [
241
247
  this.clsActive,
@@ -296,15 +302,10 @@ export default {
296
302
 
297
303
  getIndexAt(percent) {
298
304
  let index = -1;
299
- const firstSlideWidth = dimensions(this.slides[0]).width;
300
- const lastSlideWidth = dimensions(last(this.slides)).width;
301
- const scrollDist =
302
- getWidth(this.list) -
303
- (this.center
304
- ? firstSlideWidth / 2 + lastSlideWidth / 2
305
- : this.finite
306
- ? dimensions(this.list).width
307
- : lastSlideWidth);
305
+ const scrollDist = this.center
306
+ ? getWidth(this.list) -
307
+ (dimensions(this.slides[0]).width / 2 + dimensions(last(this.slides)).width / 2)
308
+ : getWidth(this.list, this.maxIndex);
308
309
 
309
310
  let dist = percent * scrollDist;
310
311
  let slidePercent = 0;
@@ -365,7 +366,7 @@ function isFinite(list, center) {
365
366
  }
366
367
 
367
368
  if (
368
- diff >
369
+ Math.trunc(diff) >
369
370
  sumBy(
370
371
  slides.filter((slide) => !slidesInView.has(slide)),
371
372
  (slide) => dimensions(slide).width,
@@ -136,7 +136,7 @@ export default {
136
136
  // Clicking a button does not give it focus on all browsers and platforms
137
137
  // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#clicking_and_focus
138
138
  [`focus ${pointerEnter} ${pointerDown}`](e) {
139
- if (!isTouch(e)) {
139
+ if (!isTouch(e) || e.type === pointerDown) {
140
140
  this.show();
141
141
  }
142
142
  },
@@ -29,7 +29,6 @@
29
29
  .uk-flex-between { justify-content: space-between; }
30
30
  .uk-flex-around { justify-content: space-around; }
31
31
 
32
-
33
32
  /* Phone landscape and bigger */
34
33
  @media (min-width: @breakpoint-small) {
35
34
 
@@ -85,6 +84,46 @@
85
84
  .uk-flex-middle { align-items: center; }
86
85
  .uk-flex-bottom { align-items: flex-end; }
87
86
 
87
+ /* Phone landscape and bigger */
88
+ @media (min-width: @breakpoint-small) {
89
+
90
+ .uk-flex-stretch\@s { align-items: stretch; }
91
+ .uk-flex-top\@s { align-items: flex-start; }
92
+ .uk-flex-middle\@s { align-items: center; }
93
+ .uk-flex-bottom\@s { align-items: flex-end; }
94
+
95
+ }
96
+
97
+ /* Tablet landscape and bigger */
98
+ @media (min-width: @breakpoint-medium) {
99
+
100
+ .uk-flex-stretch\@m { align-items: stretch; }
101
+ .uk-flex-top\@m { align-items: flex-start; }
102
+ .uk-flex-middle\@m { align-items: center; }
103
+ .uk-flex-bottom\@m { align-items: flex-end; }
104
+
105
+ }
106
+
107
+ /* Desktop and bigger */
108
+ @media (min-width: @breakpoint-large) {
109
+
110
+ .uk-flex-stretch\@l { align-items: stretch; }
111
+ .uk-flex-top\@l { align-items: flex-start; }
112
+ .uk-flex-middle\@l { align-items: center; }
113
+ .uk-flex-bottom\@l { align-items: flex-end; }
114
+
115
+ }
116
+
117
+ /* Large screen and bigger */
118
+ @media (min-width: @breakpoint-xlarge) {
119
+
120
+ .uk-flex-stretch\@xl { align-items: stretch; }
121
+ .uk-flex-top\@xl { align-items: flex-start; }
122
+ .uk-flex-middle\@xl { align-items: center; }
123
+ .uk-flex-bottom\@xl { align-items: flex-end; }
124
+
125
+ }
126
+
88
127
 
89
128
  /* Direction
90
129
  ========================================================================== */
@@ -95,6 +134,38 @@
95
134
  .uk-flex-column { flex-direction: column; }
96
135
  .uk-flex-column-reverse { flex-direction: column-reverse; }
97
136
 
137
+ /* Phone landscape and bigger */
138
+ @media (min-width: @breakpoint-small) {
139
+
140
+ .uk-flex-row\@s { flex-direction: row; }
141
+ .uk-flex-column\@s { flex-direction: column; }
142
+
143
+ }
144
+
145
+ /* Tablet landscape and bigger */
146
+ @media (min-width: @breakpoint-medium) {
147
+
148
+ .uk-flex-row\@m { flex-direction: row; }
149
+ .uk-flex-column\@m { flex-direction: column; }
150
+
151
+ }
152
+
153
+ /* Desktop and bigger */
154
+ @media (min-width: @breakpoint-large) {
155
+
156
+ .uk-flex-row\@l { flex-direction: row; }
157
+ .uk-flex-column\@l { flex-direction: column; }
158
+
159
+ }
160
+
161
+ /* Large screen and bigger */
162
+ @media (min-width: @breakpoint-xlarge) {
163
+
164
+ .uk-flex-row\@xl { flex-direction: row; }
165
+ .uk-flex-column\@xl { flex-direction: column; }
166
+
167
+ }
168
+
98
169
 
99
170
  /* Wrap
100
171
  ========================================================================== */
@@ -128,7 +199,6 @@
128
199
  .uk-flex-first { order: -1;}
129
200
  .uk-flex-last { order: 99;}
130
201
 
131
-
132
202
  /* Phone landscape and bigger */
133
203
  @media (min-width: @breakpoint-small) {
134
204
 
@@ -170,6 +240,8 @@
170
240
  * Content dimensions, but shrinks
171
241
  */
172
242
 
243
+ .uk-flex-initial { flex: initial; }
244
+
173
245
  /*
174
246
  * No Flex: 0 0 auto
175
247
  * Content dimensions
@@ -191,6 +263,42 @@
191
263
 
192
264
  .uk-flex-1 { flex: 1; }
193
265
 
266
+ /* Phone landscape and bigger */
267
+ @media (min-width: @breakpoint-small) {
268
+
269
+ .uk-flex-initial\@s { flex: initial; }
270
+ .uk-flex-none\@s { flex: none; }
271
+ .uk-flex-1\@s { flex: 1; }
272
+
273
+ }
274
+
275
+ /* Tablet landscape and bigger */
276
+ @media (min-width: @breakpoint-medium) {
277
+
278
+ .uk-flex-initial\@m { flex: initial; }
279
+ .uk-flex-none\@m { flex: none; }
280
+ .uk-flex-1\@m { flex: 1; }
281
+
282
+ }
283
+
284
+ /* Desktop and bigger */
285
+ @media (min-width: @breakpoint-large) {
286
+
287
+ .uk-flex-initial\@l { flex: initial; }
288
+ .uk-flex-none\@l { flex: none; }
289
+ .uk-flex-1\@l { flex: 1; }
290
+
291
+ }
292
+
293
+ /* Large screen and bigger */
294
+ @media (min-width: @breakpoint-xlarge) {
295
+
296
+ .uk-flex-initial\@xl { flex: initial; }
297
+ .uk-flex-none\@xl { flex: none; }
298
+ .uk-flex-1\@xl { flex: 1; }
299
+
300
+ }
301
+
194
302
 
195
303
  // Hooks
196
304
  // ========================================================================
@@ -13,8 +13,8 @@
13
13
  // Variables
14
14
  // ========================================================================
15
15
 
16
- @heading-small-font-size: @heading-small-font-size-m * 0.8; // 38px 0.73
17
- @heading-medium-font-size: @heading-medium-font-size-m * 0.825; // 40px 0.714
16
+ @heading-small-font-size: @heading-small-font-size-m * 0.8; // 38px 0.73
17
+ @heading-medium-font-size: @heading-medium-font-size-m * 0.825; // 40px 0.714
18
18
  @heading-large-font-size: @heading-large-font-size-m * 0.85; // 50px 0.78
19
19
  @heading-xlarge-font-size: @heading-large-font-size-m; // 4rem / 64px
20
20
  @heading-2xlarge-font-size: @heading-xlarge-font-size-m; // 6rem / 96px
@@ -31,10 +31,10 @@
31
31
  }
32
32
 
33
33
  .uk-child-width-1-2 > * { width: 50%; }
34
- .uk-child-width-1-3 > * { width: ~'calc(100% * 1 / 3.001)'; }
34
+ .uk-child-width-1-3 > * { width: ~'calc(100% / 3)'; }
35
35
  .uk-child-width-1-4 > * { width: 25%; }
36
36
  .uk-child-width-1-5 > * { width: 20%; }
37
- .uk-child-width-1-6 > * { width: ~'calc(100% * 1 / 6.001)'; }
37
+ .uk-child-width-1-6 > * { width: ~'calc(100% / 6)'; }
38
38
 
39
39
  .uk-child-width-auto > * { width: auto; }
40
40
 
@@ -43,6 +43,7 @@
43
43
  * flex items won't shrink below their minimum intrinsic content size.
44
44
  * Using `1px` instead of `0`, so items still wrap into the next line,
45
45
  * if they have zero width and padding and the predecessor is 100% wide.
46
+ * 2. Reset flex if auto classes are combined with expand classes
46
47
  */
47
48
 
48
49
  .uk-child-width-expand > :not([class*="uk-width"]) {
@@ -56,12 +57,16 @@
56
57
 
57
58
  .uk-child-width-1-1\@s > * { width: 100%; }
58
59
  .uk-child-width-1-2\@s > * { width: 50%; }
59
- .uk-child-width-1-3\@s > * { width: ~'calc(100% * 1 / 3.001)'; }
60
+ .uk-child-width-1-3\@s > * { width: ~'calc(100% / 3)'; }
60
61
  .uk-child-width-1-4\@s > * { width: 25%; }
61
62
  .uk-child-width-1-5\@s > * { width: 20%; }
62
- .uk-child-width-1-6\@s > * { width: ~'calc(100% * 1 / 6.001)'; }
63
+ .uk-child-width-1-6\@s > * { width: ~'calc(100% / 6)'; }
63
64
 
64
- .uk-child-width-auto\@s > * { width: auto; }
65
+ .uk-child-width-auto\@s > * {
66
+ width: auto;
67
+ /* 2 */
68
+ flex: initial;
69
+ }
65
70
  .uk-child-width-expand\@s > :not([class*="uk-width"]) {
66
71
  flex: 1;
67
72
  min-width: 1px;
@@ -74,12 +79,15 @@
74
79
 
75
80
  .uk-child-width-1-1\@m > * { width: 100%; }
76
81
  .uk-child-width-1-2\@m > * { width: 50%; }
77
- .uk-child-width-1-3\@m > * { width: ~'calc(100% * 1 / 3.001)'; }
82
+ .uk-child-width-1-3\@m > * { width: ~'calc(100% / 3)'; }
78
83
  .uk-child-width-1-4\@m > * { width: 25%; }
79
84
  .uk-child-width-1-5\@m > * { width: 20%; }
80
- .uk-child-width-1-6\@m > * { width: ~'calc(100% * 1 / 6.001)'; }
85
+ .uk-child-width-1-6\@m > * { width: ~'calc(100% / 6)'; }
81
86
 
82
- .uk-child-width-auto\@m > * { width: auto; }
87
+ .uk-child-width-auto\@m > * {
88
+ width: auto;
89
+ flex: initial;
90
+ }
83
91
  .uk-child-width-expand\@m > :not([class*="uk-width"]) {
84
92
  flex: 1;
85
93
  min-width: 1px;
@@ -92,12 +100,15 @@
92
100
 
93
101
  .uk-child-width-1-1\@l > * { width: 100%; }
94
102
  .uk-child-width-1-2\@l > * { width: 50%; }
95
- .uk-child-width-1-3\@l > * { width: ~'calc(100% * 1 / 3.001)'; }
103
+ .uk-child-width-1-3\@l > * { width: ~'calc(100% / 3)'; }
96
104
  .uk-child-width-1-4\@l > * { width: 25%; }
97
105
  .uk-child-width-1-5\@l > * { width: 20%; }
98
- .uk-child-width-1-6\@l > * { width: ~'calc(100% * 1 / 6.001)'; }
106
+ .uk-child-width-1-6\@l > * { width: ~'calc(100% / 6)'; }
99
107
 
100
- .uk-child-width-auto\@l > * { width: auto; }
108
+ .uk-child-width-auto\@l > * {
109
+ width: auto;
110
+ flex: initial;
111
+ }
101
112
  .uk-child-width-expand\@l > :not([class*="uk-width"]) {
102
113
  flex: 1;
103
114
  min-width: 1px;
@@ -110,12 +121,15 @@
110
121
 
111
122
  .uk-child-width-1-1\@xl > * { width: 100%; }
112
123
  .uk-child-width-1-2\@xl > * { width: 50%; }
113
- .uk-child-width-1-3\@xl > * { width: ~'calc(100% * 1 / 3.001)'; }
124
+ .uk-child-width-1-3\@xl > * { width: ~'calc(100% / 3)'; }
114
125
  .uk-child-width-1-4\@xl > * { width: 25%; }
115
126
  .uk-child-width-1-5\@xl > * { width: 20%; }
116
- .uk-child-width-1-6\@xl > * { width: ~'calc(100% * 1 / 6.001)'; }
127
+ .uk-child-width-1-6\@xl > * { width: ~'calc(100% / 6)'; }
117
128
 
118
- .uk-child-width-auto\@xl > * { width: auto; }
129
+ .uk-child-width-auto\@xl > * {
130
+ width: auto;
131
+ flex: initial;
132
+ }
119
133
  .uk-child-width-expand\@xl > :not([class*="uk-width"]) {
120
134
  flex: 1;
121
135
  min-width: 1px;
@@ -142,8 +156,8 @@
142
156
  .uk-width-1-2 { width: 50%; }
143
157
 
144
158
  /* Thirds */
145
- .uk-width-1-3 { width: ~'calc(100% * 1 / 3.001)'; }
146
- .uk-width-2-3 { width: ~'calc(100% * 2 / 3.001)'; }
159
+ .uk-width-1-3 { width: ~'calc(100% / 3)'; }
160
+ .uk-width-2-3 { width: ~'calc(200% / 3)'; }
147
161
 
148
162
  /* Quarters */
149
163
  .uk-width-1-4 { width: 25%; }
@@ -156,8 +170,8 @@
156
170
  .uk-width-4-5 { width: 80%; }
157
171
 
158
172
  /* Sixths */
159
- .uk-width-1-6 { width: ~'calc(100% * 1 / 6.001)'; }
160
- .uk-width-5-6 { width: ~'calc(100% * 5 / 6.001)'; }
173
+ .uk-width-1-6 { width: ~'calc(100% / 6)'; }
174
+ .uk-width-5-6 { width: ~'calc(500% / 6)'; }
161
175
 
162
176
  /* Pixel */
163
177
  .uk-width-small { width: @width-small-width; }
@@ -186,8 +200,8 @@
186
200
  .uk-width-1-2\@s { width: 50%; }
187
201
 
188
202
  /* Thirds */
189
- .uk-width-1-3\@s { width: ~'calc(100% * 1 / 3.001)'; }
190
- .uk-width-2-3\@s { width: ~'calc(100% * 2 / 3.001)'; }
203
+ .uk-width-1-3\@s { width: ~'calc(100% / 3)'; }
204
+ .uk-width-2-3\@s { width: ~'calc(200% / 3)'; }
191
205
 
192
206
  /* Quarters */
193
207
  .uk-width-1-4\@s { width: 25%; }
@@ -200,8 +214,8 @@
200
214
  .uk-width-4-5\@s { width: 80%; }
201
215
 
202
216
  /* Sixths */
203
- .uk-width-1-6\@s { width: ~'calc(100% * 1 / 6.001)'; }
204
- .uk-width-5-6\@s { width: ~'calc(100% * 5 / 6.001)'; }
217
+ .uk-width-1-6\@s { width: ~'calc(100% / 6)'; }
218
+ .uk-width-5-6\@s { width: ~'calc(500% / 6)'; }
205
219
 
206
220
  /* Pixel */
207
221
  .uk-width-small\@s { width: @width-small-width; }
@@ -212,7 +226,10 @@
212
226
  .uk-width-xxlarge\@s when (@deprecated = true) { width: @width-2xlarge-width; }
213
227
 
214
228
  /* Auto */
215
- .uk-width-auto\@s { width: auto; }
229
+ .uk-width-auto\@s {
230
+ width: auto;
231
+ flex: initial;
232
+ }
216
233
 
217
234
  /* Expand */
218
235
  .uk-width-expand\@s {
@@ -232,8 +249,8 @@
232
249
  .uk-width-1-2\@m { width: 50%; }
233
250
 
234
251
  /* Thirds */
235
- .uk-width-1-3\@m { width: ~'calc(100% * 1 / 3.001)'; }
236
- .uk-width-2-3\@m { width: ~'calc(100% * 2 / 3.001)'; }
252
+ .uk-width-1-3\@m { width: ~'calc(100% / 3)'; }
253
+ .uk-width-2-3\@m { width: ~'calc(200% / 3)'; }
237
254
 
238
255
  /* Quarters */
239
256
  .uk-width-1-4\@m { width: 25%; }
@@ -246,8 +263,8 @@
246
263
  .uk-width-4-5\@m { width: 80%; }
247
264
 
248
265
  /* Sixths */
249
- .uk-width-1-6\@m { width: ~'calc(100% * 1 / 6.001)'; }
250
- .uk-width-5-6\@m { width: ~'calc(100% * 5 / 6.001)'; }
266
+ .uk-width-1-6\@m { width: ~'calc(100% / 6)'; }
267
+ .uk-width-5-6\@m { width: ~'calc(500% / 6)'; }
251
268
 
252
269
  /* Pixel */
253
270
  .uk-width-small\@m { width: @width-small-width; }
@@ -258,7 +275,10 @@
258
275
  .uk-width-xxlarge\@m when (@deprecated = true) { width: @width-2xlarge-width; }
259
276
 
260
277
  /* Auto */
261
- .uk-width-auto\@m { width: auto; }
278
+ .uk-width-auto\@m {
279
+ width: auto;
280
+ flex: initial;
281
+ }
262
282
 
263
283
  /* Expand */
264
284
  .uk-width-expand\@m {
@@ -278,8 +298,8 @@
278
298
  .uk-width-1-2\@l { width: 50%; }
279
299
 
280
300
  /* Thirds */
281
- .uk-width-1-3\@l { width: ~'calc(100% * 1 / 3.001)'; }
282
- .uk-width-2-3\@l { width: ~'calc(100% * 2 / 3.001)'; }
301
+ .uk-width-1-3\@l { width: ~'calc(100% / 3)'; }
302
+ .uk-width-2-3\@l { width: ~'calc(200% / 3)'; }
283
303
 
284
304
  /* Quarters */
285
305
  .uk-width-1-4\@l { width: 25%; }
@@ -292,8 +312,8 @@
292
312
  .uk-width-4-5\@l { width: 80%; }
293
313
 
294
314
  /* Sixths */
295
- .uk-width-1-6\@l { width: ~'calc(100% * 1 / 6.001)'; }
296
- .uk-width-5-6\@l { width: ~'calc(100% * 5 / 6.001)'; }
315
+ .uk-width-1-6\@l { width: ~'calc(100% / 6)'; }
316
+ .uk-width-5-6\@l { width: ~'calc(500% / 6)'; }
297
317
 
298
318
  /* Pixel */
299
319
  .uk-width-small\@l { width: @width-small-width; }
@@ -304,7 +324,10 @@
304
324
  .uk-width-xxlarge\@l when (@deprecated = true) { width: @width-2xlarge-width; }
305
325
 
306
326
  /* Auto */
307
- .uk-width-auto\@l { width: auto; }
327
+ .uk-width-auto\@l {
328
+ width: auto;
329
+ flex: initial;
330
+ }
308
331
 
309
332
  /* Expand */
310
333
  .uk-width-expand\@l {
@@ -324,8 +347,8 @@
324
347
  .uk-width-1-2\@xl { width: 50%; }
325
348
 
326
349
  /* Thirds */
327
- .uk-width-1-3\@xl { width: ~'calc(100% * 1 / 3.001)'; }
328
- .uk-width-2-3\@xl { width: ~'calc(100% * 2 / 3.001)'; }
350
+ .uk-width-1-3\@xl { width: ~'calc(100% / 3)'; }
351
+ .uk-width-2-3\@xl { width: ~'calc(200% / 3)'; }
329
352
 
330
353
  /* Quarters */
331
354
  .uk-width-1-4\@xl { width: 25%; }
@@ -338,8 +361,8 @@
338
361
  .uk-width-4-5\@xl { width: 80%; }
339
362
 
340
363
  /* Sixths */
341
- .uk-width-1-6\@xl { width: ~'calc(100% * 1 / 6.001)'; }
342
- .uk-width-5-6\@xl { width: ~'calc(100% * 5 / 6.001)'; }
364
+ .uk-width-1-6\@xl { width: ~'calc(100% / 6)'; }
365
+ .uk-width-5-6\@xl { width: ~'calc(500% / 6)'; }
343
366
 
344
367
  /* Pixel */
345
368
  .uk-width-small\@xl { width: @width-small-width; }
@@ -350,7 +373,10 @@
350
373
  .uk-width-xxlarge\@xl when (@deprecated = true) { width: @width-2xlarge-width; }
351
374
 
352
375
  /* Auto */
353
- .uk-width-auto\@xl { width: auto; }
376
+ .uk-width-auto\@xl {
377
+ width: auto;
378
+ flex: initial;
379
+ }
354
380
 
355
381
  /* Expand */
356
382
  .uk-width-expand\@xl {
@@ -14,7 +14,7 @@
14
14
  @text-meta-link-color: @text-meta-color;
15
15
  @text-meta-link-hover-color: @global-color;
16
16
 
17
- @internal-text-background-color-gradient: linear-gradient(90deg, @text-background-color 0%, spin(@text-background-color, 40%) 100%);
17
+ @internal-text-background-color-gradient: linear-gradient(90deg, @text-background-color 0%, spin(@text-background-color, 40) 100%);
18
18
 
19
19
 
20
20
  // Style modifiers
@@ -29,7 +29,6 @@
29
29
  .uk-flex-between { justify-content: space-between; }
30
30
  .uk-flex-around { justify-content: space-around; }
31
31
 
32
-
33
32
  /* Phone landscape and bigger */
34
33
  @media (min-width: $breakpoint-small) {
35
34
 
@@ -85,6 +84,46 @@
85
84
  .uk-flex-middle { align-items: center; }
86
85
  .uk-flex-bottom { align-items: flex-end; }
87
86
 
87
+ /* Phone landscape and bigger */
88
+ @media (min-width: $breakpoint-small) {
89
+
90
+ .uk-flex-stretch\@s { align-items: stretch; }
91
+ .uk-flex-top\@s { align-items: flex-start; }
92
+ .uk-flex-middle\@s { align-items: center; }
93
+ .uk-flex-bottom\@s { align-items: flex-end; }
94
+
95
+ }
96
+
97
+ /* Tablet landscape and bigger */
98
+ @media (min-width: $breakpoint-medium) {
99
+
100
+ .uk-flex-stretch\@m { align-items: stretch; }
101
+ .uk-flex-top\@m { align-items: flex-start; }
102
+ .uk-flex-middle\@m { align-items: center; }
103
+ .uk-flex-bottom\@m { align-items: flex-end; }
104
+
105
+ }
106
+
107
+ /* Desktop and bigger */
108
+ @media (min-width: $breakpoint-large) {
109
+
110
+ .uk-flex-stretch\@l { align-items: stretch; }
111
+ .uk-flex-top\@l { align-items: flex-start; }
112
+ .uk-flex-middle\@l { align-items: center; }
113
+ .uk-flex-bottom\@l { align-items: flex-end; }
114
+
115
+ }
116
+
117
+ /* Large screen and bigger */
118
+ @media (min-width: $breakpoint-xlarge) {
119
+
120
+ .uk-flex-stretch\@xl { align-items: stretch; }
121
+ .uk-flex-top\@xl { align-items: flex-start; }
122
+ .uk-flex-middle\@xl { align-items: center; }
123
+ .uk-flex-bottom\@xl { align-items: flex-end; }
124
+
125
+ }
126
+
88
127
 
89
128
  /* Direction
90
129
  ========================================================================== */
@@ -95,6 +134,38 @@
95
134
  .uk-flex-column { flex-direction: column; }
96
135
  .uk-flex-column-reverse { flex-direction: column-reverse; }
97
136
 
137
+ /* Phone landscape and bigger */
138
+ @media (min-width: $breakpoint-small) {
139
+
140
+ .uk-flex-row\@s { flex-direction: row; }
141
+ .uk-flex-column\@s { flex-direction: column; }
142
+
143
+ }
144
+
145
+ /* Tablet landscape and bigger */
146
+ @media (min-width: $breakpoint-medium) {
147
+
148
+ .uk-flex-row\@m { flex-direction: row; }
149
+ .uk-flex-column\@m { flex-direction: column; }
150
+
151
+ }
152
+
153
+ /* Desktop and bigger */
154
+ @media (min-width: $breakpoint-large) {
155
+
156
+ .uk-flex-row\@l { flex-direction: row; }
157
+ .uk-flex-column\@l { flex-direction: column; }
158
+
159
+ }
160
+
161
+ /* Large screen and bigger */
162
+ @media (min-width: $breakpoint-xlarge) {
163
+
164
+ .uk-flex-row\@xl { flex-direction: row; }
165
+ .uk-flex-column\@xl { flex-direction: column; }
166
+
167
+ }
168
+
98
169
 
99
170
  /* Wrap
100
171
  ========================================================================== */
@@ -128,7 +199,6 @@
128
199
  .uk-flex-first { order: -1;}
129
200
  .uk-flex-last { order: 99;}
130
201
 
131
-
132
202
  /* Phone landscape and bigger */
133
203
  @media (min-width: $breakpoint-small) {
134
204
 
@@ -170,6 +240,8 @@
170
240
  * Content dimensions, but shrinks
171
241
  */
172
242
 
243
+ .uk-flex-initial { flex: initial; }
244
+
173
245
  /*
174
246
  * No Flex: 0 0 auto
175
247
  * Content dimensions
@@ -191,6 +263,42 @@
191
263
 
192
264
  .uk-flex-1 { flex: 1; }
193
265
 
266
+ /* Phone landscape and bigger */
267
+ @media (min-width: $breakpoint-small) {
268
+
269
+ .uk-flex-initial\@s { flex: initial; }
270
+ .uk-flex-none\@s { flex: none; }
271
+ .uk-flex-1\@s { flex: 1; }
272
+
273
+ }
274
+
275
+ /* Tablet landscape and bigger */
276
+ @media (min-width: $breakpoint-medium) {
277
+
278
+ .uk-flex-initial\@m { flex: initial; }
279
+ .uk-flex-none\@m { flex: none; }
280
+ .uk-flex-1\@m { flex: 1; }
281
+
282
+ }
283
+
284
+ /* Desktop and bigger */
285
+ @media (min-width: $breakpoint-large) {
286
+
287
+ .uk-flex-initial\@l { flex: initial; }
288
+ .uk-flex-none\@l { flex: none; }
289
+ .uk-flex-1\@l { flex: 1; }
290
+
291
+ }
292
+
293
+ /* Large screen and bigger */
294
+ @media (min-width: $breakpoint-xlarge) {
295
+
296
+ .uk-flex-initial\@xl { flex: initial; }
297
+ .uk-flex-none\@xl { flex: none; }
298
+ .uk-flex-1\@xl { flex: 1; }
299
+
300
+ }
301
+
194
302
 
195
303
  // Hooks
196
304
  // ========================================================================