uikit 3.18.4-dev.379fa2bf1 → 3.18.4-dev.4d31fe360

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 (54) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/scss.js +3 -0
  3. package/dist/css/uikit-core-rtl.css +158 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +158 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +158 -1
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +158 -1
  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 +15 -8
  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 +2 -2
  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 +17 -10
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/components/internal/slider-transitioner.js +2 -2
  45. package/src/js/components/slider.js +15 -10
  46. package/src/js/components/tooltip.js +1 -1
  47. package/src/less/components/flex.less +110 -2
  48. package/src/less/components/width.less +34 -8
  49. package/src/less/theme/text.less +1 -1
  50. package/src/scss/components/flex.scss +110 -2
  51. package/src/scss/components/width.scss +34 -8
  52. package/src/scss/variables-theme.scss +1 -1
  53. package/tests/slider.html +12 -1
  54. 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.4d31fe360",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -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,15 @@ 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
+ let index = currentIndex;
244
+ if (this.active === 'center' && !this.center) {
245
+ index += Math.ceil(actives.length / 2) - 1;
246
+ }
247
+ actives = [this.slides[this.getValidIndex(index)]];
248
+ }
239
249
 
240
250
  const activeClasses = [
241
251
  this.clsActive,
@@ -296,15 +306,10 @@ export default {
296
306
 
297
307
  getIndexAt(percent) {
298
308
  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);
309
+ const scrollDist = this.center
310
+ ? getWidth(this.list) -
311
+ (dimensions(this.slides[0]).width / 2 + dimensions(last(this.slides)).width / 2)
312
+ : getWidth(this.list, this.maxIndex);
308
313
 
309
314
  let dist = percent * scrollDist;
310
315
  let slidePercent = 0;
@@ -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
  // ========================================================================
@@ -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"]) {
@@ -61,7 +62,11 @@
61
62
  .uk-child-width-1-5\@s > * { width: 20%; }
62
63
  .uk-child-width-1-6\@s > * { width: ~'calc(100% * 1 / 6.001)'; }
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;
@@ -79,7 +84,10 @@
79
84
  .uk-child-width-1-5\@m > * { width: 20%; }
80
85
  .uk-child-width-1-6\@m > * { width: ~'calc(100% * 1 / 6.001)'; }
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;
@@ -97,7 +105,10 @@
97
105
  .uk-child-width-1-5\@l > * { width: 20%; }
98
106
  .uk-child-width-1-6\@l > * { width: ~'calc(100% * 1 / 6.001)'; }
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;
@@ -115,7 +126,10 @@
115
126
  .uk-child-width-1-5\@xl > * { width: 20%; }
116
127
  .uk-child-width-1-6\@xl > * { width: ~'calc(100% * 1 / 6.001)'; }
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;
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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
  // ========================================================================
@@ -38,6 +38,7 @@
38
38
  * flex items won't shrink below their minimum intrinsic content size.
39
39
  * Using `1px` instead of `0`, so items still wrap into the next line,
40
40
  * if they have zero width and padding and the predecessor is 100% wide.
41
+ * 2. Reset flex if auto classes are combined with expand classes
41
42
  */
42
43
 
43
44
  .uk-child-width-expand > :not([class*="uk-width"]) {
@@ -56,7 +57,11 @@
56
57
  .uk-child-width-1-5\@s > * { width: 20%; }
57
58
  .uk-child-width-1-6\@s > * { width: unquote('calc(100% * 1 / 6.001)'); }
58
59
 
59
- .uk-child-width-auto\@s > * { width: auto; }
60
+ .uk-child-width-auto\@s > * {
61
+ width: auto;
62
+ /* 2 */
63
+ flex: initial;
64
+ }
60
65
  .uk-child-width-expand\@s > :not([class*="uk-width"]) {
61
66
  flex: 1;
62
67
  min-width: 1px;
@@ -74,7 +79,10 @@
74
79
  .uk-child-width-1-5\@m > * { width: 20%; }
75
80
  .uk-child-width-1-6\@m > * { width: unquote('calc(100% * 1 / 6.001)'); }
76
81
 
77
- .uk-child-width-auto\@m > * { width: auto; }
82
+ .uk-child-width-auto\@m > * {
83
+ width: auto;
84
+ flex: initial;
85
+ }
78
86
  .uk-child-width-expand\@m > :not([class*="uk-width"]) {
79
87
  flex: 1;
80
88
  min-width: 1px;
@@ -92,7 +100,10 @@
92
100
  .uk-child-width-1-5\@l > * { width: 20%; }
93
101
  .uk-child-width-1-6\@l > * { width: unquote('calc(100% * 1 / 6.001)'); }
94
102
 
95
- .uk-child-width-auto\@l > * { width: auto; }
103
+ .uk-child-width-auto\@l > * {
104
+ width: auto;
105
+ flex: initial;
106
+ }
96
107
  .uk-child-width-expand\@l > :not([class*="uk-width"]) {
97
108
  flex: 1;
98
109
  min-width: 1px;
@@ -110,7 +121,10 @@
110
121
  .uk-child-width-1-5\@xl > * { width: 20%; }
111
122
  .uk-child-width-1-6\@xl > * { width: unquote('calc(100% * 1 / 6.001)'); }
112
123
 
113
- .uk-child-width-auto\@xl > * { width: auto; }
124
+ .uk-child-width-auto\@xl > * {
125
+ width: auto;
126
+ flex: initial;
127
+ }
114
128
  .uk-child-width-expand\@xl > :not([class*="uk-width"]) {
115
129
  flex: 1;
116
130
  min-width: 1px;
@@ -211,7 +225,10 @@
211
225
  }
212
226
 
213
227
  /* Auto */
214
- .uk-width-auto\@s { width: auto; }
228
+ .uk-width-auto\@s {
229
+ width: auto;
230
+ flex: initial;
231
+ }
215
232
 
216
233
  /* Expand */
217
234
  .uk-width-expand\@s {
@@ -259,7 +276,10 @@
259
276
  }
260
277
 
261
278
  /* Auto */
262
- .uk-width-auto\@m { width: auto; }
279
+ .uk-width-auto\@m {
280
+ width: auto;
281
+ flex: initial;
282
+ }
263
283
 
264
284
  /* Expand */
265
285
  .uk-width-expand\@m {
@@ -307,7 +327,10 @@
307
327
  }
308
328
 
309
329
  /* Auto */
310
- .uk-width-auto\@l { width: auto; }
330
+ .uk-width-auto\@l {
331
+ width: auto;
332
+ flex: initial;
333
+ }
311
334
 
312
335
  /* Expand */
313
336
  .uk-width-expand\@l {
@@ -355,7 +378,10 @@
355
378
  }
356
379
 
357
380
  /* Auto */
358
- .uk-width-auto\@xl { width: auto; }
381
+ .uk-width-auto\@xl {
382
+ width: auto;
383
+ flex: initial;
384
+ }
359
385
 
360
386
  /* Expand */
361
387
  .uk-width-expand\@xl {
@@ -1288,7 +1288,7 @@ $table-striped-border-width: $global-border-width !default;
1288
1288
  $table-striped-border: $global-border !default;
1289
1289
  $text-meta-link-color: $text-meta-color !default;
1290
1290
  $text-meta-link-hover-color: $global-color !default;
1291
- $internal-text-background-color-gradient: linear-gradient(90deg, $text-background-color 0%, spin($text-background-color, 40%) 100%) !default;
1291
+ $internal-text-background-color-gradient: linear-gradient(90deg, $text-background-color 0%, adjust-hue($text-background-color, 40) 100%) !default;
1292
1292
  $thumbnav-item-gradient: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.4)) !default;
1293
1293
  $thumbnav-item-hover-opacity: 0 !default;
1294
1294
  $thumbnav-item-active-opacity: 0 !default;
package/tests/slider.html CHANGED
@@ -41,6 +41,11 @@
41
41
  <option value="0">Single</option>
42
42
  <option value="1">Sets</option>
43
43
  </select>
44
+ <select id="js-active-switcher" class="uk-select uk-form-width-small" aria-label="Active switcher">
45
+ <option value="">All</option>
46
+ <option value="first">First</option>
47
+ <option value="center">Center</option>
48
+ </select>
44
49
  </div>
45
50
 
46
51
  <h2>Content Widths</h2>
@@ -577,6 +582,12 @@
577
582
  <td>0</td>
578
583
  <td>Slider item to show. 0 based index.</td>
579
584
  </tr>
585
+ <tr>
586
+ <td><code>active</code></td>
587
+ <td>String</td>
588
+ <td>all</td>
589
+ <td>Slider item/items to apply the transition active class to (all|first|center).</td>
590
+ </tr>
580
591
  <tr>
581
592
  <td><code>pause-on-hover</code></td>
582
593
  <td>Boolean</td>
@@ -646,7 +657,7 @@
646
657
  <script>
647
658
 
648
659
  const {attr, $$, on} = UIkit.util;
649
- for (const attribute of ['finite', 'center', 'sets']) {
660
+ for (const attribute of ['finite', 'center', 'sets', 'active']) {
650
661
  on(`#js-${attribute}-switcher`, 'change', e =>
651
662
  attr($$('[uk-slider]'), attribute, e.target.value)
652
663
  );
@@ -105,14 +105,14 @@
105
105
  </div>
106
106
  </li>
107
107
  <li>
108
- <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&amp;controls=0&amp;showinfo=0&amp;rel=0&amp;loop=1&amp;modestbranding=1&amp;wmode=transparent&amp;playsinline=1" width="1920" height="1080" allowfullscreen uk-cover></iframe>
108
+ <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&amp;controls=0&amp;showinfo=0&amp;rel=0&amp;loop=1&amp;modestbranding=1&amp;wmode=transparent&amp;playsinline=1" width="1920" height="1080" allowfullscreen loading="lazy" uk-cover></iframe>
109
109
  <div class="uk-position-center uk-position-small uk-text-center">
110
110
  <h2 uk-slideshow-parallax="x: 100,-100">YouTube</h2>
111
111
  <p uk-slideshow-parallax="x: 200,-200">Lorem ipsum dolor sit amet.</p>
112
112
  </div>
113
113
  </li>
114
114
  <li>
115
- <iframe src="https://player.vimeo.com/video/1084537?title=0&amp;background=1&amp;keyboard=0" width="500" height="281" allowfullscreen uk-cover></iframe>
115
+ <iframe src="https://player.vimeo.com/video/1084537?title=0&amp;background=1&amp;keyboard=0" width="500" height="281" allowfullscreen loading="lazy" uk-cover></iframe>
116
116
  <div class="uk-position-center uk-position-small uk-text-center">
117
117
  <h2 uk-slideshow-parallax="x: 100,-100">Vimeo</h2>
118
118
  <p uk-slideshow-parallax="x: 200,-200">Lorem ipsum dolor sit amet.</p>