uikit 3.11.2-dev.72dbb9a19 → 3.11.2-dev.93483bd3e

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 (108) hide show
  1. package/CHANGELOG.md +32 -18
  2. package/dist/css/uikit-core-rtl.css +80 -171
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +80 -171
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +82 -177
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +82 -177
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +108 -72
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +108 -72
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +57 -2
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +108 -72
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +45 -3
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +172 -165
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +345 -241
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/components/internal/slider-preload.js +37 -0
  44. package/src/js/components/slider.js +21 -1
  45. package/src/js/components/slideshow.js +8 -1
  46. package/src/js/core/img.js +129 -114
  47. package/src/js/core/sticky.js +1 -1
  48. package/src/js/core/svg.js +10 -6
  49. package/src/js/core/toggle.js +2 -1
  50. package/src/js/mixin/parallax.js +108 -72
  51. package/src/js/util/dom.js +27 -30
  52. package/src/js/util/lang.js +6 -5
  53. package/src/js/util/player.js +3 -2
  54. package/src/js/util/style.js +4 -4
  55. package/src/less/components/base.less +10 -28
  56. package/src/less/components/form-range.less +52 -97
  57. package/src/less/components/form.less +0 -1
  58. package/src/less/components/lightbox.less +0 -1
  59. package/src/less/components/modal.less +3 -7
  60. package/src/less/components/progress.less +14 -36
  61. package/src/less/components/slider.less +0 -3
  62. package/src/less/components/slideshow.less +0 -3
  63. package/src/less/components/text.less +16 -32
  64. package/src/scss/components/base.scss +10 -28
  65. package/src/scss/components/form-range.scss +52 -97
  66. package/src/scss/components/form.scss +0 -1
  67. package/src/scss/components/lightbox.scss +0 -1
  68. package/src/scss/components/modal.scss +3 -7
  69. package/src/scss/components/progress.scss +14 -36
  70. package/src/scss/components/slider.scss +0 -3
  71. package/src/scss/components/slideshow.scss +0 -3
  72. package/src/scss/components/text.scss +16 -32
  73. package/src/scss/mixins-theme.scss +1 -1
  74. package/src/scss/mixins.scss +1 -1
  75. package/src/scss/variables-theme.scss +3 -3
  76. package/src/scss/variables.scss +3 -3
  77. package/tests/align.html +10 -10
  78. package/tests/animation.html +2 -2
  79. package/tests/article.html +2 -2
  80. package/tests/base.html +3 -3
  81. package/tests/card.html +10 -10
  82. package/tests/column.html +3 -3
  83. package/tests/comment.html +9 -9
  84. package/tests/dotnav.html +3 -3
  85. package/tests/image.html +296 -64
  86. package/tests/images/image-type.avif +0 -0
  87. package/tests/images/image-type.jpeg +0 -0
  88. package/tests/images/image-type.webp +0 -0
  89. package/tests/index.html +8 -8
  90. package/tests/lightbox.html +10 -10
  91. package/tests/marker.html +2 -2
  92. package/tests/modal.html +8 -9
  93. package/tests/navbar.html +2 -2
  94. package/tests/overlay.html +7 -7
  95. package/tests/parallax.html +14 -5
  96. package/tests/position.html +12 -12
  97. package/tests/slidenav.html +12 -12
  98. package/tests/slider.html +20 -20
  99. package/tests/sortable.html +1 -1
  100. package/tests/sticky-parallax.html +47 -62
  101. package/tests/svg.html +6 -6
  102. package/tests/table.html +11 -11
  103. package/tests/thumbnav.html +12 -12
  104. package/tests/transition.html +30 -30
  105. package/tests/utility.html +33 -33
  106. package/tests/video.html +1 -1
  107. package/tests/width.html +1 -1
  108. package/tests/images/animated.gif +0 -0
@@ -1,10 +1,9 @@
1
- /*! UIkit 3.11.2-dev.72dbb9a19 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.11.2-dev.93483bd3e | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
5
5
  /*
6
6
  * 1. Set `font-size` to support `rem` units
7
- * Not using `font` property because a leading hyphen (e.g. -apple-system) causes the font to break in IE11 and Edge
8
7
  * 2. Prevent adjustments of font size after orientation changes in iOS.
9
8
  * 3. Style
10
9
  */
