uikit 3.16.23-dev.a371e7b76 → 3.16.24-dev.7484d4196
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 +9 -1
- package/dist/css/uikit-core-rtl.css +4 -3
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +4 -3
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +4 -3
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +4 -3
- 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 +1 -1
- 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 +27 -25
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +2 -2
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +27 -25
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/images/icons/question.svg +2 -2
- package/src/js/core/dropnav.js +20 -12
- package/src/js/core/toggle.js +0 -1
- package/src/js/util/dimensions.js +7 -12
- package/src/less/components/slider.less +3 -2
- package/src/less/theme/nav.less +9 -9
- package/src/scss/components/slider.scss +3 -2
- package/src/scss/mixins-theme.scss +4 -4
- package/src/scss/variables-theme.scss +5 -5
- package/tests/drop.html +1 -1
- package/tests/dropnav.html +1 -1
- package/tests/navbar.html +1 -1
- package/tests/scrollspy.html +9 -3
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.16.
|
|
5
|
+
"version": "3.16.24-dev.7484d4196",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<circle fill="none" stroke="#000" stroke-width="1.1" cx="10" cy="10" r="9" />
|
|
3
|
-
<circle cx="
|
|
4
|
-
<path fill="none" stroke="#000" stroke-width="1.2" d="
|
|
3
|
+
<circle cx="9.99" cy="14.24" r="1.05" />
|
|
4
|
+
<path fill="none" stroke="#000" stroke-width="1.2" d="m7.72,7.61c0-3.04,4.55-3.06,4.55-.07,0,.95-.91,1.43-1.49,2.03-.48.49-.72.98-.78,1.65-.01.13-.02.24-.02.35" />
|
|
5
5
|
</svg>
|
package/src/js/core/dropnav.js
CHANGED
|
@@ -112,21 +112,15 @@ export default {
|
|
|
112
112
|
);
|
|
113
113
|
},
|
|
114
114
|
|
|
115
|
-
dropdowns(
|
|
116
|
-
this
|
|
117
|
-
'drop',
|
|
118
|
-
dropdowns.filter((el) => !this.getDropdown(el)),
|
|
119
|
-
{
|
|
120
|
-
...this.$props,
|
|
121
|
-
flip: false,
|
|
122
|
-
shift: true,
|
|
123
|
-
pos: `bottom-${this.align}`,
|
|
124
|
-
boundary: this.boundary === true ? this.$el : this.boundary,
|
|
125
|
-
}
|
|
126
|
-
);
|
|
115
|
+
dropdowns() {
|
|
116
|
+
this.initializeDropdowns();
|
|
127
117
|
},
|
|
128
118
|
},
|
|
129
119
|
|
|
120
|
+
connected() {
|
|
121
|
+
this.initializeDropdowns();
|
|
122
|
+
},
|
|
123
|
+
|
|
130
124
|
disconnected() {
|
|
131
125
|
remove(this._dropbar);
|
|
132
126
|
delete this._dropbar;
|
|
@@ -394,6 +388,20 @@ export default {
|
|
|
394
388
|
isDropbarDrop(el) {
|
|
395
389
|
return this.getDropdown(el) && hasClass(el, this.clsDrop);
|
|
396
390
|
},
|
|
391
|
+
|
|
392
|
+
initializeDropdowns() {
|
|
393
|
+
this.$create(
|
|
394
|
+
'drop',
|
|
395
|
+
this.dropdowns.filter((el) => !this.getDropdown(el)),
|
|
396
|
+
{
|
|
397
|
+
...this.$props,
|
|
398
|
+
flip: false,
|
|
399
|
+
shift: true,
|
|
400
|
+
pos: `bottom-${this.align}`,
|
|
401
|
+
boundary: this.boundary === true ? this.$el : this.boundary,
|
|
402
|
+
},
|
|
403
|
+
);
|
|
404
|
+
},
|
|
397
405
|
},
|
|
398
406
|
};
|
|
399
407
|
|
package/src/js/core/toggle.js
CHANGED
|
@@ -2,7 +2,6 @@ import { on } from './event';
|
|
|
2
2
|
import { css } from './style';
|
|
3
3
|
import { $, append, remove } from './dom';
|
|
4
4
|
import {
|
|
5
|
-
each,
|
|
6
5
|
isDocument,
|
|
7
6
|
isElement,
|
|
8
7
|
isString,
|
|
@@ -37,6 +36,10 @@ export function dimensions(element) {
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
export function offset(element, coordinates) {
|
|
39
|
+
if (coordinates) {
|
|
40
|
+
css(element, { left: 0, top: 0 });
|
|
41
|
+
}
|
|
42
|
+
|
|
40
43
|
const currentOffset = dimensions(element);
|
|
41
44
|
|
|
42
45
|
if (element) {
|
|
@@ -54,17 +57,9 @@ export function offset(element, coordinates) {
|
|
|
54
57
|
return currentOffset;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
css(
|
|
61
|
-
element,
|
|
62
|
-
prop,
|
|
63
|
-
coordinates[prop] -
|
|
64
|
-
Math.round(currentOffset[prop] * 1000) / 1000 + // round to 3 digits because css top property is 3 digits precise, while getBoundingClientRect() is 4 digits precise
|
|
65
|
-
toFloat(pos === 'absolute' && value === 'auto' ? position(element)[prop] : value)
|
|
66
|
-
)
|
|
67
|
-
);
|
|
60
|
+
for (const prop of ['left', 'top']) {
|
|
61
|
+
css(element, prop, coordinates[prop] - currentOffset[prop]);
|
|
62
|
+
}
|
|
68
63
|
}
|
|
69
64
|
|
|
70
65
|
export function position(element) {
|
|
@@ -95,14 +95,15 @@
|
|
|
95
95
|
/*
|
|
96
96
|
* 1. Let items take content dimensions (0 0 auto)
|
|
97
97
|
* `max-width` needed to keep image responsiveness and prevent content overflow
|
|
98
|
-
*
|
|
98
|
+
* 2. Create position context
|
|
99
99
|
*/
|
|
100
100
|
|
|
101
101
|
.uk-slider-items > * {
|
|
102
102
|
/* 1 */
|
|
103
103
|
flex: none;
|
|
104
|
+
box-sizing: border-box;
|
|
104
105
|
max-width: 100%;
|
|
105
|
-
/*
|
|
106
|
+
/* 2 */
|
|
106
107
|
position: relative;
|
|
107
108
|
}
|
|
108
109
|
|
package/src/less/theme/nav.less
CHANGED
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
// New
|
|
16
16
|
//
|
|
17
17
|
|
|
18
|
-
@nav-
|
|
19
|
-
@nav-
|
|
20
|
-
@nav-
|
|
21
|
-
@nav-
|
|
22
|
-
@nav-
|
|
18
|
+
@nav-secondary-margin-top: 0;
|
|
19
|
+
@nav-secondary-item-padding-horizontal: 10px;
|
|
20
|
+
@nav-secondary-item-padding-vertical: 10px;
|
|
21
|
+
@nav-secondary-item-hover-background: @global-muted-background;
|
|
22
|
+
@nav-secondary-item-active-background: @global-muted-background;
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
// Sublists
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
// ========================================================================
|
|
81
81
|
|
|
82
82
|
.hook-nav-secondary() {
|
|
83
|
-
> :not(.uk-nav-divider) + :not(.uk-nav-header, .uk-nav-divider) { margin-top: @nav-
|
|
83
|
+
> :not(.uk-nav-divider) + :not(.uk-nav-header, .uk-nav-divider) { margin-top: @nav-secondary-margin-top; }
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.hook-nav-secondary-item() { padding: @nav-
|
|
86
|
+
.hook-nav-secondary-item() { padding: @nav-secondary-item-padding-vertical @nav-secondary-item-padding-horizontal; }
|
|
87
87
|
|
|
88
|
-
.hook-nav-secondary-item-hover() { background-color: @nav-
|
|
88
|
+
.hook-nav-secondary-item-hover() { background-color: @nav-secondary-item-hover-background; }
|
|
89
89
|
|
|
90
|
-
.hook-nav-secondary-item-active() { background-color: @nav-
|
|
90
|
+
.hook-nav-secondary-item-active() { background-color: @nav-secondary-item-active-background; }
|
|
91
91
|
|
|
92
92
|
.hook-nav-secondary-subtitle() {}
|
|
93
93
|
|
|
@@ -91,14 +91,15 @@
|
|
|
91
91
|
/*
|
|
92
92
|
* 1. Let items take content dimensions (0 0 auto)
|
|
93
93
|
* `max-width` needed to keep image responsiveness and prevent content overflow
|
|
94
|
-
*
|
|
94
|
+
* 2. Create position context
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
97
|
.uk-slider-items > * {
|
|
98
98
|
/* 1 */
|
|
99
99
|
flex: none;
|
|
100
|
+
box-sizing: border-box;
|
|
100
101
|
max-width: 100%;
|
|
101
|
-
/*
|
|
102
|
+
/* 2 */
|
|
102
103
|
position: relative;
|
|
103
104
|
}
|
|
104
105
|
|
|
@@ -1784,11 +1784,11 @@
|
|
|
1784
1784
|
@mixin hook-nav-primary-header(){}
|
|
1785
1785
|
@mixin hook-nav-primary-divider(){}
|
|
1786
1786
|
@mixin hook-nav-secondary(){
|
|
1787
|
-
> :not(.uk-nav-divider) + :not(.uk-nav-header, .uk-nav-divider) { margin-top: $nav-
|
|
1787
|
+
> :not(.uk-nav-divider) + :not(.uk-nav-header, .uk-nav-divider) { margin-top: $nav-secondary-margin-top; }
|
|
1788
1788
|
}
|
|
1789
|
-
@mixin hook-nav-secondary-item(){ padding: $nav-
|
|
1790
|
-
@mixin hook-nav-secondary-item-hover(){ background-color: $nav-
|
|
1791
|
-
@mixin hook-nav-secondary-item-active(){ background-color: $nav-
|
|
1789
|
+
@mixin hook-nav-secondary-item(){ padding: $nav-secondary-item-padding-vertical $nav-secondary-item-padding-horizontal; }
|
|
1790
|
+
@mixin hook-nav-secondary-item-hover(){ background-color: $nav-secondary-item-hover-background; }
|
|
1791
|
+
@mixin hook-nav-secondary-item-active(){ background-color: $nav-secondary-item-active-background; }
|
|
1792
1792
|
@mixin hook-nav-secondary-subtitle(){}
|
|
1793
1793
|
@mixin hook-nav-secondary-subtitle-hover(){}
|
|
1794
1794
|
@mixin hook-nav-secondary-subtitle-active(){}
|
|
@@ -1237,11 +1237,11 @@ $modal-footer-border: $global-border !default;
|
|
|
1237
1237
|
$modal-close-full-padding: 10px !default;
|
|
1238
1238
|
$modal-close-full-background: $modal-dialog-background !default;
|
|
1239
1239
|
$modal-close-full-padding-m: $global-margin !default;
|
|
1240
|
-
$nav-
|
|
1241
|
-
$nav-
|
|
1242
|
-
$nav-
|
|
1243
|
-
$nav-
|
|
1244
|
-
$nav-
|
|
1240
|
+
$nav-secondary-margin-top: 0 !default;
|
|
1241
|
+
$nav-secondary-item-padding-horizontal: 10px !default;
|
|
1242
|
+
$nav-secondary-item-padding-vertical: 10px !default;
|
|
1243
|
+
$nav-secondary-item-hover-background: $global-muted-background !default;
|
|
1244
|
+
$nav-secondary-item-active-background: $global-muted-background !default;
|
|
1245
1245
|
$inverse-nav-background-item-hover-background: $inverse-global-muted-background !default;
|
|
1246
1246
|
$inverse-nav-background-item-active-background: $inverse-global-muted-background !default;
|
|
1247
1247
|
$navbar-gap-m: 30px !default;
|
package/tests/drop.html
CHANGED
package/tests/dropnav.html
CHANGED
package/tests/navbar.html
CHANGED
package/tests/scrollspy.html
CHANGED
|
@@ -506,6 +506,12 @@
|
|
|
506
506
|
<td>``</td>
|
|
507
507
|
<td>Class to toggle when the element enters/leaves viewport.</td>
|
|
508
508
|
</tr>
|
|
509
|
+
<tr>
|
|
510
|
+
<td><code>target</code></td>
|
|
511
|
+
<td>Boolean, CSS selector</td>
|
|
512
|
+
<td>false</td>
|
|
513
|
+
<td>Target to apply the scrollspy to. Defaults to the element itself.</td>
|
|
514
|
+
</tr>
|
|
509
515
|
<tr>
|
|
510
516
|
<td><code>hidden</code></td>
|
|
511
517
|
<td>Boolean</td>
|
|
@@ -555,9 +561,9 @@
|
|
|
555
561
|
</tr>
|
|
556
562
|
<tr>
|
|
557
563
|
<td><code>closest</code></td>
|
|
558
|
-
<td>
|
|
559
|
-
<td>
|
|
560
|
-
<td>Target to apply the class to.</td>
|
|
564
|
+
<td>Boolean, CSS selector</td>
|
|
565
|
+
<td>false</td>
|
|
566
|
+
<td>Target to apply the class to. Defaults to the element itself.</td>
|
|
561
567
|
</tr>
|
|
562
568
|
<tr>
|
|
563
569
|
<td><code>scroll</code></td>
|