uikit 3.18.4-dev.4b6b928ae → 3.18.4-dev.5aef5369c

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 (61) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/build/scss.js +3 -0
  3. package/dist/css/uikit-core-rtl.css +303 -32
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +303 -32
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +303 -32
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +303 -32
  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 +13 -6
  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 +25 -15
  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 -7
  47. package/src/js/components/tooltip.js +1 -1
  48. package/src/js/core/height-match.js +12 -0
  49. package/src/js/core/img.js +1 -4
  50. package/src/less/components/flex.less +110 -2
  51. package/src/less/components/heading.less +2 -2
  52. package/src/less/components/slider.less +1 -1
  53. package/src/less/components/width.less +146 -30
  54. package/src/less/theme/text.less +1 -1
  55. package/src/scss/components/flex.scss +110 -2
  56. package/src/scss/components/heading.scss +2 -2
  57. package/src/scss/components/slider.scss +1 -1
  58. package/src/scss/components/width.scss +146 -30
  59. package/src/scss/variables-theme.scss +1 -1
  60. package/tests/slider.html +12 -1
  61. package/tests/slideshow.html +2 -2
@@ -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 !default; // 38px 0.73
17
- $heading-medium-font-size: $heading-medium-font-size-m * 0.825 !default; // 40px 0.714
16
+ $heading-small-font-size: $heading-small-font-size-m * 0.8 !default; // 38px 0.73
17
+ $heading-medium-font-size: $heading-medium-font-size-m * 0.825 !default; // 40px 0.714
18
18
  $heading-large-font-size: $heading-large-font-size-m * 0.85 !default; // 50px 0.78
19
19
  $heading-xlarge-font-size: $heading-large-font-size-m !default; // 4rem / 64px
20
20
  $heading-2xlarge-font-size: $heading-xlarge-font-size-m !default; // 6rem / 96px
@@ -102,7 +102,7 @@
102
102
 
103
103
  .uk-slider-items > * {
104
104
  /* 1 */
105
- flex: none;
105
+ flex: none !important;
106
106
  box-sizing: border-box;
107
107
  max-width: 100%;
108
108
  /* 2 */
@@ -26,10 +26,10 @@
26
26
  }
27
27
 
28
28
  .uk-child-width-1-2 > * { width: 50%; }
29
- .uk-child-width-1-3 > * { width: unquote('calc(100% * 1 / 3.001)'); }
29
+ .uk-child-width-1-3 > * { width: unquote('calc(100% / 3)'); }
30
30
  .uk-child-width-1-4 > * { width: 25%; }
31
31
  .uk-child-width-1-5 > * { width: 20%; }
32
- .uk-child-width-1-6 > * { width: unquote('calc(100% * 1 / 6.001)'); }
32
+ .uk-child-width-1-6 > * { width: unquote('calc(100% / 6)'); }
33
33
 
34
34
  .uk-child-width-auto > * { width: auto; }
35
35
 
@@ -51,10 +51,10 @@
51
51
 
52
52
  .uk-child-width-1-1\@s > * { width: 100%; }
53
53
  .uk-child-width-1-2\@s > * { width: 50%; }
54
- .uk-child-width-1-3\@s > * { width: unquote('calc(100% * 1 / 3.001)'); }
54
+ .uk-child-width-1-3\@s > * { width: unquote('calc(100% / 3)'); }
55
55
  .uk-child-width-1-4\@s > * { width: 25%; }
56
56
  .uk-child-width-1-5\@s > * { width: 20%; }
57
- .uk-child-width-1-6\@s > * { width: unquote('calc(100% * 1 / 6.001)'); }
57
+ .uk-child-width-1-6\@s > * { width: unquote('calc(100% / 6)'); }
58
58
 
59
59
  .uk-child-width-auto\@s > * { width: auto; }
60
60
  .uk-child-width-expand\@s > :not([class*="uk-width"]) {
@@ -62,6 +62,15 @@
62
62
  min-width: 1px;
63
63
  }
64
64
 
