uikit 3.10.0 → 3.10.1
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/.eslintrc.json +0 -1
- package/CHANGELOG.md +17 -7
- package/CONTRIBUTING.md +1 -1
- package/README.md +4 -2
- package/build/.eslintrc.json +10 -1
- package/build/build.js +5 -5
- package/build/less.js +1 -2
- package/build/scss.js +1 -1
- package/dist/css/uikit-core-rtl.css +8 -5
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +8 -5
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +8 -5
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +8 -5
- 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 +5 -5
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +2 -2
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +2 -2
- 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 +2 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +3 -9
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +2 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +3 -9
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +6 -2
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +5 -5
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +5 -4
- 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 -22
- 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 +36 -36
- package/dist/js/uikit.min.js +1 -1
- package/package.json +3 -3
- package/src/js/api/component.js +3 -3
- package/src/js/api/state.js +3 -3
- package/src/js/components/slider-parallax.js +1 -7
- package/src/js/components/slideshow.js +4 -0
- package/src/js/components/tooltip.js +2 -1
- package/src/js/core/navbar.js +1 -1
- package/src/js/core/sticky.js +1 -1
- package/src/js/core/toggle.js +4 -3
- package/src/js/mixin/animate.js +4 -4
- package/src/js/mixin/internal/slideshow-animations.js +1 -1
- package/src/js/mixin/parallax.js +1 -1
- package/src/js/mixin/position.js +3 -3
- package/src/js/util/dom.js +3 -3
- package/src/js/util/lang.js +1 -1
- package/src/js/util/viewport.js +3 -3
- package/src/less/components/cover.less +4 -2
- package/src/less/components/divider.less +1 -1
- package/src/less/components/utility.less +2 -1
- package/src/scss/components/cover.scss +4 -2
- package/src/scss/components/divider.scss +1 -1
- package/src/scss/components/utility.scss +2 -1
- package/tests/base.html +12 -12
- package/tests/button.html +1 -1
- package/tests/cover.html +5 -5
- package/tests/drop.html +2 -2
- package/tests/dropdown.html +1 -1
- package/tests/flex.html +1 -1
- package/tests/grid-masonry.html +1 -1
- package/tests/grid-parallax.html +1 -1
- package/tests/grid.html +1 -1
- package/tests/height.html +2 -2
- package/tests/js/index.js +3 -8
- package/tests/margin.html +1 -1
- package/tests/modal.html +2 -2
- package/tests/navbar.html +2 -2
- package/tests/padding.html +1 -1
- package/tests/parallax.html +1 -1
- package/tests/slider.html +1 -1
- package/tests/slideshow.html +2 -2
- package/tests/sticky.html +2 -2
- package/tests/switcher.html +1 -1
- package/tests/tab.html +1 -1
- package/tests/utility.html +1 -1
- package/tests/video.html +3 -3
- package/tests/width.html +1 -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.10.
|
|
5
|
+
"version": "3.10.1",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"clean-css": "^5.2.2",
|
|
43
43
|
"dateformat": "^5.0.2",
|
|
44
44
|
"esbuild": "^0.14.11",
|
|
45
|
-
"eslint": "^8.
|
|
45
|
+
"eslint": "^8.7.0",
|
|
46
46
|
"fs-extra": "^10.0.0",
|
|
47
47
|
"glob": "^7.2.0",
|
|
48
48
|
"inquirer": "^8.2.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"minimist": "^1.2.5",
|
|
51
51
|
"number-precision": "^1.5.1",
|
|
52
52
|
"p-limit": "^4.0.0",
|
|
53
|
-
"rollup": "^2.
|
|
53
|
+
"rollup": "^2.64.0",
|
|
54
54
|
"rollup-plugin-esbuild": "^4.8.2",
|
|
55
55
|
"rollup-plugin-html": "^0.2.1",
|
|
56
56
|
"rollup-plugin-modify": "^3.0.0",
|
package/src/js/api/component.js
CHANGED
package/src/js/api/state.js
CHANGED
|
@@ -87,12 +87,12 @@ export default function (UIkit) {
|
|
|
87
87
|
|
|
88
88
|
events.forEach(event => {
|
|
89
89
|
|
|
90
|
-
if (
|
|
90
|
+
if (hasOwn(event, 'handler')) {
|
|
91
|
+
registerEvent(this, event);
|
|
92
|
+
} else {
|
|
91
93
|
for (const key in event) {
|
|
92
94
|
registerEvent(this, event[key], key);
|
|
93
95
|
}
|
|
94
|
-
} else {
|
|
95
|
-
registerEvent(this, event);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
});
|
package/src/js/core/navbar.js
CHANGED
package/src/js/core/sticky.js
CHANGED
package/src/js/core/toggle.js
CHANGED
|
@@ -2,6 +2,8 @@ import Media from '../mixin/media';
|
|
|
2
2
|
import Togglable from '../mixin/togglable';
|
|
3
3
|
import {attr, closest, hasClass, includes, isBoolean, isFocusable, isTouch, matches, once, pointerDown, pointerEnter, pointerLeave, queryAll, trigger, within} from 'uikit-util';
|
|
4
4
|
|
|
5
|
+
const KEY_SPACE = 32;
|
|
6
|
+
|
|
5
7
|
export default {
|
|
6
8
|
|
|
7
9
|
mixins: [Media, Togglable],
|
|
@@ -119,12 +121,11 @@ export default {
|
|
|
119
121
|
name: 'keydown',
|
|
120
122
|
|
|
121
123
|
filter() {
|
|
122
|
-
return includes(this.mode, 'click');
|
|
124
|
+
return includes(this.mode, 'click') && this.$el.tagName !== 'INPUT';
|
|
123
125
|
},
|
|
124
126
|
|
|
125
127
|
handler(e) {
|
|
126
|
-
|
|
127
|
-
if (e.keyCode === 32) {
|
|
128
|
+
if (e.keyCode === KEY_SPACE) {
|
|
128
129
|
e.preventDefault();
|
|
129
130
|
this.$el.click();
|
|
130
131
|
}
|
package/src/js/mixin/animate.js
CHANGED
|
@@ -23,12 +23,12 @@ export default {
|
|
|
23
23
|
? fade
|
|
24
24
|
: name === 'delayed-fade'
|
|
25
25
|
? (...args) => fade(...args, 40)
|
|
26
|
-
:
|
|
27
|
-
?
|
|
26
|
+
: name
|
|
27
|
+
? slide
|
|
28
|
+
: () => {
|
|
28
29
|
action();
|
|
29
30
|
return Promise.resolve();
|
|
30
|
-
}
|
|
31
|
-
: slide;
|
|
31
|
+
};
|
|
32
32
|
|
|
33
33
|
return animationFn(action, target, this.duration)
|
|
34
34
|
.then(() => this.$update(target, 'resize'), noop);
|
|
@@ -32,7 +32,7 @@ export function translated(el) {
|
|
|
32
32
|
|
|
33
33
|
export function translate(value = 0, unit = '%') {
|
|
34
34
|
value += value ? unit : '';
|
|
35
|
-
return isIE ? `translateX(${value})` : `translate3d(${value}, 0, 0)`; // currently not translate3d in IE, translate3d within translate3d does not work while transitioning
|
|
35
|
+
return isIE ? `translateX(${value})` : `translate3d(${value}, 0, 0)`; // currently, not translate3d in IE, translate3d within translate3d does not work while transitioning
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export function scale3d(value) {
|
package/src/js/mixin/parallax.js
CHANGED
package/src/js/mixin/position.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {$, flipPosition, offset as getOffset,
|
|
1
|
+
import {$, flipPosition, offset as getOffset, isNumeric, isRtl, positionAt, removeClasses, toggleClass} from 'uikit-util';
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
},
|
|
11
11
|
|
|
12
12
|
data: {
|
|
13
|
-
pos: `bottom-${
|
|
13
|
+
pos: `bottom-${isRtl ? 'right' : 'left'}`,
|
|
14
14
|
flip: true,
|
|
15
15
|
offset: false,
|
|
16
16
|
clsPos: ''
|
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
computed: {
|
|
20
20
|
|
|
21
21
|
pos({pos}) {
|
|
22
|
-
return
|
|
22
|
+
return pos.split('-').concat('center').slice(0, 2);
|
|
23
23
|
},
|
|
24
24
|
|
|
25
25
|
dir() {
|
package/src/js/util/dom.js
CHANGED
|
@@ -30,10 +30,10 @@ export function prepend(parent, element) {
|
|
|
30
30
|
|
|
31
31
|
parent = $(parent);
|
|
32
32
|
|
|
33
|
-
if (
|
|
34
|
-
return append(parent, element);
|
|
35
|
-
} else {
|
|
33
|
+
if (parent.hasChildNodes()) {
|
|
36
34
|
return insertNodes(element, element => parent.insertBefore(element, parent.firstChild));
|
|
35
|
+
} else {
|
|
36
|
+
return append(parent, element);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
package/src/js/util/lang.js
CHANGED
package/src/js/util/viewport.js
CHANGED
|
@@ -82,10 +82,10 @@ export function scrollIntoView(element, {offset: offsetBy = 0} = {}) {
|
|
|
82
82
|
scrollTop(element, scroll + top * percent);
|
|
83
83
|
|
|
84
84
|
// scroll more if we have not reached our destination
|
|
85
|
-
if (percent
|
|
86
|
-
requestAnimationFrame(step);
|
|
87
|
-
} else {
|
|
85
|
+
if (percent === 1) {
|
|
88
86
|
resolve();
|
|
87
|
+
} else {
|
|
88
|
+
requestAnimationFrame(step);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
})();
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
/* 1 */
|
|
25
|
-
[uk-cover]
|
|
25
|
+
[uk-cover],
|
|
26
|
+
[data-uk-cover] {
|
|
26
27
|
/* 2 */
|
|
27
28
|
max-width: none;
|
|
28
29
|
/* 3 */
|
|
@@ -34,7 +35,8 @@
|
|
|
34
35
|
transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
iframe
|
|
38
|
+
iframe[uk-cover],
|
|
39
|
+
iframe[data-uk-cover] { pointer-events: none; }
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
/* Container
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
/* 1 */
|
|
25
|
-
[uk-cover]
|
|
25
|
+
[uk-cover],
|
|
26
|
+
[data-uk-cover] {
|
|
26
27
|
/* 2 */
|
|
27
28
|
max-width: none;
|
|
28
29
|
/* 3 */
|
|
@@ -34,7 +35,8 @@
|
|
|
34
35
|
transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
iframe
|
|
38
|
+
iframe[uk-cover],
|
|
39
|
+
iframe[data-uk-cover] { pointer-events: none; }
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
/* Container
|
|
@@ -114,7 +114,7 @@ $divider-vertical-border: $global-border !default;
|
|
|
114
114
|
========================================================================== */
|
|
115
115
|
|
|
116
116
|
.uk-divider-vertical {
|
|
117
|
-
width:
|
|
117
|
+
width: max-content;
|
|
118
118
|
height: $divider-vertical-height;
|
|
119
119
|
margin-left: auto;
|
|
120
120
|
margin-right: auto;
|
|
@@ -247,7 +247,8 @@ $dragover-box-shadow: 0 0 20px rgba(100,100,100,0.3)
|
|
|
247
247
|
* Fix initial iframe width. Without the viewport is expanded on iOS devices
|
|
248
248
|
*/
|
|
249
249
|
|
|
250
|
-
[uk-responsive]
|
|
250
|
+
[uk-responsive],
|
|
251
|
+
[data-uk-responsive] { max-width: 100%; }
|
|
251
252
|
|
|
252
253
|
|
|
253
254
|
/* Border
|
package/tests/base.html
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
<div uk-grid>
|
|
16
16
|
<div class="uk-width-2-3@m">
|
|
17
17
|
|
|
18
|
-
<h1>
|
|
18
|
+
<h1>this is an H1 heading</h1>
|
|
19
19
|
|
|
20
20
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
|
|
21
21
|
|
|
22
22
|
<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
|
|
23
23
|
|
|
24
|
-
<h2>
|
|
24
|
+
<h2>this is an H2 heading</h2>
|
|
25
25
|
|
|
26
26
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
|
|
27
27
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
38
38
|
|
|
39
|
-
<h3>
|
|
39
|
+
<h3>this is an H3 heading</h3>
|
|
40
40
|
|
|
41
41
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
|
|
46
46
|
|
|
47
|
-
<h4>
|
|
47
|
+
<h4>this is an H4 heading</h4>
|
|
48
48
|
|
|
49
49
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
|
|
50
50
|
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
|
|
57
57
|
|
|
58
|
-
<h5>
|
|
58
|
+
<h5>this is an H5 heading</h5>
|
|
59
59
|
|
|
60
60
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
|
|
65
65
|
|
|
66
|
-
<h6>
|
|
66
|
+
<h6>this is an H6 heading</h6>
|
|
67
67
|
|
|
68
68
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
|
|
69
69
|
|
|
@@ -71,27 +71,27 @@
|
|
|
71
71
|
|
|
72
72
|
<hr>
|
|
73
73
|
|
|
74
|
-
<h1>
|
|
74
|
+
<h1>this is an H1 heading<br>with some more text</h1>
|
|
75
75
|
|
|
76
76
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
77
77
|
|
|
78
|
-
<h2>
|
|
78
|
+
<h2>this is an H2 heading<br>with some more text</h2>
|
|
79
79
|
|
|
80
80
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
81
81
|
|
|
82
|
-
<h3>
|
|
82
|
+
<h3>this is an H3 heading<br>with some more text</h3>
|
|
83
83
|
|
|
84
84
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
85
85
|
|
|
86
|
-
<h4>
|
|
86
|
+
<h4>this is an H4 heading<br>with some more text</h4>
|
|
87
87
|
|
|
88
88
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
89
89
|
|
|
90
|
-
<h5>
|
|
90
|
+
<h5>this is an H5 heading<br>with some more text</h5>
|
|
91
91
|
|
|
92
92
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
93
93
|
|
|
94
|
-
<h6>
|
|
94
|
+
<h6>this is an H6 heading<br>with some more text</h6>
|
|
95
95
|
|
|
96
96
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
97
97
|
|
package/tests/button.html
CHANGED
package/tests/cover.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
7
|
<title>Cover - UIkit tests</title>
|
|
8
8
|
<script src="js/test.js"></script>
|
|
9
|
-
<style
|
|
9
|
+
<style>
|
|
10
10
|
|
|
11
11
|
.test-height { height: 300px; }
|
|
12
12
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<h3>Iframe (YouTube)</h3>
|
|
52
52
|
|
|
53
53
|
<div class="test-height uk-cover-container uk-light">
|
|
54
|
-
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&controls=0&showinfo=0&rel=0&loop=1&modestbranding=1&wmode=transparent&playsinline=1" width="1920" height="1080"
|
|
54
|
+
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&controls=0&showinfo=0&rel=0&loop=1&modestbranding=1&wmode=transparent&playsinline=1" width="1920" height="1080" allowfullscreen uk-cover></iframe>
|
|
55
55
|
<div class="uk-position-cover uk-flex uk-flex-center uk-flex-middle">
|
|
56
56
|
<h1>Heading</h1>
|
|
57
57
|
</div>
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
<h3>Iframe (Vimeo)</h3>
|
|
64
64
|
|
|
65
65
|
<div class="test-height uk-cover-container uk-light">
|
|
66
|
-
<iframe src="https://player.vimeo.com/video/1084537?title=0&byline=0&autoplay=1&loop=1&setVolume=0" width="500" height="281"
|
|
66
|
+
<iframe src="https://player.vimeo.com/video/1084537?title=0&byline=0&autoplay=1&loop=1&setVolume=0" width="500" height="281" allowfullscreen uk-cover></iframe>
|
|
67
67
|
<div class="uk-position-cover uk-flex uk-flex-center uk-flex-middle">
|
|
68
68
|
<h1>Heading</h1>
|
|
69
69
|
</div>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
|
|
95
95
|
<div class="uk-cover-container uk-light">
|
|
96
96
|
<canvas width="600" height="400"></canvas>
|
|
97
|
-
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&controls=0&showinfo=0&rel=0&loop=1&modestbranding=1&wmode=transparent&playsinline=1" width="1920" height="1080"
|
|
97
|
+
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&controls=0&showinfo=0&rel=0&loop=1&modestbranding=1&wmode=transparent&playsinline=1" width="1920" height="1080" allowfullscreen uk-cover></iframe>
|
|
98
98
|
<div class="uk-position-cover uk-flex uk-flex-center uk-flex-middle">
|
|
99
99
|
<h1>Heading</h1>
|
|
100
100
|
</div>
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
<h3>Iframe (YouTube)</h3>
|
|
124
124
|
|
|
125
125
|
<div class="uk-cover-container uk-light" uk-height-viewport>
|
|
126
|
-
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&controls=0&showinfo=0&rel=0&loop=1&modestbranding=1&wmode=transparent&playsinline=1" width="1920" height="1080"
|
|
126
|
+
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&controls=0&showinfo=0&rel=0&loop=1&modestbranding=1&wmode=transparent&playsinline=1" width="1920" height="1080" allowfullscreen uk-cover></iframe>
|
|
127
127
|
<div class="uk-position-cover uk-flex uk-flex-center uk-flex-middle">
|
|
128
128
|
<h1>Heading</h1>
|
|
129
129
|
</div>
|
package/tests/drop.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
7
|
<title>Drop - UIkit tests</title>
|
|
8
8
|
<script src="js/test.js"></script>
|
|
9
|
-
<style
|
|
9
|
+
<style>
|
|
10
10
|
|
|
11
11
|
.boundary { border: 1px dashed rgba(0,0,0,0.2); }
|
|
12
12
|
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
<td><code>boundary</code></td>
|
|
382
382
|
<td>CSS selector</td>
|
|
383
383
|
<td>true</td>
|
|
384
|
-
<td>Referenced element to keep Drop's visibility. By default it's the window.</td>
|
|
384
|
+
<td>Referenced element to keep Drop's visibility. By default, it's the window.</td>
|
|
385
385
|
</tr>
|
|
386
386
|
<tr>
|
|
387
387
|
<td><code>boundary-align</code></td>
|
package/tests/dropdown.html
CHANGED
package/tests/flex.html
CHANGED
package/tests/grid-masonry.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
7
|
<title>Grid Masonry - UIkit tests</title>
|
|
8
8
|
<script src="js/test.js"></script>
|
|
9
|
-
<style
|
|
9
|
+
<style>
|
|
10
10
|
|
|
11
11
|
:nth-child(7n-6) > .uk-panel { height: 120px; background: rgba(0,0,0,0.1); }
|
|
12
12
|
:nth-child(7n-5) > .uk-panel { height: 180px; background: rgba(0,0,0,0.15); }
|
package/tests/grid-parallax.html
CHANGED
package/tests/grid.html
CHANGED
package/tests/height.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
7
|
<title>Height - UIkit tests</title>
|
|
8
8
|
<script src="js/test.js"></script>
|
|
9
|
-
<style
|
|
9
|
+
<style>
|
|
10
10
|
|
|
11
11
|
[uk-height-match] > * > .uk-panel {
|
|
12
12
|
padding: 10px;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<td><code>target</code></td>
|
|
87
87
|
<td>CSS selector</td>
|
|
88
88
|
<td><code>> *</code></td>
|
|
89
|
-
<td>Elements that should match. By default the children will match.</td>
|
|
89
|
+
<td>Elements that should match. By default, the children will match.</td>
|
|
90
90
|
</tr>
|
|
91
91
|
<tr>
|
|
92
92
|
<td><code>row</code></td>
|
package/tests/js/index.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
/* global UIkit, TESTS */
|
|
2
|
-
import {on} from '
|
|
3
|
-
import {css} from '../../src/js/util/style';
|
|
4
|
-
import {ucfirst} from '../../src/js/util/lang';
|
|
5
|
-
import {prepend} from '../../src/js/util/dom';
|
|
6
|
-
import {addClass, removeClass} from '../../src/js/util/class';
|
|
7
|
-
import {fastdom} from '../../src/js/util/fastdom';
|
|
2
|
+
import {addClass, css, fastdom, on, prepend, removeClass, ucfirst} from 'uikit-util';
|
|
8
3
|
|
|
9
4
|
const tests = TESTS;
|
|
10
5
|
const storage = window.sessionStorage;
|
|
@@ -105,7 +100,7 @@ on(window, 'load', () => setTimeout(() => fastdom.write(() => {
|
|
|
105
100
|
|
|
106
101
|
if ($inverse.value) {
|
|
107
102
|
|
|
108
|
-
removeClass(document.querySelectorAll('*'),
|
|
103
|
+
removeClass(document.querySelectorAll('*'),
|
|
109
104
|
'uk-navbar-container',
|
|
110
105
|
'uk-card-default',
|
|
111
106
|
'uk-card-muted',
|
|
@@ -121,7 +116,7 @@ on(window, 'load', () => setTimeout(() => fastdom.write(() => {
|
|
|
121
116
|
'uk-section-secondary',
|
|
122
117
|
'uk-overlay-default',
|
|
123
118
|
'uk-overlay-primary'
|
|
124
|
-
|
|
119
|
+
);
|
|
125
120
|
|
|
126
121
|
css(docEl, 'background', $inverse.value === 'dark' ? '#fff' : '#222');
|
|
127
122
|
addClass($body, `uk-${$inverse.value}`);
|
package/tests/margin.html
CHANGED
package/tests/modal.html
CHANGED
|
@@ -384,14 +384,14 @@
|
|
|
384
384
|
<div id="modal-media-youtube" class="uk-flex-top" uk-modal>
|
|
385
385
|
<div class="uk-modal-dialog uk-width-auto uk-margin-auto-vertical">
|
|
386
386
|
<button class="uk-modal-close-outside" type="button" uk-close></button>
|
|
387
|
-
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA" width="1920" height="1080"
|
|
387
|
+
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA" width="1920" height="1080" uk-video></iframe>
|
|
388
388
|
</div>
|
|
389
389
|
</div>
|
|
390
390
|
|
|
391
391
|
<div id="modal-media-vimeo" class="uk-flex-top" uk-modal>
|
|
392
392
|
<div class="uk-modal-dialog uk-width-auto uk-margin-auto-vertical">
|
|
393
393
|
<button class="uk-modal-close-outside" type="button" uk-close></button>
|
|
394
|
-
<iframe src="https://player.vimeo.com/video/1084537" width="500" height="281"
|
|
394
|
+
<iframe src="https://player.vimeo.com/video/1084537" width="500" height="281" uk-video></iframe>
|
|
395
395
|
</div>
|
|
396
396
|
</div>
|
|
397
397
|
|