uikit 3.17.1-dev.7c0766a6f → 3.17.1-dev.d66d4435e
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 +1 -0
- package/dist/css/uikit-core-rtl.css +20 -4
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +20 -4
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +20 -4
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +20 -4
- 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 +5 -5
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +5 -5
- 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 +5 -5
- 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 +2 -21
- 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 +6 -25
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/cover.js +1 -21
- package/src/js/mixin/parallax.js +4 -7
- package/src/less/components/cover.less +21 -3
- package/src/scss/components/cover.scss +21 -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.17.1-dev.
|
|
5
|
+
"version": "3.17.1-dev.d66d4435e",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/cover.js
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { css, Dimensions, isTag, parent } from 'uikit-util';
|
|
2
2
|
import { resize } from '../api/observables';
|
|
3
3
|
import Video from './video';
|
|
4
4
|
|
|
5
|
-
const coverProps = {
|
|
6
|
-
top: 0, // resets the css from [uk-cover]
|
|
7
|
-
left: 0, // resets the css from [uk-cover]
|
|
8
|
-
width: '100%',
|
|
9
|
-
height: '100%',
|
|
10
|
-
transform: 'none',
|
|
11
|
-
objectFit: 'cover',
|
|
12
|
-
objectPosition: 'center',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
5
|
export default {
|
|
16
6
|
mixins: [Video],
|
|
17
7
|
|
|
@@ -37,16 +27,6 @@ export default {
|
|
|
37
27
|
|
|
38
28
|
connected() {
|
|
39
29
|
this._useObjectFit = isTag(this.$el, 'img', 'video');
|
|
40
|
-
|
|
41
|
-
if (this._useObjectFit) {
|
|
42
|
-
css(this.$el, coverProps);
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
disconnected() {
|
|
47
|
-
if (this._useObjectFit) {
|
|
48
|
-
attr(this.$el, 'style', '');
|
|
49
|
-
}
|
|
50
30
|
},
|
|
51
31
|
|
|
52
32
|
update: {
|
package/src/js/mixin/parallax.js
CHANGED
|
@@ -76,14 +76,11 @@ export default {
|
|
|
76
76
|
},
|
|
77
77
|
|
|
78
78
|
getCss(percent) {
|
|
79
|
-
const css = {
|
|
79
|
+
const css = {};
|
|
80
80
|
for (const prop in this.props) {
|
|
81
81
|
this.props[prop](css, clamp(percent));
|
|
82
82
|
}
|
|
83
|
-
css.willChange = Object.keys(css)
|
|
84
|
-
.filter((key) => css[key] !== '')
|
|
85
|
-
.map(propName)
|
|
86
|
-
.join(',');
|
|
83
|
+
css.willChange = Object.keys(css).map(propName).join(',');
|
|
87
84
|
return css;
|
|
88
85
|
},
|
|
89
86
|
},
|
|
@@ -112,7 +109,7 @@ function transformFn(prop, el, stops) {
|
|
|
112
109
|
stops = parseStops(stops, transformFn);
|
|
113
110
|
|
|
114
111
|
return (css, percent) => {
|
|
115
|
-
css.transform
|
|
112
|
+
css.transform = `${css.transform || ''} ${prop}(${getValue(stops, percent)}${unit})`;
|
|
116
113
|
};
|
|
117
114
|
}
|
|
118
115
|
|
|
@@ -155,7 +152,7 @@ function filterFn(prop, el, stops) {
|
|
|
155
152
|
|
|
156
153
|
return (css, percent) => {
|
|
157
154
|
const value = getValue(stops, percent);
|
|
158
|
-
css.filter
|
|
155
|
+
css.filter = `${css.filter || ''} ${prop}(${value + unit})`;
|
|
159
156
|
};
|
|
160
157
|
}
|
|
161
158
|
|
|
@@ -13,7 +13,24 @@
|
|
|
13
13
|
========================================================================== */
|
|
14
14
|
|
|
15
15
|
/*
|
|
16
|
-
* Works with
|
|
16
|
+
* Works with embedded content
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
img[uk-cover],
|
|
20
|
+
video[uk-cover],
|
|
21
|
+
img[data-uk-cover],
|
|
22
|
+
video[data-uk-cover] {
|
|
23
|
+
left: 0;
|
|
24
|
+
top: 0;
|
|
25
|
+
position: absolute;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
object-fit: cover;
|
|
29
|
+
object-position: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
* Works with iframes
|
|
17
34
|
* 1. Use attribute to apply transform instantly. Needed if transform is transitioned.
|
|
18
35
|
* 2. Reset responsiveness for embedded content
|
|
19
36
|
* 3. Center object
|
|
@@ -22,8 +39,9 @@
|
|
|
22
39
|
*/
|
|
23
40
|
|
|
24
41
|
/* 1 */
|
|
25
|
-
[uk-cover],
|
|
26
|
-
[data-uk-cover] {
|
|
42
|
+
:not(img,video)[uk-cover],
|
|
43
|
+
:not(img,video)[data-uk-cover] {
|
|
44
|
+
pointer-events: none;
|
|
27
45
|
/* 2 */
|
|
28
46
|
max-width: none;
|
|
29
47
|
/* 3 */
|
|
@@ -13,7 +13,24 @@
|
|
|
13
13
|
========================================================================== */
|
|
14
14
|
|
|
15
15
|
/*
|
|
16
|
-
* Works with
|
|
16
|
+
* Works with embedded content
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
img[uk-cover],
|
|
20
|
+
video[uk-cover],
|
|
21
|
+
img[data-uk-cover],
|
|
22
|
+
video[data-uk-cover] {
|
|
23
|
+
left: 0;
|
|
24
|
+
top: 0;
|
|
25
|
+
position: absolute;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
object-fit: cover;
|
|
29
|
+
object-position: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
* Works with iframes
|
|
17
34
|
* 1. Use attribute to apply transform instantly. Needed if transform is transitioned.
|
|
18
35
|
* 2. Reset responsiveness for embedded content
|
|
19
36
|
* 3. Center object
|
|
@@ -22,8 +39,9 @@
|
|
|
22
39
|
*/
|
|
23
40
|
|
|
24
41
|
/* 1 */
|
|
25
|
-
[uk-cover],
|
|
26
|
-
[data-uk-cover] {
|
|
42
|
+
:not(img,video)[uk-cover],
|
|
43
|
+
:not(img,video)[data-uk-cover] {
|
|
44
|
+
pointer-events: none;
|
|
27
45
|
/* 2 */
|
|
28
46
|
max-width: none;
|
|
29
47
|
/* 3 */
|