65
+ /* Reset expand */
66
+ .uk-child-width-1-1\@s > :not([class*="uk-width"]),
67
+ .uk-child-width-1-2\@s > :not([class*="uk-width"]),
68
+ .uk-child-width-1-3\@s > :not([class*="uk-width"]),
69
+ .uk-child-width-1-4\@s > :not([class*="uk-width"]),
70
+ .uk-child-width-1-5\@s > :not([class*="uk-width"]),
71
+ .uk-child-width-1-6\@s > :not([class*="uk-width"]),
72
+ .uk-child-width-auto\@s > :not([class*="uk-width"]) { flex: initial; }
73
+
65
74
  }
66
75
 
67
76
  /* Tablet landscape and bigger */
@@ -69,10 +78,10 @@
69
78
 
70
79
  .uk-child-width-1-1\@m > * { width: 100%; }
71
80
  .uk-child-width-1-2\@m > * { width: 50%; }
72
- .uk-child-width-1-3\@m > * { width: unquote('calc(100% * 1 / 3.001)'); }
81
+ .uk-child-width-1-3\@m > * { width: unquote('calc(100% / 3)'); }
73
82
  .uk-child-width-1-4\@m > * { width: 25%; }
74
83
  .uk-child-width-1-5\@m > * { width: 20%; }
75
- .uk-child-width-1-6\@m > * { width: unquote('calc(100% * 1 / 6.001)'); }
84
+ .uk-child-width-1-6\@m > * { width: unquote('calc(100% / 6)'); }
76
85
 
77
86
  .uk-child-width-auto\@m > * { width: auto; }
78
87
  .uk-child-width-expand\@m > :not([class*="uk-width"]) {
@@ -80,6 +89,15 @@
80
89
  min-width: 1px;
81
90
  }
82
91
 
92
+ /* Reset expand */
93
+ .uk-child-width-1-1\@m > :not([class*="uk-width"]),
94
+ .uk-child-width-1-2\@m > :not([class*="uk-width"]),
95
+ .uk-child-width-1-3\@m > :not([class*="uk-width"]),
96
+ .uk-child-width-1-4\@m > :not([class*="uk-width"]),
97
+ .uk-child-width-1-5\@m > :not([class*="uk-width"]),
98
+ .uk-child-width-1-6\@m > :not([class*="uk-width"]),
99
+ .uk-child-width-auto\@m > :not([class*="uk-width"]) { flex: initial; }
100
+
83
101
  }
84
102
 
85
103
  /* Desktop and bigger */
@@ -87,10 +105,10 @@
87
105
 
88
106
  .uk-child-width-1-1\@l > * { width: 100%; }
89
107
  .uk-child-width-1-2\@l > * { width: 50%; }
90
- .uk-child-width-1-3\@l > * { width: unquote('calc(100% * 1 / 3.001)'); }
108
+ .uk-child-width-1-3\@l > * { width: unquote('calc(100% / 3)'); }
91
109
  .uk-child-width-1-4\@l > * { width: 25%; }
92
110
  .uk-child-width-1-5\@l > * { width: 20%; }
93
- .uk-child-width-1-6\@l > * { width: unquote('calc(100% * 1 / 6.001)'); }
111
+ .uk-child-width-1-6\@l > * { width: unquote('calc(100% / 6)'); }
94
112
 
95
113
  .uk-child-width-auto\@l > * { width: auto; }
96
114
  .uk-child-width-expand\@l > :not([class*="uk-width"]) {
@@ -98,6 +116,15 @@
98
116
  min-width: 1px;
99
117
  }
100
118
 
119
+ /* Reset expand */
120
+ .uk-child-width-1-1\@l > :not([class*="uk-width"]),
121
+ .uk-child-width-1-2\@l > :not([class*="uk-width"]),
122
+ .uk-child-width-1-3\@l > :not([class*="uk-width"]),
123
+ .uk-child-width-1-4\@l > :not([class*="uk-width"]),
124
+ .uk-child-width-1-5\@l > :not([class*="uk-width"]),
125
+ .uk-child-width-1-6\@l > :not([class*="uk-width"]),
126
+ .uk-child-width-auto\@l > :not([class*="uk-width"]) { flex: initial; }
127
+
101
128
  }
102
129
 
103
130
  /* Large screen and bigger */
@@ -105,10 +132,10 @@
105
132
 
