uikit 3.15.15 → 3.15.16-dev.8230e5aaa
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 +10 -3
- 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 +10 -19
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +10 -19
- 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 +11 -20
- 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 +11 -20
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/mixin/modal.js +6 -14
- package/src/less/components/offcanvas.less +6 -1
- package/src/scss/components/offcanvas.scss +6 -1
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.15.
|
|
5
|
+
"version": "3.15.16-dev.8230e5aaa",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/mixin/modal.js
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
includes,
|
|
10
10
|
isFocusable,
|
|
11
11
|
last,
|
|
12
|
+
matches,
|
|
12
13
|
noop,
|
|
13
14
|
on,
|
|
14
15
|
once,
|
|
@@ -72,23 +73,11 @@ export default {
|
|
|
72
73
|
name: 'click',
|
|
73
74
|
|
|
74
75
|
delegate() {
|
|
75
|
-
return this.selClose
|
|
76
|
+
return `${this.selClose},a[href*="#"]`;
|
|
76
77
|
},
|
|
77
78
|
|
|
78
79
|
handler(e) {
|
|
79
|
-
e
|
|
80
|
-
this.hide();
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
{
|
|
85
|
-
name: 'click',
|
|
86
|
-
|
|
87
|
-
delegate() {
|
|
88
|
-
return 'a[href*="#"]';
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
handler({ current, defaultPrevented }) {
|
|
80
|
+
const { current, defaultPrevented } = e;
|
|
92
81
|
const { hash } = current;
|
|
93
82
|
if (
|
|
94
83
|
!defaultPrevented &&
|
|
@@ -98,6 +87,9 @@ export default {
|
|
|
98
87
|
$(hash, document.body)
|
|
99
88
|
) {
|
|
100
89
|
this.hide();
|
|
90
|
+
} else if (matches(current, this.selClose)) {
|
|
91
|
+
e.preventDefault();
|
|
92
|
+
this.hide();
|
|
101
93
|
}
|
|
102
94
|
},
|
|
103
95
|
},
|
|
@@ -270,10 +270,15 @@
|
|
|
270
270
|
/*
|
|
271
271
|
* Prevent horizontal scrollbar when the content is slide-out
|
|
272
272
|
* Has to be on the `html` element too to make it work on the `body`
|
|
273
|
+
* 1. `clip` is needed for `position: sticky` elements to keep their position
|
|
273
274
|
*/
|
|
274
275
|
|
|
275
276
|
.uk-offcanvas-page,
|
|
276
|
-
.uk-offcanvas-container {
|
|
277
|
+
.uk-offcanvas-container {
|
|
278
|
+
overflow-x: hidden;
|
|
279
|
+
/* 1 */
|
|
280
|
+
overflow-x: clip;
|
|
281
|
+
}
|
|
277
282
|
|
|
278
283
|
|
|
279
284
|
/* Container
|
|
@@ -270,10 +270,15 @@ $offcanvas-overlay-background: rgba(0,0,0,0.1) !default;
|
|
|
270
270
|
/*
|
|
271
271
|
* Prevent horizontal scrollbar when the content is slide-out
|
|
272
272
|
* Has to be on the `html` element too to make it work on the `body`
|
|
273
|
+
* 1. `clip` is needed for `position: sticky` elements to keep their position
|
|
273
274
|
*/
|
|
274
275
|
|
|
275
276
|
.uk-offcanvas-page,
|
|
276
|
-
.uk-offcanvas-container {
|
|
277
|
+
.uk-offcanvas-container {
|
|
278
|
+
overflow-x: hidden;
|
|
279
|
+
/* 1 */
|
|
280
|
+
overflow-x: clip;
|
|
281
|
+
}
|
|
277
282
|
|
|
278
283
|
|
|
279
284
|
/* Container
|