uikit 3.15.20-dev.8d21874bc → 3.15.20-dev.bf544e984
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 +88 -88
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +88 -88
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +101 -94
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +101 -94
- 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 +2 -2
- package/dist/js/components/sortable.min.js +2 -2
- 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 +8 -12
- package/dist/js/uikit-core.min.js +2 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +9 -13
- package/dist/js/uikit.min.js +2 -2
- package/package.json +1 -1
- package/src/js/components/sortable.js +1 -1
- package/src/js/core/img.js +1 -5
- package/src/js/util/dom.js +2 -2
- package/src/js/util/position.js +1 -1
- package/src/js/util/selector.js +2 -2
- package/src/less/components/_import.less +1 -1
- package/src/less/theme/_import.less +1 -1
- package/src/less/theme/button.less +2 -1
- package/src/less/theme/modal.less +15 -2
- package/src/scss/components/_import.scss +1 -1
- package/src/scss/mixins-theme.scss +13 -1
- package/src/scss/theme/_import.scss +1 -1
- package/src/scss/theme/button.scss +1 -1
- package/src/scss/theme/modal.scss +3 -2
- package/src/scss/variables-theme.scss +3 -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.20-dev.
|
|
5
|
+
"version": "3.15.20-dev.bf544e984",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -349,7 +349,7 @@ function untrackScroll() {
|
|
|
349
349
|
|
|
350
350
|
function appendDrag(container, element) {
|
|
351
351
|
let clone;
|
|
352
|
-
if (
|
|
352
|
+
if (isTag(element, 'li', 'tr')) {
|
|
353
353
|
clone = $('<div>');
|
|
354
354
|
append(clone, element.cloneNode(true).children);
|
|
355
355
|
for (const attribute of element.getAttributeNames()) {
|
package/src/js/core/img.js
CHANGED
|
@@ -100,7 +100,7 @@ export default {
|
|
|
100
100
|
function setSrcAttrs(el, src) {
|
|
101
101
|
if (isImg(el)) {
|
|
102
102
|
const parentNode = parent(el);
|
|
103
|
-
const elements =
|
|
103
|
+
const elements = isTag(parentNode, 'picture') ? children(parentNode) : [el];
|
|
104
104
|
elements.forEach((el) => setSourceProps(el, el));
|
|
105
105
|
} else if (src) {
|
|
106
106
|
const change = !includes(el.style.backgroundImage, src);
|
|
@@ -175,10 +175,6 @@ function ensureSrcAttribute(el) {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
function isPicture(el) {
|
|
179
|
-
return isTag(el, 'picture');
|
|
180
|
-
}
|
|
181
|
-
|
|
182
178
|
function isImg(el) {
|
|
183
179
|
return isTag(el, 'img');
|
|
184
180
|
}
|
package/src/js/util/dom.js
CHANGED
|
@@ -12,8 +12,8 @@ export function ready(fn) {
|
|
|
12
12
|
once(document, 'DOMContentLoaded', fn);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export function isTag(element,
|
|
16
|
-
return element?.tagName?.toLowerCase() === tagName.toLowerCase();
|
|
15
|
+
export function isTag(element, ...tagNames) {
|
|
16
|
+
return tagNames.some((tagName) => element?.tagName?.toLowerCase() === tagName.toLowerCase());
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export function empty(element) {
|
package/src/js/util/position.js
CHANGED
|
@@ -159,7 +159,7 @@ function getScrollArea(element, target, viewportOffset, i) {
|
|
|
159
159
|
|
|
160
160
|
if (['auto', 'scroll'].includes(css(scrollElement, `overflow-${axis}`))) {
|
|
161
161
|
viewport[start] -= scrollElement[`scroll${ucfirst(start)}`];
|
|
162
|
-
viewport[end] = scrollElement[`scroll${ucfirst(prop)}`];
|
|
162
|
+
viewport[end] = viewport[start] + scrollElement[`scroll${ucfirst(prop)}`];
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
viewport[start] += viewportOffset;
|
package/src/js/util/selector.js
CHANGED
|
@@ -11,11 +11,11 @@ export function queryAll(selector, context) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export function find(selector, context) {
|
|
14
|
-
return toNode(_query(selector, context, 'querySelector'));
|
|
14
|
+
return toNode(_query(selector, toNode(context), 'querySelector'));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export function findAll(selector, context) {
|
|
18
|
-
return toNodes(_query(selector, context, 'querySelectorAll'));
|
|
18
|
+
return toNodes(_query(selector, toNode(context), 'querySelectorAll'));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
// JavaScript
|
|
40
40
|
@import "accordion.less";
|
|
41
41
|
@import "drop.less"; // After: Card
|
|
42
|
-
@import "dropdown.less"; // After: Card
|
|
43
42
|
@import "dropbar.less";
|
|
44
43
|
@import "modal.less"; // After: Close
|
|
45
44
|
@import "slideshow.less";
|
|
@@ -70,6 +69,7 @@
|
|
|
70
69
|
@import "thumbnav.less";
|
|
71
70
|
@import "iconnav.less";
|
|
72
71
|
|
|
72
|
+
@import "dropdown.less"; // After: Card, Nav
|
|
73
73
|
@import "lightbox.less"; // After: Close, Slidenav
|
|
74
74
|
|
|
75
75
|
// Utilities
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
// JavaScript
|
|
39
39
|
@import "accordion.less";
|
|
40
40
|
@import "drop.less";
|
|
41
|
-
@import "dropdown.less";
|
|
42
41
|
@import "dropbar.less";
|
|
43
42
|
@import "modal.less";
|
|
44
43
|
@import "slider.less";
|
|
@@ -64,6 +63,7 @@
|
|
|
64
63
|
@import "thumbnav.less";
|
|
65
64
|
@import "iconnav.less";
|
|
66
65
|
|
|
66
|
+
@import "dropdown.less";
|
|
67
67
|
@import "lightbox.less";
|
|
68
68
|
|
|
69
69
|
// Utilities
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
@button-disabled-border: @global-border;
|
|
38
38
|
|
|
39
39
|
@button-text-border-width: @global-border-width;
|
|
40
|
-
@button-text-border:
|
|
40
|
+
@button-text-border: currentColor;
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
// Component
|
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
*/
|
|
170
170
|
|
|
171
171
|
.uk-button-group .uk-button:hover,
|
|
172
|
+
.uk-button-group .uk-button:focus,
|
|
172
173
|
.uk-button-group .uk-button:active,
|
|
173
174
|
.uk-button-group .uk-button.uk-active {
|
|
174
175
|
position: relative;
|
|
@@ -20,9 +20,11 @@
|
|
|
20
20
|
@modal-footer-border-width: @global-border-width;
|
|
21
21
|
@modal-footer-border: @global-border;
|
|
22
22
|
|
|
23
|
-
@modal-close-full-padding:
|
|
23
|
+
@modal-close-full-padding: 10px;
|
|
24
24
|
@modal-close-full-background: @modal-dialog-background;
|
|
25
25
|
|
|
26
|
+
@modal-close-full-padding-m: @global-margin;
|
|
27
|
+
|
|
26
28
|
|
|
27
29
|
// Component
|
|
28
30
|
// ========================================================================
|
|
@@ -86,4 +88,15 @@
|
|
|
86
88
|
// Miscellaneous
|
|
87
89
|
// ========================================================================
|
|
88
90
|
|
|
89
|
-
.hook-modal-misc() {
|
|
91
|
+
.hook-modal-misc() {
|
|
92
|
+
|
|
93
|
+
/* Tablet landscape and bigger */
|
|
94
|
+
@media (min-width: @breakpoint-medium) {
|
|
95
|
+
|
|
96
|
+
.uk-modal-close-full {
|
|
97
|
+
padding: @modal-close-full-padding-m;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
}
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
// JavaScript
|
|
40
40
|
@import "accordion.scss";
|
|
41
41
|
@import "drop.scss"; // After: Card
|
|
42
|
-
@import "dropdown.scss"; // After: Card
|
|
43
42
|
@import "dropbar.scss";
|
|
44
43
|
@import "modal.scss"; // After: Close
|
|
45
44
|
@import "slideshow.scss";
|
|
@@ -70,6 +69,7 @@
|
|
|
70
69
|
@import "thumbnav.scss";
|
|
71
70
|
@import "iconnav.scss";
|
|
72
71
|
|
|
72
|
+
@import "dropdown.scss"; // After: Card, Nav
|
|
73
73
|
@import "lightbox.scss"; // After: Close, Slidenav
|
|
74
74
|
|
|
75
75
|
// Utilities
|
|
@@ -389,6 +389,7 @@
|
|
|
389
389
|
*/
|
|
390
390
|
|
|
391
391
|
.uk-button-group .uk-button:hover,
|
|
392
|
+
.uk-button-group .uk-button:focus,
|
|
392
393
|
.uk-button-group .uk-button:active,
|
|
393
394
|
.uk-button-group .uk-button.uk-active {
|
|
394
395
|
position: relative;
|
|
@@ -1756,7 +1757,18 @@
|
|
|
1756
1757
|
background: $modal-close-full-background;
|
|
1757
1758
|
}
|
|
1758
1759
|
@mixin hook-modal-close-full-hover(){}
|
|
1759
|
-
@mixin hook-modal-misc(){
|
|
1760
|
+
@mixin hook-modal-misc(){
|
|
1761
|
+
|
|
1762
|
+
/* Tablet landscape and bigger */
|
|
1763
|
+
@media (min-width: $breakpoint-medium) {
|
|
1764
|
+
|
|
1765
|
+
.uk-modal-close-full {
|
|
1766
|
+
padding: $modal-close-full-padding-m;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
}
|
|
1760
1772
|
@mixin hook-nav-sub(){}
|
|
1761
1773
|
@mixin hook-nav-header(){}
|
|
1762
1774
|
@mixin hook-nav-divider(){}
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
// JavaScript
|
|
39
39
|
@import "accordion.scss";
|
|
40
40
|
@import "drop.scss";
|
|
41
|
-
@import "dropdown.scss";
|
|
42
41
|
@import "dropbar.scss";
|
|
43
42
|
@import "modal.scss";
|
|
44
43
|
@import "slider.scss";
|
|
@@ -64,6 +63,7 @@
|
|
|
64
63
|
@import "thumbnav.scss";
|
|
65
64
|
@import "iconnav.scss";
|
|
66
65
|
|
|
66
|
+
@import "dropdown.scss";
|
|
67
67
|
@import "lightbox.scss";
|
|
68
68
|
|
|
69
69
|
// Utilities
|
|
@@ -37,7 +37,7 @@ $button-default-active-border: darken($global-border, 30%) !de
|
|
|
37
37
|
$button-disabled-border: $global-border !default;
|
|
38
38
|
|
|
39
39
|
$button-text-border-width: $global-border-width !default;
|
|
40
|
-
$button-text-border:
|
|
40
|
+
$button-text-border: currentColor !default;
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
// Component
|
|
@@ -20,9 +20,11 @@ $modal-header-border: $global-border !default;
|
|
|
20
20
|
$modal-footer-border-width: $global-border-width !default;
|
|
21
21
|
$modal-footer-border: $global-border !default;
|
|
22
22
|
|
|
23
|
-
$modal-close-full-padding:
|
|
23
|
+
$modal-close-full-padding: 10px !default;
|
|
24
24
|
$modal-close-full-background: $modal-dialog-background !default;
|
|
25
25
|
|
|
26
|
+
$modal-close-full-padding-m: $global-margin !default;
|
|
27
|
+
|
|
26
28
|
|
|
27
29
|
// Component
|
|
28
30
|
// ========================================================================
|
|
@@ -81,4 +83,3 @@ $modal-close-full-background: $modal-dialog-background !defaul
|
|
|
81
83
|
// Miscellaneous
|
|
82
84
|
// ========================================================================
|
|
83
85
|
|
|
84
|
-
// @mixin hook-modal-misc(){}
|
|
@@ -1169,7 +1169,7 @@ $button-default-hover-border: darken($global-border, 20%) !default;
|
|
|
1169
1169
|
$button-default-active-border: darken($global-border, 30%) !default;
|
|
1170
1170
|
$button-disabled-border: $global-border !default;
|
|
1171
1171
|
$button-text-border-width: $global-border-width !default;
|
|
1172
|
-
$button-text-border:
|
|
1172
|
+
$button-text-border: currentColor !default;
|
|
1173
1173
|
$card-badge-border-radius: 2px !default;
|
|
1174
1174
|
$card-badge-text-transform: uppercase !default;
|
|
1175
1175
|
$card-hover-box-shadow: $global-large-box-shadow !default;
|
|
@@ -1226,8 +1226,9 @@ $modal-header-border-width: $global-border-width !default;
|
|
|
1226
1226
|
$modal-header-border: $global-border !default;
|
|
1227
1227
|
$modal-footer-border-width: $global-border-width !default;
|
|
1228
1228
|
$modal-footer-border: $global-border !default;
|
|
1229
|
-
$modal-close-full-padding:
|
|
1229
|
+
$modal-close-full-padding: 10px !default;
|
|
1230
1230
|
$modal-close-full-background: $modal-dialog-background !default;
|
|
1231
|
+
$modal-close-full-padding-m: $global-margin !default;
|
|
1231
1232
|
$nav-background-margin-top: 0 !default;
|
|
1232
1233
|
$nav-background-item-padding-horizontal: 10px !default;
|
|
1233
1234
|
$nav-background-item-padding-vertical: 10px !default;
|