106
133
  .uk-child-width-1-1\@xl > * { width: 100%; }
107
134
  .uk-child-width-1-2\@xl > * { width: 50%; }
108
- .uk-child-width-1-3\@xl > * { width: unquote('calc(100% * 1 / 3.001)'); }
135
+ .uk-child-width-1-3\@xl > * { width: unquote('calc(100% / 3)'); }
109
136
  .uk-child-width-1-4\@xl > * { width: 25%; }
110
137
  .uk-child-width-1-5\@xl > * { width: 20%; }
111
- .uk-child-width-1-6\@xl > * { width: unquote('calc(100% * 1 / 6.001)'); }
138
+ .uk-child-width-1-6\@xl > * { width: unquote('calc(100% / 6)'); }
112
139
 
113
140
  .uk-child-width-auto\@xl > * { width: auto; }
114
141
  .uk-child-width-expand\@xl > :not([class*="uk-width"]) {
@@ -116,6 +143,15 @@
116
143
  min-width: 1px;
117
144
  }
118
145
 
146
+ /* Reset expand */
147
+ .uk-child-width-1-1\@xl > :not([class*="uk-width"]),
148
+ .uk-child-width-1-2\@xl > :not([class*="uk-width"]),
149
+ .uk-child-width-1-3\@xl > :not([class*="uk-width"]),
150
+ .uk-child-width-1-4\@xl > :not([class*="uk-width"]),
151
+ .uk-child-width-1-5\@xl > :not([class*="uk-width"]),
152
+ .uk-child-width-1-6\@xl > :not([class*="uk-width"]),
153
+ .uk-child-width-auto\@xl > :not([class*="uk-width"]) { flex: initial; }
154
+
119
155
  }
120
156
 
121
157
 
@@ -137,8 +173,8 @@
137
173
  .uk-width-1-2 { width: 50%; }
138
174
 
139
175
  /* Thirds */
140
- .uk-width-1-3 { width: unquote('calc(100% * 1 / 3.001)'); }
141
- .uk-width-2-3 { width: unquote('calc(100% * 2 / 3.001)'); }
176
+ .uk-width-1-3 { width: unquote('calc(100% / 3)'); }
177
+ .uk-width-2-3 { width: unquote('calc(200% / 3)'); }
142
178
 
143
179
  /* Quarters */
144
180
  .uk-width-1-4 { width: 25%; }
@@ -151,8 +187,8 @@
151
187
  .uk-width-4-5 { width: 80%; }
152
188
 
153
189
  /* Sixths */
154
- .uk-width-1-6 { width: unquote('calc(100% * 1 / 6.001)'); }
155
- .uk-width-5-6 { width: unquote('calc(100% * 5 / 6.001)'); }
190
+ .uk-width-1-6 { width: unquote('calc(100% / 6)'); }
191
+ .uk-width-5-6 { width: unquote('calc(500% / 6)'); }
156
192
 
157
193
  /* Pixel */
158
194
  .uk-width-small { width: $width-small-width; }
@@ -183,8 +219,8 @@
183
219
  .uk-width-1-2\@s { width: 50%; }
184
220
 
185
221
  /* Thirds */
186
- .uk-width-1-3\@s { width: unquote('calc(100% * 1 / 3.001)'); }
187
- .uk-width-2-3\@s { width: unquote('calc(100% * 2 / 3.001)'); }
222
+ .uk-width-1-3\@s { width: unquote('calc(100% / 3)'); }
223
+ .uk-width-2-3\@s { width: unquote('calc(200% / 3)'); }
188
224
 
189
225
  /* Quarters */
190
226
  .uk-width-1-4\@s { width: 25%; }
@@ -197,8 +233,8 @@
197
233
  .uk-width-4-5\@s { width: 80%; }
198
234
 
199
235
  /* Sixths */
200
- .uk-width-1-6\@s { width: unquote('calc(100% * 1 / 6.001)'); }
201
- .uk-width-5-6\@s { width: unquote('calc(100% * 5 / 6.001)'); }
236
+ .uk-width-1-6\@s { width: unquote('calc(100% / 6)'); }
237
+ .uk-width-5-6\@s { width: unquote('calc(500% / 6)'); }
202
238
 
