uikit 3.11.2-dev.03e47c2ff → 3.11.2-dev.06fe7f1d0
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 +5 -1
- package/dist/css/uikit-core-rtl.css +12 -6
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +12 -6
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +12 -6
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +12 -6
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +3 -3
- 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 +4 -14
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +4 -14
- 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 +8 -9
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +8 -9
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +59 -78
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +8 -9
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +23 -45
- 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 +2 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +357 -264
- 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 +414 -361
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/hooks.js +2 -2
- package/src/js/api/state.js +173 -140
- package/src/js/components/countdown.js +2 -2
- package/src/js/components/internal/slider-preload.js +4 -32
- package/src/js/components/slider.js +39 -42
- package/src/js/components/upload.js +2 -1
- package/src/js/core/accordion.js +6 -1
- package/src/js/core/core.js +2 -75
- package/src/js/core/cover.js +5 -1
- package/src/js/core/drop.js +3 -1
- package/src/js/core/form-custom.js +2 -2
- package/src/js/core/height-viewport.js +3 -0
- package/src/js/core/img.js +16 -24
- package/src/js/core/offcanvas.js +2 -1
- package/src/js/core/sticky.js +27 -33
- package/src/js/core/switcher.js +11 -3
- package/src/js/core/toggle.js +3 -1
- package/src/js/core/video.js +13 -1
- package/src/js/mixin/lazyload.js +20 -0
- package/src/js/mixin/parallax.js +8 -9
- package/src/js/mixin/slider.js +0 -6
- package/src/js/mixin/slideshow.js +0 -4
- package/src/js/mixin/swipe.js +72 -0
- package/src/js/util/index.js +1 -0
- package/src/js/util/observer.js +36 -0
- package/src/less/components/utility.less +6 -3
- package/src/scss/components/utility.scss +6 -3
- package/tests/parallax.html +2 -2
- package/tests/sticky-parallax.html +1 -1
- package/tests/utility.html +17 -0
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
// `uk-inline-*`
|
|
11
11
|
// `uk-responsive-*`
|
|
12
12
|
// `uk-preserve-width`
|
|
13
|
+
// `uk-object-*`
|
|
13
14
|
// `uk-border-*`
|
|
14
15
|
// `uk-box-shadow-*`
|
|
15
16
|
// `uk-box-shadow-bottom`
|
|
@@ -254,9 +255,11 @@
|
|
|
254
255
|
/* Object
|
|
255
256
|
========================================================================== */
|
|
256
257
|
|
|
257
|
-
.uk-object-
|
|
258
|
-
.uk-object-
|
|
259
|
-
.uk-object-
|
|
258
|
+
.uk-object-cover { object-fit: cover; }
|
|
259
|
+
.uk-object-contain { object-fit: contain; }
|
|
260
|
+
.uk-object-fill { object-fit: fill; }
|
|
261
|
+
.uk-object-none { object-fit: none; }
|
|
262
|
+
.uk-object-scale-down { object-fit: scale-down; }
|
|
260
263
|
|
|
261
264
|
/*
|
|
262
265
|
* Position
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
// `uk-inline-*`
|
|
11
11
|
// `uk-responsive-*`
|
|
12
12
|
// `uk-preserve-width`
|
|
13
|
+
// `uk-object-*`
|
|
13
14
|
// `uk-border-*`
|
|
14
15
|
// `uk-box-shadow-*`
|
|
15
16
|
// `uk-box-shadow-bottom`
|
|
@@ -254,9 +255,11 @@ $dragover-box-shadow: 0 0 20px rgba(100,100,100,0.3)
|
|
|
254
255
|
/* Object
|
|
255
256
|
========================================================================== */
|
|
256
257
|
|
|
257
|
-
.uk-object-
|
|
258
|
-
.uk-object-
|
|
259
|
-
.uk-object-
|
|
258
|
+
.uk-object-cover { object-fit: cover; }
|
|
259
|
+
.uk-object-contain { object-fit: contain; }
|
|
260
|
+
.uk-object-fill { object-fit: fill; }
|
|
261
|
+
.uk-object-none { object-fit: none; }
|
|
262
|
+
.uk-object-scale-down { object-fit: scale-down; }
|
|
260
263
|
|
|
261
264
|
/*
|
|
262
265
|
* Position
|
package/tests/parallax.html
CHANGED
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
<div class="uk-grid uk-margin-auto uk-flex-inline">
|
|
78
78
|
<div><div class="uk-card uk-card-default uk-padding-small" uk-parallax="target: #test-start-end; y: 396; easing: 0;">0 / 0</div></div>
|
|
79
79
|
<div><div class="uk-card uk-card-default uk-padding-small" uk-parallax="target: #test-start-end; start: 100%; end: 100%; y: 396; easing: 0;">100% / 100%</div></div>
|
|
80
|
-
<div><div class="uk-card uk-card-default uk-padding-small" uk-parallax="target: #test-start-end; start:
|
|
81
|
-
<div><div class="uk-card uk-card-default uk-padding-small" uk-parallax="target: #test-start-end; start: 100% +
|
|
80
|
+
<div><div class="uk-card uk-card-default uk-padding-small" uk-parallax="target: #test-start-end; start: 30vh; end: 30vh; y: 396; easing: 0;">30vh / 30vh</div></div>
|
|
81
|
+
<div><div class="uk-card uk-card-default uk-padding-small" uk-parallax="target: #test-start-end; start: 100% + 100; end: 100% + 100; y: 396; easing: 0;">100% + 100 / 100% + 100</div></div>
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
84
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div class="uk-section uk-section-primary uk-position-z-index-negative uk-flex uk-flex-center uk-flex-middle uk-text-center" uk-sticky="position: auto; bottom: +* +*" uk-height-viewport>
|
|
14
14
|
<div class="uk-container">
|
|
15
15
|
|
|
16
|
-
<h1 class="uk-heading-2xlarge">Sticky Section</h1>
|
|
16
|
+
<h1 class="uk-heading-2xlarge" uk-parallax="target: !.uk-section +* +*; end: 100%; y: -400; easing: 0;">Sticky Section</h1>
|
|
17
17
|
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
package/tests/utility.html
CHANGED
|
@@ -243,6 +243,23 @@
|
|
|
243
243
|
</div>
|
|
244
244
|
</div>
|
|
245
245
|
|
|
246
|
+
<h2>Object Fit and Position</h2>
|
|
247
|
+
|
|
248
|
+
<div class="uk-child-width-1-3@s" uk-grid>
|
|
249
|
+
<div>
|
|
250
|
+
<p>Object Fit Cover</p>
|
|
251
|
+
<img class="uk-object-cover" src="images/photo.jpg" width="1000" height="1000" alt="" style="aspect-ratio: 1 / 1;">
|
|
252
|
+
</div>
|
|
253
|
+
<div>
|
|
254
|
+
<p>Object Fit Contain</p>
|
|
255
|
+
<img class="uk-object-contain" src="images/photo.jpg" width="1000" height="1000" alt="" style="aspect-ratio: 1 / 1;">
|
|
256
|
+
</div>
|
|
257
|
+
<div>
|
|
258
|
+
<p>Object Fit Cover Left</p>
|
|
259
|
+
<img class="uk-object-cover uk-object-top-left" src="images/photo.jpg" width="1000" height="1000" alt="" style="aspect-ratio: 1 / 1;">
|
|
260
|
+
</div>
|
|
261
|
+
</div>
|
|
262
|
+
|
|
246
263
|
<h2>Box-shadows</h2>
|
|
247
264
|
|
|
248
265
|
<div class="uk-child-width-1-5@m uk-grid-large" uk-grid>
|