uikit 3.13.2-dev.aa6a91433 → 3.13.2-dev.c2867cea0
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.
- package/CHANGELOG.md +3 -0
- package/dist/css/uikit-core-rtl.css +4 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +4 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +4 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +4 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +2 -2
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +23 -17
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +23 -17
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/navbar.js +10 -5
- package/src/js/core/video.js +1 -1
- package/src/js/mixin/position.js +1 -1
- package/src/js/util/observer.js +2 -1
- package/src/js/util/style.js +6 -5
- package/src/less/components/drop.less +2 -1
- package/src/less/components/dropdown.less +2 -1
- package/src/less/components/navbar.less +2 -1
- package/src/less/components/tooltip.less +1 -1
- package/src/scss/components/drop.scss +2 -1
- package/src/scss/components/dropdown.scss +2 -1
- package/src/scss/components/navbar.scss +2 -1
- package/src/scss/components/tooltip.scss +1 -1
- package/src/scss/variables-theme.scss +4 -4
- package/src/scss/variables.scss +4 -4
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.13.2-dev.
|
|
5
|
+
"version": "3.13.2-dev.c2867cea0",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/navbar.js
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
isVisible,
|
|
17
17
|
matches,
|
|
18
18
|
noop,
|
|
19
|
+
offset,
|
|
19
20
|
once,
|
|
20
21
|
parent,
|
|
21
22
|
query,
|
|
@@ -274,10 +275,16 @@ export default {
|
|
|
274
275
|
return this.dropbar;
|
|
275
276
|
},
|
|
276
277
|
|
|
277
|
-
handler() {
|
|
278
|
+
handler(_, { $el }) {
|
|
279
|
+
if (!hasClass($el, this.clsDrop)) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
|
|
278
283
|
if (!parent(this.dropbar)) {
|
|
279
284
|
after(this.dropbarAnchor || this.$el, this.dropbar);
|
|
280
285
|
}
|
|
286
|
+
|
|
287
|
+
addClass($el, `${this.clsDrop}-dropbar`);
|
|
281
288
|
},
|
|
282
289
|
},
|
|
283
290
|
|
|
@@ -297,12 +304,10 @@ export default {
|
|
|
297
304
|
return;
|
|
298
305
|
}
|
|
299
306
|
|
|
300
|
-
this.clsDrop && addClass($el, `${this.clsDrop}-dropbar`);
|
|
301
|
-
|
|
302
307
|
if (dir === 'bottom') {
|
|
303
308
|
this.transitionTo(
|
|
304
|
-
$el.
|
|
305
|
-
|
|
309
|
+
offset($el).bottom -
|
|
310
|
+
offset(this.dropbar).top +
|
|
306
311
|
toFloat(css($el, 'marginBottom')),
|
|
307
312
|
$el
|
|
308
313
|
);
|
package/src/js/core/video.js
CHANGED
package/src/js/mixin/position.js
CHANGED
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
getOffset(target)[axis === 'x' ? 'right' : 'bottom']
|
|
43
43
|
: 0;
|
|
44
44
|
}
|
|
45
|
-
offset += toPx(getCssVar('position-margin-offset',
|
|
45
|
+
offset += toPx(getCssVar('position-margin-offset', element));
|
|
46
46
|
|
|
47
47
|
const { x, y } = positionAt(
|
|
48
48
|
element,
|
package/src/js/util/observer.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { on } from './event';
|
|
2
2
|
import { toNodes } from './lang';
|
|
3
3
|
import { fastdom } from './fastdom';
|
|
4
|
+
import { inBrowser } from './env';
|
|
4
5
|
|
|
5
6
|
export function observeIntersection(targets, cb, options, intersecting = true) {
|
|
6
7
|
return observe(
|
|
@@ -17,7 +18,7 @@ export function observeIntersection(targets, cb, options, intersecting = true) {
|
|
|
17
18
|
);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
const hasResizeObserver = window.ResizeObserver;
|
|
21
|
+
const hasResizeObserver = inBrowser && window.ResizeObserver;
|
|
21
22
|
export function observeResize(targets, cb, options = { box: 'border-box' }) {
|
|
22
23
|
if (hasResizeObserver) {
|
|
23
24
|
return observe(ResizeObserver, targets, cb, options);
|
package/src/js/util/style.js
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
isUndefined,
|
|
10
10
|
memoize,
|
|
11
11
|
toNodes,
|
|
12
|
-
toWindow,
|
|
13
12
|
} from './lang';
|
|
14
13
|
|
|
15
14
|
const cssNumber = {
|
|
@@ -37,13 +36,15 @@ export function css(element, property, value, priority = '') {
|
|
|
37
36
|
property = propName(property);
|
|
38
37
|
|
|
39
38
|
if (isUndefined(value)) {
|
|
40
|
-
return
|
|
41
|
-
} else if (!value && !isNumber(value)) {
|
|
42
|
-
element.style.removeProperty(property);
|
|
39
|
+
return getComputedStyle(element).getPropertyValue(property);
|
|
43
40
|
} else {
|
|
44
41
|
element.style.setProperty(
|
|
45
42
|
property,
|
|
46
|
-
isNumeric(value) && !cssNumber[property]
|
|
43
|
+
isNumeric(value) && !cssNumber[property]
|
|
44
|
+
? `${value}px`
|
|
45
|
+
: value || isNumber(value)
|
|
46
|
+
? value
|
|
47
|
+
: '',
|
|
47
48
|
priority
|
|
48
49
|
);
|
|
49
50
|
}
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
// ========================================================================
|
|
22
22
|
|
|
23
23
|
@drop-z-index: @global-z-index + 20;
|
|
24
|
-
@drop-width: 300px;
|
|
25
24
|
@drop-margin: @global-margin;
|
|
25
|
+
@drop-width: 300px;
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
/* ========================================================================
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
/* 3 */
|
|
46
46
|
box-sizing: border-box;
|
|
47
47
|
width: @drop-width;
|
|
48
|
+
max-width: 100vw;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/* Show */
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
// ========================================================================
|
|
22
22
|
|
|
23
23
|
@dropdown-z-index: @global-z-index + 20;
|
|
24
|
+
@dropdown-margin: @global-small-margin;
|
|
24
25
|
@dropdown-min-width: 200px;
|
|
25
26
|
@dropdown-padding: 15px;
|
|
26
27
|
@dropdown-background: @global-muted-background;
|
|
27
28
|
@dropdown-color: @global-color;
|
|
28
|
-
@dropdown-margin: @global-small-margin;
|
|
29
29
|
|
|
30
30
|
@dropdown-nav-item-color: @global-muted-color;
|
|
31
31
|
@dropdown-nav-item-hover-color: @global-color;
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
/* 3 */
|
|
58
58
|
box-sizing: border-box;
|
|
59
59
|
min-width: @dropdown-min-width;
|
|
60
|
+
max-width: 100vw;
|
|
60
61
|
/* 4 */
|
|
61
62
|
padding: @dropdown-padding;
|
|
62
63
|
background: @dropdown-background;
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
@navbar-subtitle-font-size: @global-small-font-size;
|
|
57
57
|
|
|
58
58
|
@navbar-dropdown-z-index: @global-z-index + 20;
|
|
59
|
-
@navbar-dropdown-width: 200px;
|
|
60
59
|
@navbar-dropdown-margin: 0;
|
|
60
|
+
@navbar-dropdown-width: 200px;
|
|
61
61
|
@navbar-dropdown-padding: 15px;
|
|
62
62
|
@navbar-dropdown-background: @global-muted-background;
|
|
63
63
|
@navbar-dropdown-color: @global-color;
|
|
@@ -353,6 +353,7 @@
|
|
|
353
353
|
/* 3 */
|
|
354
354
|
box-sizing: border-box;
|
|
355
355
|
width: @navbar-dropdown-width;
|
|
356
|
+
max-width: 100vw;
|
|
356
357
|
/* 4 */
|
|
357
358
|
padding: @navbar-dropdown-padding;
|
|
358
359
|
background: @navbar-dropdown-background;
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
// ========================================================================
|
|
22
22
|
|
|
23
23
|
@tooltip-z-index: @global-z-index + 30;
|
|
24
|
+
@tooltip-margin: 10px;
|
|
24
25
|
@tooltip-max-width: 200px;
|
|
25
26
|
@tooltip-padding-vertical: 3px;
|
|
26
27
|
@tooltip-padding-horizontal: 6px;
|
|
@@ -29,7 +30,6 @@
|
|
|
29
30
|
@tooltip-color: @global-inverse-color;
|
|
30
31
|
@tooltip-font-size: 12px;
|
|
31
32
|
|
|
32
|
-
@tooltip-margin: 10px;
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
/* ========================================================================
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
// ========================================================================
|
|
22
22
|
|
|
23
23
|
$drop-z-index: $global-z-index + 20 !default;
|
|
24
|
-
$drop-width: 300px !default;
|
|
25
24
|
$drop-margin: $global-margin !default;
|
|
25
|
+
$drop-width: 300px !default;
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
/* ========================================================================
|
|
@@ -45,6 +45,7 @@ $drop-margin: $global-margin !default;
|
|
|
45
45
|
/* 3 */
|
|
46
46
|
box-sizing: border-box;
|
|
47
47
|
width: $drop-width;
|
|
48
|
+
max-width: 100vw;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/* Show */
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
// ========================================================================
|
|
22
22
|
|
|
23
23
|
$dropdown-z-index: $global-z-index + 20 !default;
|
|
24
|
+
$dropdown-margin: $global-small-margin !default;
|
|
24
25
|
$dropdown-min-width: 200px !default;
|
|
25
26
|
$dropdown-padding: 15px !default;
|
|
26
27
|
$dropdown-background: $global-muted-background !default;
|
|
27
28
|
$dropdown-color: $global-color !default;
|
|
28
|
-
$dropdown-margin: $global-small-margin !default;
|
|
29
29
|
|
|
30
30
|
$dropdown-nav-item-color: $global-muted-color !default;
|
|
31
31
|
$dropdown-nav-item-hover-color: $global-color !default;
|
|
@@ -57,6 +57,7 @@ $dropdown-nav-sublist-item-hover-color: $global-color !default;
|
|
|
57
57
|
/* 3 */
|
|
58
58
|
box-sizing: border-box;
|
|
59
59
|
min-width: $dropdown-min-width;
|
|
60
|
+
max-width: 100vw;
|
|
60
61
|
/* 4 */
|
|
61
62
|
padding: $dropdown-padding;
|
|
62
63
|
background: $dropdown-background;
|
|
@@ -56,8 +56,8 @@ $navbar-toggle-hover-color: $global-color !default;
|
|
|
56
56
|
$navbar-subtitle-font-size: $global-small-font-size !default;
|
|
57
57
|
|
|
58
58
|
$navbar-dropdown-z-index: $global-z-index + 20 !default;
|
|
59
|
-
$navbar-dropdown-width: 200px !default;
|
|
60
59
|
$navbar-dropdown-margin: 0 !default;
|
|
60
|
+
$navbar-dropdown-width: 200px !default;
|
|
61
61
|
$navbar-dropdown-padding: 15px !default;
|
|
62
62
|
$navbar-dropdown-background: $global-muted-background !default;
|
|
63
63
|
$navbar-dropdown-color: $global-color !default;
|
|
@@ -353,6 +353,7 @@ $navbar-dropbar-z-index: $global-z-index - 20 !default;
|
|
|
353
353
|
/* 3 */
|
|
354
354
|
box-sizing: border-box;
|
|
355
355
|
width: $navbar-dropdown-width;
|
|
356
|
+
max-width: 100vw;
|
|
356
357
|
/* 4 */
|
|
357
358
|
padding: $navbar-dropdown-padding;
|
|
358
359
|
background: $navbar-dropdown-background;
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
// ========================================================================
|
|
22
22
|
|
|
23
23
|
$tooltip-z-index: $global-z-index + 30 !default;
|
|
24
|
+
$tooltip-margin: 10px !default;
|
|
24
25
|
$tooltip-max-width: 200px !default;
|
|
25
26
|
$tooltip-padding-vertical: 3px !default;
|
|
26
27
|
$tooltip-padding-horizontal: 6px !default;
|
|
@@ -29,7 +30,6 @@ $tooltip-border-radius: 2px !default;
|
|
|
29
30
|
$tooltip-color: $global-inverse-color !default;
|
|
30
31
|
$tooltip-font-size: 12px !default;
|
|
31
32
|
|
|
32
|
-
$tooltip-margin: 10px !default;
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
/* ========================================================================
|
|
@@ -366,14 +366,14 @@ $inverse-dotnav-item-onclick-background: rgba($inverse-global-color, 0.5) !defau
|
|
|
366
366
|
$inverse-dotnav-item-active-background: rgba($inverse-global-color, 0.9) !default;
|
|
367
367
|
$global-z-index: 1000 !default;
|
|
368
368
|
$drop-z-index: $global-z-index + 20 !default;
|
|
369
|
-
$drop-width: 300px !default;
|
|
370
369
|
$drop-margin: $global-margin !default;
|
|
370
|
+
$drop-width: 300px !default;
|
|
371
371
|
$dropdown-z-index: $global-z-index + 20 !default;
|
|
372
|
+
$dropdown-margin: $global-small-margin !default;
|
|
372
373
|
$dropdown-min-width: 200px !default;
|
|
373
374
|
$dropdown-padding: 25px !default;
|
|
374
375
|
$dropdown-background: $global-background !default;
|
|
375
376
|
$dropdown-color: $global-color !default;
|
|
376
|
-
$dropdown-margin: $global-small-margin !default;
|
|
377
377
|
$dropdown-nav-item-color: $global-muted-color !default;
|
|
378
378
|
$dropdown-nav-item-hover-color: $global-color !default;
|
|
379
379
|
$dropdown-nav-header-color: $global-emphasis-color !default;
|
|
@@ -739,8 +739,8 @@ $navbar-toggle-color: $global-muted-color !default;
|
|
|
739
739
|
$navbar-toggle-hover-color: $global-color !default;
|
|
740
740
|
$navbar-subtitle-font-size: $global-small-font-size !default;
|
|
741
741
|
$navbar-dropdown-z-index: $global-z-index + 20 !default;
|
|
742
|
-
$navbar-dropdown-width: 200px !default;
|
|
743
742
|
$navbar-dropdown-margin: 15px !default;
|
|
743
|
+
$navbar-dropdown-width: 200px !default;
|
|
744
744
|
$navbar-dropdown-padding: 25px !default;
|
|
745
745
|
$navbar-dropdown-background: $global-background !default;
|
|
746
746
|
$navbar-dropdown-color: $global-color !default;
|
|
@@ -1015,6 +1015,7 @@ $tile-primary-color-mode: light !default;
|
|
|
1015
1015
|
$tile-secondary-background: $global-secondary-background !default;
|
|
1016
1016
|
$tile-secondary-color-mode: light !default;
|
|
1017
1017
|
$tooltip-z-index: $global-z-index + 30 !default;
|
|
1018
|
+
$tooltip-margin: 10px !default;
|
|
1018
1019
|
$tooltip-max-width: 200px !default;
|
|
1019
1020
|
$tooltip-padding-vertical: 3px !default;
|
|
1020
1021
|
$tooltip-padding-horizontal: 6px !default;
|
|
@@ -1022,7 +1023,6 @@ $tooltip-background: #666 !default;
|
|
|
1022
1023
|
$tooltip-border-radius: 2px !default;
|
|
1023
1024
|
$tooltip-color: $global-inverse-color !default;
|
|
1024
1025
|
$tooltip-font-size: 12px !default;
|
|
1025
|
-
$tooltip-margin: 10px !default;
|
|
1026
1026
|
$totop-padding: 5px !default;
|
|
1027
1027
|
$totop-color: $global-muted-color !default;
|
|
1028
1028
|
$totop-hover-color: $global-color !default;
|
package/src/scss/variables.scss
CHANGED
|
@@ -365,14 +365,14 @@ $inverse-dotnav-item-onclick-background: rgba($inverse-global-color, 0.5) !defau
|
|
|
365
365
|
$inverse-dotnav-item-active-background: rgba($inverse-global-color, 0.9) !default;
|
|
366
366
|
$global-z-index: 1000 !default;
|
|
367
367
|
$drop-z-index: $global-z-index + 20 !default;
|
|
368
|
-
$drop-width: 300px !default;
|
|
369
368
|
$drop-margin: $global-margin !default;
|
|
369
|
+
$drop-width: 300px !default;
|
|
370
370
|
$dropdown-z-index: $global-z-index + 20 !default;
|
|
371
|
+
$dropdown-margin: $global-small-margin !default;
|
|
371
372
|
$dropdown-min-width: 200px !default;
|
|
372
373
|
$dropdown-padding: 15px !default;
|
|
373
374
|
$dropdown-background: $global-muted-background !default;
|
|
374
375
|
$dropdown-color: $global-color !default;
|
|
375
|
-
$dropdown-margin: $global-small-margin !default;
|
|
376
376
|
$dropdown-nav-item-color: $global-muted-color !default;
|
|
377
377
|
$dropdown-nav-item-hover-color: $global-color !default;
|
|
378
378
|
$dropdown-nav-header-color: $global-emphasis-color !default;
|
|
@@ -737,8 +737,8 @@ $navbar-toggle-color: $global-muted-color !default;
|
|
|
737
737
|
$navbar-toggle-hover-color: $global-color !default;
|
|
738
738
|
$navbar-subtitle-font-size: $global-small-font-size !default;
|
|
739
739
|
$navbar-dropdown-z-index: $global-z-index + 20 !default;
|
|
740
|
-
$navbar-dropdown-width: 200px !default;
|
|
741
740
|
$navbar-dropdown-margin: 0 !default;
|
|
741
|
+
$navbar-dropdown-width: 200px !default;
|
|
742
742
|
$navbar-dropdown-padding: 15px !default;
|
|
743
743
|
$navbar-dropdown-background: $global-muted-background !default;
|
|
744
744
|
$navbar-dropdown-color: $global-color !default;
|
|
@@ -1013,6 +1013,7 @@ $tile-primary-color-mode: light !default;
|
|
|
1013
1013
|
$tile-secondary-background: $global-secondary-background !default;
|
|
1014
1014
|
$tile-secondary-color-mode: light !default;
|
|
1015
1015
|
$tooltip-z-index: $global-z-index + 30 !default;
|
|
1016
|
+
$tooltip-margin: 10px !default;
|
|
1016
1017
|
$tooltip-max-width: 200px !default;
|
|
1017
1018
|
$tooltip-padding-vertical: 3px !default;
|
|
1018
1019
|
$tooltip-padding-horizontal: 6px !default;
|
|
@@ -1020,7 +1021,6 @@ $tooltip-background: #666 !default;
|
|
|
1020
1021
|
$tooltip-border-radius: 2px !default;
|
|
1021
1022
|
$tooltip-color: $global-inverse-color !default;
|
|
1022
1023
|
$tooltip-font-size: 12px !default;
|
|
1023
|
-
$tooltip-margin: 10px !default;
|
|
1024
1024
|
$totop-padding: 5px !default;
|
|
1025
1025
|
$totop-color: $global-muted-color !default;
|
|
1026
1026
|
$totop-hover-color: $global-color !default;
|