203
239
  /* Pixel */
204
240
  .uk-width-small\@s { width: $width-small-width; }
@@ -219,6 +255,26 @@
219
255
  min-width: 1px;
220
256
  }
221
257
 
258
+ /* Reset expand */
259
+ .uk-width-1-1\@s,
260
+ .uk-width-1-2\@s,
261
+ .uk-width-1-3\@s,
262
+ .uk-width-2-3\@s,
263
+ .uk-width-1-4\@s,
264
+ .uk-width-3-4\@s,
265
+ .uk-width-1-5\@s,
266
+ .uk-width-2-5\@s,
267
+ .uk-width-3-5\@s,
268
+ .uk-width-4-5\@s,
269
+ .uk-width-1-6\@s,
270
+ .uk-width-5-6\@s,
271
+ .uk-width-small\@s,
272
+ .uk-width-medium\@s,
273
+ .uk-width-large\@s,
274
+ .uk-width-xlarge\@s,
275
+ .uk-width-2xlarge\@s,
276
+ .uk-width-auto\@s { flex: initial; }
277
+
222
278
  }
223
279
 
224
280
  /* Tablet landscape and bigger */
@@ -231,8 +287,8 @@
231
287
  .uk-width-1-2\@m { width: 50%; }
232
288
 
233
289
  /* Thirds */
234
- .uk-width-1-3\@m { width: unquote('calc(100% * 1 / 3.001)'); }
235
- .uk-width-2-3\@m { width: unquote('calc(100% * 2 / 3.001)'); }
290
+ .uk-width-1-3\@m { width: unquote('calc(100% / 3)'); }
291
+ .uk-width-2-3\@m { width: unquote('calc(200% / 3)'); }
236
292
 
237
293
  /* Quarters */
238
294
  .uk-width-1-4\@m { width: 25%; }
@@ -245,8 +301,8 @@
245
301
  .uk-width-4-5\@m { width: 80%; }
246
302
 
247
303
  /* Sixths */
248
- .uk-width-1-6\@m { width: unquote('calc(100% * 1 / 6.001)'); }
249
- .uk-width-5-6\@m { width: unquote('calc(100% * 5 / 6.001)'); }
304
+ .uk-width-1-6\@m { width: unquote('calc(100% / 6)'); }
305
+ .uk-width-5-6\@m { width: unquote('calc(500% / 6)'); }
250
306
 
251
307
  /* Pixel */
252
308
  .uk-width-small\@m { width: $width-small-width; }
@@ -267,6 +323,26 @@
267
323
  min-width: 1px;
268
324
  }
269
325
 
326
+ /* Reset expand */
327
+ .uk-width-1-1\@m,
328
+ .uk-width-1-2\@m,
329
+ .uk-width-1-3\@m,
330
+ .uk-width-2-3\@m,
331
+ .uk-width-1-4\@m,
332
+ .uk-width-3-4\@m,
333
+ .uk-width-1-5\@m,
334
+ .uk-width-2-5\@m,
335
+ .uk-width-3-5\@m,
336
+ .uk-width-4-5\@m,
337
+ .uk-width-1-6\@m,
338
+ .uk-width-5-6\@m,
339
+ .uk-width-small\@m,
340
+ .uk-width-medium\@m,
341
+ .uk-width-large\@m,
342
+ .uk-width-xlarge\@m,
343
+ .uk-width-2xlarge\@m,
344
+ .uk-width-auto\@m { flex: initial; }
345
+
270
346
  }
271
347
 
272
348
  /* Desktop and bigger */
@@ -279,8 +355,8 @@
279
355
  .uk-width-1-2\@l { width: 50%; }
280
356
 
281
357
  /* Thirds */
282
- .uk-width-1-3\@l { width: unquote('calc(100% * 1 / 3.001)'); }
283
- .uk-width-2-3\@l { width: unquote('calc(100% * 2 / 3.001)'); }
358
+ .uk-width-1-3\@l { width: unquote('calc(100% / 3)'); }
359
+ .uk-width-2-3\@l { width: unquote('calc(200% / 3)'); }
284
360
 
285
361
  /* Quarters */
286
362
  .uk-width-1-4\@l { width: 25%; }
