uikit 3.15.14 → 3.15.15-dev.22c796ea4
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 +6 -0
- package/dist/css/uikit-core-rtl.css +2 -2
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +2 -2
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +2 -2
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +2 -2
- 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 +10 -4
- 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 +10 -4
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/scroll.js +8 -2
- package/src/less/components/form.less +1 -1
- package/src/less/components/spinner.less +2 -2
- package/src/scss/components/form.scss +1 -1
- package/src/scss/components/spinner.scss +2 -2
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.15-dev.22c796ea4",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/scroll.js
CHANGED
|
@@ -52,13 +52,19 @@ function clickHandler(e) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
for (const component of components) {
|
|
55
|
-
if (within(e.target, component.$el)) {
|
|
55
|
+
if (within(e.target, component.$el) && isSameSiteLink(component.$el)) {
|
|
56
56
|
e.preventDefault();
|
|
57
57
|
component.scrollTo(getTargetElement(component.$el));
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
function isSameSiteLink(el) {
|
|
63
|
+
return ['origin', 'pathname', 'search'].every((part) => location[part] === el[part]);
|
|
64
|
+
}
|
|
65
|
+
|
|
62
66
|
export function getTargetElement(el) {
|
|
63
|
-
|
|
67
|
+
if (isSameSiteLink(el)) {
|
|
68
|
+
return document.getElementById(decodeURIComponent(el.hash).substring(1));
|
|
69
|
+
}
|
|
64
70
|
}
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
/* Input, select and textarea
|
|
219
|
-
* Allowed: `text`, `password`, `datetime
|
|
219
|
+
* Allowed: `text`, `password`, `datetime-local`, `date`, `month`,
|
|
220
220
|
`time`, `week`, `number`, `email`, `url`, `search`, `tel`, `color`
|
|
221
221
|
* Disallowed: `range`, `radio`, `checkbox`, `file`, `submit`, `reset` and `image`
|
|
222
222
|
========================================================================== */
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
0% { stroke-dashoffset: @spinner-circumference; }
|
|
57
57
|
50% {
|
|
58
58
|
stroke-dashoffset: (@spinner-circumference / 4);
|
|
59
|
-
transform:rotate(135deg);
|
|
59
|
+
transform: rotate(135deg);
|
|
60
60
|
}
|
|
61
61
|
100% {
|
|
62
62
|
stroke-dashoffset: @spinner-circumference;
|
|
63
|
-
transform:rotate(450deg);
|
|
63
|
+
transform: rotate(450deg);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -216,7 +216,7 @@ $internal-form-checkbox-indeterminate-image: "data:image/svg+xml;charset=UTF-8,%
|
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
/* Input, select and textarea
|
|
219
|
-
* Allowed: `text`, `password`, `datetime
|
|
219
|
+
* Allowed: `text`, `password`, `datetime-local`, `date`, `month`,
|
|
220
220
|
`time`, `week`, `number`, `email`, `url`, `search`, `tel`, `color`
|
|
221
221
|
* Disallowed: `range`, `radio`, `checkbox`, `file`, `submit`, `reset` and `image`
|
|
222
222
|
========================================================================== */
|
|
@@ -56,11 +56,11 @@ $spinner-duration: 1.4s !default;
|
|
|
56
56
|
0% { stroke-dashoffset: $spinner-circumference; }
|
|
57
57
|
50% {
|
|
58
58
|
stroke-dashoffset: ($spinner-circumference * 0.25);
|
|
59
|
-
transform:rotate(135deg);
|
|
59
|
+
transform: rotate(135deg);
|
|
60
60
|
}
|
|
61
61
|
100% {
|
|
62
62
|
stroke-dashoffset: $spinner-circumference;
|
|
63
|
-
transform:rotate(450deg);
|
|
63
|
+
transform: rotate(450deg);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|