@@ -132,7 +131,7 @@ sub {
132
131
  /* Embedded content
133
132
  ========================================================================== */
134
133
  /*
135
- * Remove the gap between embedded content and the bottom of their containers.
134
+ * Remove the gap between the element and the bottom of its parent container.
136
135
  */
137
136
  audio,
138
137
  canvas,
@@ -143,13 +142,13 @@ video {
143
142
  vertical-align: middle;
144
143
  }
145
144
  /*
146
- * 1. Add responsiveness.
147
- * 2. Auto-scale the height. Only needed if `height` attribute is present.
148
- * 3. Corrects responsive `max-width` behavior if padding and border are used.
149
- * 4. Exclude SVGs for IE11 because they don't preserve their aspect ratio.
145
+ * 1. Constrain the element to its parent width.
146
+ * 2. Preserve the intrinsic aspect ratio and auto-scale the height of an image if the `height` attribute is present.
147
+ * 3. Take border and padding into account.
150
148
  */
151
149
  canvas,
152
150
  img,
151
+ svg,
153
152
  video {
154
153
  /* 1 */
155
154
  max-width: 100%;
@@ -158,30 +157,16 @@ video {
158
157
  /* 3 */
159
158
  box-sizing: border-box;
160
159
  }
161
- /* 4 */
162
- @supports (display: block) {
163
- svg {
164
- max-width: 100%;
165
- height: auto;
166
- box-sizing: border-box;
167
- }
168
- }
169
- /*
170
- * Hide the overflow in IE.
171
- */
172
- svg:not(:root) {
173
- overflow: hidden;
174
- }
175
160
  /*
176
- * 1. Fix lazy loading images if parent element is set to `display: inline` and has `overflow: hidden`.
177
- * 2. Hide `alt` text for lazy loading images.
178
- * Note: Selector for background while loading img[data-src*='.jpg'][src*='data:image'] { background: grey; }
161
+ * Deprecated: only needed for `img` elements with `uk-img`
162
+ * 1. Hide `alt` text for lazy load images.
163
+ * 2. Fix lazy loading images if parent element is set to `display: inline` and has `overflow: hidden`.
179
164
  */
180
165
  img:not([src]) {
181
166
  /* 1 */
182
- min-width: 1px;
183
- /* 2 */
184
167
  visibility: hidden;
168
+ /* 2 */
169
+ min-width: 1px;
185
170
  }
186
171
  /*
187
172
  * Iframe
@@ -1232,28 +1217,29 @@ button.uk-icon:not(:disabled) {
1232
1217
  Component: Form Range
1233
1218
  ========================================================================== */
1234
1219
  /*
1235
- * 1. Normalize and defaults
1236
- * 2. Prevent content overflow if a fixed width is used
1237
- * 3. Take the full width
1238
- * 4. Remove default style
1239
- * 5. Remove white background in Chrome
1240
- * 6. Remove padding in IE11
1220
+ * 1. Remove default style.
1221
+ * 2. Define consistent box sizing.
1222
+ * 3. Remove `margin` in all browsers.
1223
+ * 4. Align to the center of the line box.
1224
+ * 5. Prevent content overflow if a fixed width is used.
1225
+ * 6. Take the full width.
1226
+ * 7. Remove white background in Chrome.
1241
1227
  */
1242
1228
  .uk-range {
1243
1229
  /* 1 */
1230
+ -webkit-appearance: none;
1231
+ /* 2 */
1244
1232
  box-sizing: border-box;
1233
+ /* 3 */
1245
1234
  margin: 0;
1235
+ /* 4 */
1246
1236
  vertical-align: middle;
1247
- /* 2 */
1237
+ /* 5 */
1248
1238
  max-width: 100%;
1249
- /* 3 */
1239
+ /* 6 */
1250
1240
  width: 100%;
1251
- /* 4 */
1252
- -webkit-appearance: none;
1253
- /* 5 */
1241
+ /* 7 */
1254
1242
  background: transparent;
1255
- /* 6 */
1256
- padding: 0;
1257
1243
  }
1258
1244
  /* Focus */
1259
1245
  .uk-range:focus {
@@ -1262,13 +1248,6 @@ button.uk-icon:not(:disabled) {
1262
1248
  .uk-range::-moz-focus-outer {
1263
1249
  border: none;
1264
1250
  }
1265
- /* IE11 Reset */
1266
- .uk-range::-ms-track {
1267
- height: 15px;
1268
- background: transparent;
1269
- border-color: transparent;
1270
- color: transparent;
1271
- }
1272
1251
  /*
1273
1252
  * Improves consistency of cursor style for clickable elements
1274
1253
  */
@@ -1278,12 +1257,35 @@ button.uk-icon:not(:disabled) {
1278
1257
  .uk-range:not(:disabled)::-moz-range-thumb {
1279
1258
  cursor: pointer;
1280
1259
  }
1281
- .uk-range:not(:disabled)::-ms-thumb {
1282
- cursor: pointer;
1260
+ /*
1261
+ * Track
1262
+ * 1. Center thumb vertically in Webkit
1263
+ * 2. Safari doesn't have a focus state. Using active instead.
1264
+ */
1265
+ /* Webkit */
1266
+ .uk-range::-webkit-slider-runnable-track {
1267
+ height: 3px;
1268
+ background: #ebebeb;
1269
+ /* 1 */
1270
+ display: flex;
1271
+ align-items: center;
1272
+ border-radius: 500px;
1273
+ }
1274
+ .uk-range:focus::-webkit-slider-runnable-track,
1275
+ .uk-range:active::-webkit-slider-runnable-track {
1276
+ background: #dedede;
1277
+ }
1278
+ /* Firefox */
1279
+ .uk-range::-moz-range-track {
1280
+ height: 3px;
1281
+ background: #ebebeb;
1282
+ border-radius: 500px;
1283
+ }
1284
+ .uk-range:focus::-moz-range-track {
1285
+ background: #dedede;
1283
1286
  }
1284
- /* Thumb
1285
- ========================================================================== */
1286
1287
  /*
1288
+ * Thumb
1287
1289
  * 1. Reset
1288
1290
  * 2. Style
1289
1291
  */
@@ -1291,7 +1293,6 @@ button.uk-icon:not(:disabled) {
1291
1293
  .uk-range::-webkit-slider-thumb {
1292
1294
  /* 1 */
1293
1295
  -webkit-appearance: none;
1294
- margin-top: -7px;
1295
1296
  /* 2 */
1296
1297
  height: 15px;
1297
1298
  width: 15px;
@@ -1310,61 +1311,6 @@ button.uk-icon:not(:disabled) {
1310
1311
  background: #fff;
1311
1312
  border: 1px solid #cccccc;
1312
1313
  }
1313
- /* Edge */
1314
- .uk-range::-ms-thumb {
1315
- /* 1 */
1316
- margin-top: 0;
1317
- }
1318
- /* IE11 */
1319
- .uk-range::-ms-thumb {
1320
- /* 1 */
1321
- border: none;
1322
- /* 2 */
1323
- height: 15px;
1324
- width: 15px;
1325
- border-radius: 500px;
1326
- background: #fff;
1327
- border: 1px solid #cccccc;
1328
- }
1329
- /* Edge + IE11 */
1330
- .uk-range::-ms-tooltip {
1331
- display: none;
1332
- }
1333
- /* Track
1334
- ========================================================================== */
1335
- /*
1336
- * 1. Safari doesn't have a focus state. Using active instead.
1337
- */
1338
- /* Webkit */
1339
- .uk-range::-webkit-slider-runnable-track {
1340
- height: 3px;
1341
- background: #ebebeb;
1342
- border-radius: 500px;
1343
- }
1344
- .uk-range:focus::-webkit-slider-runnable-track,
1345
- .uk-range:active::-webkit-slider-runnable-track {
1346
- background: #dedede;
1347
- }
1348
- /* Firefox */
1349
- .uk-range::-moz-range-track {
1350
- height: 3px;
1351
- background: #ebebeb;
1352
- border-radius: 500px;
1353
- }
1354
- .uk-range:focus::-moz-range-track {
1355
- background: #dedede;
1356
- }
1357
- /* Edge */
1358
- .uk-range::-ms-fill-lower,
1359
- .uk-range::-ms-fill-upper {
1360
- height: 3px;
1361
- background: #ebebeb;
1362
- border-radius: 500px;
1363
- }
1364
- .uk-range:focus::-ms-fill-lower,
1365
- .uk-range:focus::-ms-fill-upper {
1366
- background: #dedede;
1367
- }
1368
1314
  /* ========================================================================
1369
1315
  Component: Form
1370
1316
  ========================================================================== */
@@ -1701,7 +1647,6 @@ select.uk-form-width-xsmall {
1701
1647
  display: none !important;
1702
1648
  }
1703
1649
  /* Radio and checkbox
1704
- * Note: Does not work in IE11
1705
1650
  ========================================================================== */
1706
1651
  /*
1707
1652
  * 1. Style
@@ -2217,27 +2162,23 @@ select.uk-form-width-xsmall {
2217
2162
  Component: Progress
2218
2163
  ========================================================================== */
2219
2164
  /*
2220
- * 1. Add the correct vertical alignment in Chrome, Firefox, and Opera.
2221
- * 2. Remove default style
2222
- * 3. Behave like a block element
2223
- * 4. Remove borders in Firefox and Edge
2224
- * 5. Set background color for progress container in Firefox, IE11 and Edge
2225
- * 6. Style
2165
+ * 1. Add the correct vertical alignment in all browsers.
2166
+ * 2. Behave like a block element.
2167
+ * 3. Remove borders in Firefox.
2168
+ * 4. Remove default style in Chrome, Safari and Edge.
2169
+ * 5. Style
2226
2170
  */
2227
2171
  .uk-progress {
2228
2172
  /* 1 */
2229
2173
  vertical-align: baseline;
2230
2174
  /* 2 */
2231
- -webkit-appearance: none;
2232
- -moz-appearance: none;
2233
- /* 3 */
2234
2175
  display: block;
2235
2176
  width: 100%;
2236
- /* 4 */
2177
+ /* 3 */
2237
2178
  border: 0;
2238
- /* 5 */
2179
+ /* 4 */
2239
2180
  background-color: #f8f8f8;
2240
- /* 6 */
2181
+ /* 5 */
2241
2182
  margin-bottom: 20px;
2242
2183
  height: 15px;
2243
2184
  border-radius: 500px;
@@ -2248,27 +2189,15 @@ select.uk-form-width-xsmall {
2248
2189
  margin-top: 20px;
2249
2190
  }
2250
2191
  /*
2251
- * Remove animated circles for indeterminate state in IE11 and Edge
2252
- */
2253
- .uk-progress:indeterminate {
2254
- color: transparent;
2255
- }
2256
- /*
2257
- * Progress container
2258
- * 2. Remove progress bar for indeterminate state in Firefox
2192
+ * Show background color set on `uk-progress` in Chrome, Safari and Edge.
2259
2193
  */
2260
2194
  .uk-progress::-webkit-progress-bar {
2261
- background-color: #f8f8f8;
2262
- border-radius: 500px;
2263
- overflow: hidden;
2264
- }
2265
- /* 2 */
2266
- .uk-progress:indeterminate::-moz-progress-bar {
2267
- width: 0;
2195
+ background-color: transparent;
2268
2196
  }
2269
2197
  /*
2270
- * Progress bar
2271
- * 1. Remove right border in IE11 and Edge
2198
+ * Progress Bar
2199
+ * 1. Transitions don't work on `::-moz-progress-bar` pseudo element in Firefox yet.
2200
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=662351
2272
2201
  */
2273
2202
  .uk-progress::-webkit-progress-value {
2274
2203
  background-color: #1e87f0;
@@ -2276,12 +2205,8 @@ select.uk-form-width-xsmall {
2276
2205
  }
2277
2206
  .uk-progress::-moz-progress-bar {
2278
2207
  background-color: #1e87f0;
2279
- }
2280
- .uk-progress::-ms-fill {
2281
- background-color: #1e87f0;
2282
- transition: width 0.6s ease;
2283
2208
  /* 1 */
2284
- border: 0;
2209
+ transition: width 0.6s ease;
2285
2210
  }
2286
2211
  /* ========================================================================
2287
2212
  Component: Section
@@ -3766,10 +3691,8 @@ select.uk-form-width-xsmall {
3766
3691
  /*
3767
3692
  * 1. Create position context for spinner and close button
3768
3693
  * 2. Dimensions
3769
- * 3. Fix `max-width: 100%` not working in combination with flex and responsive images in IE11
3770
- * `!important` needed to overwrite `uk-width-auto`. See `#modal-media-image` in tests
3771
- * 4. Style
3772
- * 5. Slide-in transition
3694
+ * 3. Style
3695
+ * 4. Slide-in transition
3773
3696
  */
3774
3697
  .uk-modal-dialog {
3775
3698
  /* 1 */
@@ -3779,10 +3702,8 @@ select.uk-form-width-xsmall {
3779
3702
  margin: 0 auto;
3780
3703
  width: 600px;
3781
3704
  /* 3 */
3782
- max-width: calc(100% - 0.01px) !important;
3783
- /* 4 */
3784
3705
  background: #fff;
3785
- /* 5 */
3706
+ /* 4 */
3786
3707
  opacity: 0;
3787
3708
  transform: translateY(-100px);
3788
3709
  transition: 0.3s linear;
@@ -3944,7 +3865,6 @@ select.uk-form-width-xsmall {
3944
3865
  * 2. Take the full width
3945
3866
  * 3. Clip child elements, e.g. for `uk-cover`
3946
3867
  * 4. Optimize animation
3947
- * 5. Disable horizontal panning gestures in IE11 and Edge
3948
3868
  */
3949
3869
  .uk-slideshow-items > * {
3950
3870
  /* 1 */
@@ -3958,8 +3878,6 @@ select.uk-form-width-xsmall {
3958
3878
  overflow: hidden;
3959
3879
  /* 4 */
3960
3880
  will-change: transform, opacity;
3961
- /* 5 */
3962
- touch-action: pan-y;
3963
3881
  }
3964
3882
  /*
3965
3883
  * Hide not active items
@@ -4026,7 +3944,6 @@ select.uk-form-width-xsmall {
4026
3944
  * 1. Let items take content dimensions (0 0 auto)
4027
3945
  * `max-width` needed to keep image responsiveness and prevent content overflow
4028
3946
  * 3. Create position context
4029
- * 4. Disable horizontal panning gestures in IE11 and Edge
4030
3947
  */
4031
3948
  .uk-slider-items > * {
4032
3949
  /* 1 */
@@ -4034,8 +3951,6 @@ select.uk-form-width-xsmall {
4034
3951
  max-width: 100%;
4035
3952
  /* 3 */
4036
3953
  position: relative;
4037
- /* 4 */
4038
- touch-action: pan-y;
4039
3954
  }
4040
3955
  /* ========================================================================
4041
3956
  Component: Sticky
@@ -6207,7 +6122,6 @@ ul.uk-nav-sub {
6207
6122
  * 4. Optimize animation
6208
6123
  * 5. Responsiveness
6209
6124
  * Using `vh` for `max-height` to fix image proportions after resize in Safari and Opera
6210
- * Using `vh` and `vw` to make responsive image work in IE11
6211
6125
  */
6212
6126
  .uk-lightbox-items > * {
6213
6127
  /* 1 */
@@ -7249,24 +7163,20 @@ ul.uk-nav-sub {
7249
7163
  /* Background modifier
7250
7164
  ========================================================================== */
7251
7165
  /*
7252
- * 1. The background clips to the foreground text. Works in Chrome, Firefox, Safari, Edge and Opera
7253
- * Default color is set to transparent
7254
- * 2. Container fits the text
7255
- * 3. Fallback color for IE11
7166
+ * 1. The background clips to the foreground text. Works in all browsers.
7167
+ * 2. Default color is set to transparent.
7168
+ * 3. Container fits the text
7169
+ * 4. Style
7256
7170
  */
7257
7171
  .uk-text-background {
7258
7172
  /* 1 */
7259
7173
  -webkit-background-clip: text;
7260
7174
  /* 2 */
7261
- display: inline-block;
7175
+ color: transparent !important;
7262
7176
  /* 3 */
7263
- color: #1e87f0 !important;
7264
- }
7265
- @supports (-webkit-background-clip: text) {
7266
- .uk-text-background {
7267
- background-color: #1e87f0;
7268
- color: transparent !important;
7269
- }
7177
+ display: inline-block;
7178
+ /* 4 */
7179
+ background-color: #1e87f0;
7270
7180
  }
7271
7181
  /* Alignment modifiers
7272
7182
  ========================================================================== */
@@ -7372,22 +7282,17 @@ td.uk-text-truncate {
7372
7282
  max-width: 0;
7373
7283
  }
7374
7284
  /*
7375
- * 1. Wrap long words onto the next line and break them if they are too long to fit
7376
- * 2. Legacy `word-wrap` as fallback for `overflow-wrap`
7377
- * 3. Fix `overflow-wrap` which doesn't work with table cells in Chrome, Opera, IE11 and Edge
7378
- * Must use `break-all` to support IE11 and Edge
7379
- * Note: Not using `hyphens: auto;` because it hyphenates text even if not needed
7285
+ * Wrap long words onto the next line and break them if they are too long to fit.
7286
+ * 1. Make it work with table cells in all browsers.
7287
+ * Note: Not using `hyphens: auto` because it hyphenates text even if not needed.
7380
7288
  */
7381
7289
  .uk-text-break {
7382
- /* 1 */
7383
7290
  overflow-wrap: break-word;
7384
- /* 2 */
7385
- word-wrap: break-word;
7386
7291
  }
7387
- /* 3 */
7292
+ /* 1 */
7388
7293
  th.uk-text-break,
7389
7294
  td.uk-text-break {
7390
- word-break: break-all;
7295
+ word-break: break-word;
7391
7296
  }
7392
7297
  /* ========================================================================
7393
7298
  Component: Column