@@ -293,8 +369,8 @@
293
369
  .uk-width-4-5\@l { width: 80%; }
294
370
 
295
371
  /* Sixths */
296
- .uk-width-1-6\@l { width: unquote('calc(100% * 1 / 6.001)'); }
297
- .uk-width-5-6\@l { width: unquote('calc(100% * 5 / 6.001)'); }
372
+ .uk-width-1-6\@l { width: unquote('calc(100% / 6)'); }
373
+ .uk-width-5-6\@l { width: unquote('calc(500% / 6)'); }
298
374
 
299
375
  /* Pixel */
300
376
  .uk-width-small\@l { width: $width-small-width; }
@@ -315,6 +391,26 @@
315
391
  min-width: 1px;
316
392
  }
317
393
 
394
+ /* Reset expand */
395
+ .uk-width-1-1\@l,
396
+ .uk-width-1-2\@l,
397
+ .uk-width-1-3\@l,
398
+ .uk-width-2-3\@l,
399
+ .uk-width-1-4\@l,
400
+ .uk-width-3-4\@l,
401
+ .uk-width-1-5\@l,
402
+ .uk-width-2-5\@l,
403
+ .uk-width-3-5\@l,
404
+ .uk-width-4-5\@l,
405
+ .uk-width-1-6\@l,
406
+ .uk-width-5-6\@l,
407
+ .uk-width-small\@l,
408
+ .uk-width-medium\@l,
409
+ .uk-width-large\@l,
410
+ .uk-width-xlarge\@l,
411
+ .uk-width-2xlarge\@l,
412
+ .uk-width-auto\@l { flex: initial; }
413
+
318
414
  }
319
415
 
320
416
  /* Large screen and bigger */
@@ -327,8 +423,8 @@
327
423
  .uk-width-1-2\@xl { width: 50%; }
328
424
 
329
425
  /* Thirds */
330
- .uk-width-1-3\@xl { width: unquote('calc(100% * 1 / 3.001)'); }
331
- .uk-width-2-3\@xl { width: unquote('calc(100% * 2 / 3.001)'); }
426
+ .uk-width-1-3\@xl { width: unquote('calc(100% / 3)'); }
427
+ .uk-width-2-3\@xl { width: unquote('calc(200% / 3)'); }
332
428
 
333
429
  /* Quarters */
334
430
  .uk-width-1-4\@xl { width: 25%; }
@@ -341,8 +437,8 @@
341
437
  .uk-width-4-5\@xl { width: 80%; }
342
438
 
343
439
  /* Sixths */
344
- .uk-width-1-6\@xl { width: unquote('calc(100% * 1 / 6.001)'); }
345
- .uk-width-5-6\@xl { width: unquote('calc(100% * 5 / 6.001)'); }
440
+ .uk-width-1-6\@xl { width: unquote('calc(100% / 6)'); }
441
+ .uk-width-5-6\@xl { width: unquote('calc(500% / 6)'); }
346
442
 
347
443
  /* Pixel */
348
444
  .uk-width-small\@xl { width: $width-small-width; }
@@ -363,6 +459,26 @@
363
459
  min-width: 1px;
364
460
  }
365
461
 
462
+ /* Reset expand */
463
+ .uk-width-1-1\@xl,
464
+ .uk-width-1-2\@xl,
465
+ .uk-width-1-3\@xl,
466
+ .uk-width-2-3\@xl,
467
+ .uk-width-1-4\@xl,
468
+ .uk-width-3-4\@xl,
469
+ .uk-width-1-5\@xl,
470
+ .uk-width-2-5\@xl,
471
+ .uk-width-3-5\@xl,
472
+ .uk-width-4-5\@xl,
473
+ .uk-width-1-6\@xl,
474
+ .uk-width-5-6\@xl,
475
+ .uk-width-small\@xl,
476
+ .uk-width-medium\@xl,
477
+ .uk-width-large\@xl,
478
+ .uk-width-xlarge\@xl,
479
+ .uk-width-2xlarge\@xl,
480
+ .uk-width-auto\@xl { flex: initial; }
481
+
366
482
  }
367
483
 
368
484
  /* Intrinsic Widths
@@ -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).</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>