uikit 3.14.2-dev.1d34cc58b → 3.14.2-dev.35b3deec9
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 +28 -0
- package/dist/css/uikit-core-rtl.css +92 -25
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +92 -25
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +98 -40
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +98 -40
- 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 +101 -22
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +101 -22
- 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 +17 -2
- 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 +135 -34
- 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 +238 -110
- 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 +254 -111
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/parallax.js +16 -1
- package/src/js/core/accordion.js +3 -3
- package/src/js/core/alert.js +1 -1
- package/src/js/core/drop.js +40 -20
- package/src/js/core/height-viewport.js +14 -9
- package/src/js/core/navbar.js +19 -18
- package/src/js/core/scrollspy.js +4 -0
- package/src/js/core/toggle.js +5 -8
- package/src/js/mixin/position.js +44 -13
- package/src/js/mixin/togglable.js +105 -24
- package/src/js/util/animation.js +1 -0
- package/src/js/util/position.js +15 -13
- package/src/js/util/viewport.js +2 -5
- package/src/less/components/drop.less +19 -5
- package/src/less/components/dropdown.less +21 -5
- package/src/less/components/margin.less +13 -14
- package/src/less/components/modal.less +19 -4
- package/src/less/components/nav.less +1 -1
- package/src/less/components/navbar.less +60 -21
- package/src/less/components/offcanvas.less +21 -21
- package/src/less/components/position.less +1 -1
- package/src/less/components/sticky.less +7 -0
- package/src/less/components/utility.less +1 -2
- package/src/less/theme/dropdown.less +11 -0
- package/src/less/theme/navbar.less +10 -12
- package/src/scss/components/drop.scss +19 -5
- package/src/scss/components/dropdown.scss +21 -5
- package/src/scss/components/margin.scss +13 -14
- package/src/scss/components/modal.scss +19 -4
- package/src/scss/components/nav.scss +1 -1
- package/src/scss/components/navbar.scss +49 -10
- package/src/scss/components/offcanvas.scss +21 -21
- package/src/scss/components/position.scss +1 -1
- package/src/scss/components/sticky.scss +7 -0
- package/src/scss/components/utility.scss +1 -2
- package/src/scss/mixins-theme.scss +8 -12
- package/src/scss/mixins.scss +2 -0
- package/src/scss/theme/dropdown.scss +8 -0
- package/src/scss/theme/navbar.scss +7 -0
- package/src/scss/variables-theme.scss +26 -11
- package/src/scss/variables.scss +24 -11
- package/tests/drop.html +145 -2
- package/tests/dropdown.html +228 -13
- package/tests/height-viewport.html +62 -0
- package/tests/navbar.html +321 -14
- package/tests/offcanvas.html +8 -8
- package/tests/sticky-navbar.html +132 -0
- package/tests/sticky-parallax.html +2 -1
- package/tests/sticky.html +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## WIP mobile_dropdown
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add `animate-out` option to Drop component
|
|
8
|
+
- Add alignment `stretch` to Drop component
|
|
9
|
+
- Add Height Viewport uses scroll parent as viewport
|
|
10
|
+
- Add zero z-index utility class to Position component
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Make content clickable for sticky cover and reveal effects
|
|
15
|
+
|
|
3
16
|
## WIP
|
|
4
17
|
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Add gap variable to navbar items in Navbar component
|
|
21
|
+
- Add color mode variable to navbar dropdown in Navbar component
|
|
22
|
+
- Add small breakpoint padding variables to Modal component
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Rename `@offcanvas-bar-width-m` to `@offcanvas-bar-width-s`
|
|
27
|
+
- Rename `@offcanvas-bar-padding-vertical-m` to `@offcanvas-bar-padding-vertical-s`
|
|
28
|
+
- Rename `@offcanvas-bar-padding-horizontal-m` to `@offcanvas-bar-padding-horizontal-s`
|
|
29
|
+
|
|
5
30
|
### Fixed
|
|
6
31
|
|
|
32
|
+
- Fix logo image not working with text align in Utility component
|
|
7
33
|
- Fix Scroll component on iOS 12
|
|
8
34
|
- Fix offset calculation in Drop component
|
|
9
35
|
- Fix `-justify` positioning in Drop component
|
|
10
36
|
- Fix Toggle component in `mode:media` default prevents click event
|
|
37
|
+
- Fix: Toggle component did not default prevent touch click on anchor with closed target
|
|
11
38
|
- Revert: Height Viewport component sets `uk-height-viewport` class to reduce initial layout shifts
|
|
39
|
+
- Fix Dropbar handles resizing Drop components
|
|
12
40
|
|
|
13
41
|
## 3.14.1 (May 3, 2022)
|
|
14
42
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.2-dev.
|
|
1
|
+
/*! UIkit 3.14.2-dev.35b3deec9 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|
|
@@ -3231,7 +3231,7 @@ select.uk-form-width-xsmall {
|
|
|
3231
3231
|
position: absolute;
|
|
3232
3232
|
z-index: 1020;
|
|
3233
3233
|
--uk-position-offset: 20px;
|
|
3234
|
-
--uk-position-viewport-offset:
|
|
3234
|
+
--uk-position-viewport-offset: 15px;
|
|
3235
3235
|
/* 3 */
|
|
3236
3236
|
box-sizing: border-box;
|
|
3237
3237
|
width: 300px;
|
|
@@ -3240,6 +3240,18 @@ select.uk-form-width-xsmall {
|
|
|
3240
3240
|
.uk-drop.uk-open {
|
|
3241
3241
|
display: block;
|
|
3242
3242
|
}
|
|
3243
|
+
/* Stretch modifier
|
|
3244
|
+
========================================================================== */
|
|
3245
|
+
/*
|
|
3246
|
+
* 1. Allow scrolling
|
|
3247
|
+
*/
|
|
3248
|
+
.uk-drop-stretch {
|
|
3249
|
+
--uk-position-offset: 0;
|
|
3250
|
+
--uk-position-viewport-offset: 0;
|
|
3251
|
+
/* 1 */
|
|
3252
|
+
overflow-y: auto;
|
|
3253
|
+
-webkit-overflow-scrolling: touch;
|
|
3254
|
+
}
|
|
3243
3255
|
/* Grid modifiers
|
|
3244
3256
|
========================================================================== */
|
|
3245
3257
|
.uk-drop-stack .uk-drop-grid > * {
|
|
@@ -3261,7 +3273,7 @@ select.uk-form-width-xsmall {
|
|
|
3261
3273
|
position: absolute;
|
|
3262
3274
|
z-index: 1020;
|
|
3263
3275
|
--uk-position-offset: 10px;
|
|
3264
|
-
--uk-position-viewport-offset:
|
|
3276
|
+
--uk-position-viewport-offset: 15px;
|
|
3265
3277
|
/* 3 */
|
|
3266
3278
|
box-sizing: border-box;
|
|
3267
3279
|
min-width: 200px;
|
|
@@ -3275,6 +3287,18 @@ select.uk-form-width-xsmall {
|
|
|
3275
3287
|
.uk-dropdown.uk-open {
|
|
3276
3288
|
display: block;
|
|
3277
3289
|
}
|
|
3290
|
+
/* Stretch modifier
|
|
3291
|
+
========================================================================== */
|
|
3292
|
+
/*
|
|
3293
|
+
* 1. Allow scrolling
|
|
3294
|
+
*/
|
|
3295
|
+
.uk-dropdown-stretch {
|
|
3296
|
+
--uk-position-offset: 0;
|
|
3297
|
+
--uk-position-viewport-offset: 0;
|
|
3298
|
+
/* 1 */
|
|
3299
|
+
overflow-y: auto;
|
|
3300
|
+
-webkit-overflow-scrolling: touch;
|
|
3301
|
+
}
|
|
3278
3302
|
/* Nav
|
|
3279
3303
|
* Adopts `uk-nav`
|
|
3280
3304
|
========================================================================== */
|
|
@@ -3444,18 +3468,30 @@ select.uk-form-width-xsmall {
|
|
|
3444
3468
|
========================================================================== */
|
|
3445
3469
|
.uk-modal-body {
|
|
3446
3470
|
display: flow-root;
|
|
3447
|
-
padding:
|
|
3471
|
+
padding: 20px 20px;
|
|
3448
3472
|
}
|
|
3449
3473
|
.uk-modal-header {
|
|
3450
3474
|
display: flow-root;
|
|
3451
|
-
padding:
|
|
3475
|
+
padding: 10px 20px;
|
|
3452
3476
|
background: #f8f8f8;
|
|
3453
3477
|
}
|
|
3454
3478
|
.uk-modal-footer {
|
|
3455
3479
|
display: flow-root;
|
|
3456
|
-
padding:
|
|
3480
|
+
padding: 10px 20px;
|
|
3457
3481
|
background: #f8f8f8;
|
|
3458
3482
|
}
|
|
3483
|
+
/* Phone landscape and bigger */
|
|
3484
|
+
@media (min-width: 640px) {
|
|
3485
|
+
.uk-modal-body {
|
|
3486
|
+
padding: 30px 30px;
|
|
3487
|
+
}
|
|
3488
|
+
.uk-modal-header {
|
|
3489
|
+
padding: 15px 30px;
|
|
3490
|
+
}
|
|
3491
|
+
.uk-modal-footer {
|
|
3492
|
+
padding: 15px 30px;
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3459
3495
|
/*
|
|
3460
3496
|
* Remove margin from the last-child
|
|
3461
3497
|
*/
|
|
@@ -3680,6 +3716,13 @@ select.uk-form-width-xsmall {
|
|
|
3680
3716
|
.uk-sticky.uk-animation-reverse {
|
|
3681
3717
|
animation-duration: 0.2s;
|
|
3682
3718
|
}
|
|
3719
|
+
/*
|
|
3720
|
+
* Placeholder
|
|
3721
|
+
* Make content clickable for sticky cover and reveal effects
|
|
3722
|
+
*/
|
|
3723
|
+
.uk-sticky-placeholder {
|
|
3724
|
+
pointer-events: none;
|
|
3725
|
+
}
|
|
3683
3726
|
/* ========================================================================
|
|
3684
3727
|
Component: Off-canvas
|
|
3685
3728
|
========================================================================== */
|
|
@@ -3726,12 +3769,12 @@ select.uk-form-width-xsmall {
|
|
|
3726
3769
|
overflow-y: auto;
|
|
3727
3770
|
-webkit-overflow-scrolling: touch;
|
|
3728
3771
|
}
|
|
3729
|
-
/*
|
|
3730
|
-
@media (min-width:
|
|
3772
|
+
/* Phone landscape and bigger */
|
|
3773
|
+
@media (min-width: 640px) {
|
|
3731
3774
|
.uk-offcanvas-bar {
|
|
3732
3775
|
right: -350px;
|
|
3733
3776
|
width: 350px;
|
|
3734
|
-
padding:
|
|
3777
|
+
padding: 30px 30px;
|
|
3735
3778
|
}
|
|
3736
3779
|
}
|
|
3737
3780
|
/* Flip modifier */
|
|
@@ -3740,7 +3783,7 @@ select.uk-form-width-xsmall {
|
|
|
3740
3783
|
left: -270px;
|
|
3741
3784
|
}
|
|
3742
3785
|
/* Tablet landscape and bigger */
|
|
3743
|
-
@media (min-width:
|
|
3786
|
+
@media (min-width: 640px) {
|
|
3744
3787
|
.uk-offcanvas-flip .uk-offcanvas-bar {
|
|
3745
3788
|
left: -350px;
|
|
3746
3789
|
}
|
|
@@ -3796,7 +3839,7 @@ select.uk-form-width-xsmall {
|
|
|
3796
3839
|
width: 270px;
|
|
3797
3840
|
}
|
|
3798
3841
|
/* Tablet landscape and bigger */
|
|
3799
|
-
@media (min-width:
|
|
3842
|
+
@media (min-width: 640px) {
|
|
3800
3843
|
.uk-open > .uk-offcanvas-reveal {
|
|
3801
3844
|
width: 350px;
|
|
3802
3845
|
}
|
|
@@ -3819,10 +3862,10 @@ select.uk-form-width-xsmall {
|
|
|
3819
3862
|
padding: 5px;
|
|
3820
3863
|
}
|
|
3821
3864
|
/* Tablet landscape and bigger */
|
|
3822
|
-
@media (min-width:
|
|
3865
|
+
@media (min-width: 640px) {
|
|
3823
3866
|
.uk-offcanvas-close {
|
|
3824
|
-
top:
|
|
3825
|
-
left:
|
|
3867
|
+
top: 10px;
|
|
3868
|
+
left: 10px;
|
|
3826
3869
|
}
|
|
3827
3870
|
}
|
|
3828
3871
|
/*
|
|
@@ -3900,7 +3943,7 @@ select.uk-form-width-xsmall {
|
|
|
3900
3943
|
right: -270px;
|
|
3901
3944
|
}
|
|
3902
3945
|
/* Tablet landscape and bigger */
|
|
3903
|
-
@media (min-width:
|
|
3946
|
+
@media (min-width: 640px) {
|
|
3904
3947
|
:not(.uk-offcanvas-flip).uk-offcanvas-container-animation {
|
|
3905
3948
|
right: 350px;
|
|
3906
3949
|
}
|
|
@@ -4772,6 +4815,7 @@ ul.uk-nav-sub {
|
|
|
4772
4815
|
*/
|
|
4773
4816
|
.uk-navbar {
|
|
4774
4817
|
display: flex;
|
|
4818
|
+
--uk-navbar-nav-item-gap: 0;
|
|
4775
4819
|
/* 1 */
|
|
4776
4820
|
position: relative;
|
|
4777
4821
|
}
|
|
@@ -4792,6 +4836,7 @@ ul.uk-nav-sub {
|
|
|
4792
4836
|
.uk-navbar-center-right > *,
|
|
4793
4837
|
.uk-navbar-center-left > * {
|
|
4794
4838
|
display: flex;
|
|
4839
|
+
gap: var(--uk-navbar-nav-item-gap);
|
|
4795
4840
|
/* 1 */
|
|
4796
4841
|
align-items: center;
|
|
4797
4842
|
}
|
|
@@ -4831,9 +4876,11 @@ ul.uk-nav-sub {
|
|
|
4831
4876
|
}
|
|
4832
4877
|
.uk-navbar-center-right {
|
|
4833
4878
|
left: 100%;
|
|
4879
|
+
left: calc(100% + var(--uk-navbar-nav-item-gap));
|
|
4834
4880
|
}
|
|
4835
4881
|
.uk-navbar-center-left {
|
|
4836
4882
|
right: 100%;
|
|
4883
|
+
right: calc(100% + var(--uk-navbar-nav-item-gap));
|
|
4837
4884
|
}
|
|
4838
4885
|
[class*='uk-navbar-center-'] {
|
|
4839
4886
|
width: max-content;
|
|
@@ -4846,6 +4893,7 @@ ul.uk-nav-sub {
|
|
|
4846
4893
|
*/
|
|
4847
4894
|
.uk-navbar-nav {
|
|
4848
4895
|
display: flex;
|
|
4896
|
+
gap: var(--uk-navbar-nav-item-gap);
|
|
4849
4897
|
/* 1 */
|
|
4850
4898
|
margin: 0;
|
|
4851
4899
|
padding: 0;
|
|
@@ -4912,6 +4960,7 @@ ul.uk-nav-sub {
|
|
|
4912
4960
|
/* Item
|
|
4913
4961
|
========================================================================== */
|
|
4914
4962
|
.uk-navbar-item {
|
|
4963
|
+
padding: 0 15px;
|
|
4915
4964
|
color: #666;
|
|
4916
4965
|
}
|
|
4917
4966
|
/*
|
|
@@ -4967,8 +5016,9 @@ ul.uk-nav-sub {
|
|
|
4967
5016
|
/* 2 */
|
|
4968
5017
|
position: absolute;
|
|
4969
5018
|
z-index: 1020;
|
|
4970
|
-
--uk-position-offset:
|
|
4971
|
-
--uk-position-
|
|
5019
|
+
--uk-position-offset: 0;
|
|
5020
|
+
--uk-position-shift-offset: 0;
|
|
5021
|
+
--uk-position-viewport-offset: 15px;
|
|
4972
5022
|
/* 3 */
|
|
4973
5023
|
box-sizing: border-box;
|
|
4974
5024
|
width: 200px;
|
|
@@ -5016,21 +5066,36 @@ ul.uk-nav-sub {
|
|
|
5016
5066
|
.uk-navbar-dropdown-width-5:not(.uk-navbar-dropdown-stack) {
|
|
5017
5067
|
width: 1000px;
|
|
5018
5068
|
}
|
|
5069
|
+
/*
|
|
5070
|
+
* Stretch modifier
|
|
5071
|
+
* 1. Allow scrolling
|
|
5072
|
+
*/
|
|
5073
|
+
.uk-navbar-dropdown-stretch {
|
|
5074
|
+
--uk-position-offset: 0;
|
|
5075
|
+
--uk-position-shift-offset: 0;
|
|
5076
|
+
--uk-position-viewport-offset: 0;
|
|
5077
|
+
/* 1 */
|
|
5078
|
+
overflow-y: auto;
|
|
5079
|
+
-webkit-overflow-scrolling: touch;
|
|
5080
|
+
}
|
|
5019
5081
|
/*
|
|
5020
5082
|
* Dropbar modifier
|
|
5021
|
-
* 1.
|
|
5022
|
-
* 2.
|
|
5023
|
-
* 3.
|
|
5083
|
+
* 1. Reset dropdown width to prevent to early shifting
|
|
5084
|
+
* 2. Set position
|
|
5085
|
+
* 3. Bottom padding for dropbar
|
|
5086
|
+
* 4. Horizontal padding
|
|
5024
5087
|
*/
|
|
5025
5088
|
.uk-navbar-dropdown-dropbar {
|
|
5026
5089
|
/* 1 */
|
|
5027
|
-
|
|
5028
|
-
--uk-position-viewport-offset: 0;
|
|
5090
|
+
width: auto;
|
|
5029
5091
|
/* 2 */
|
|
5030
|
-
|
|
5092
|
+
--uk-position-offset: 0px;
|
|
5031
5093
|
/* 3 */
|
|
5094
|
+
margin-bottom: 0px;
|
|
5095
|
+
/* 4 */
|
|
5032
5096
|
padding-right: 15px;
|
|
5033
5097
|
padding-left: 15px;
|
|
5098
|
+
--uk-position-shift-offset: 0;
|
|
5034
5099
|
}
|
|
5035
5100
|
/* Dropdown Nav
|
|
5036
5101
|
* Adopts `uk-nav`
|
|
@@ -7402,7 +7467,6 @@ iframe[data-uk-cover] {
|
|
|
7402
7467
|
}
|
|
7403
7468
|
/*
|
|
7404
7469
|
* Enable scrollbars if content is clipped
|
|
7405
|
-
* Note: Firefox ignores `padding-bottom` for the scrollable overflow https://bugzilla.mozilla.org/show_bug.cgi?id=748518
|
|
7406
7470
|
*/
|
|
7407
7471
|
.uk-overflow-auto {
|
|
7408
7472
|
overflow: auto;
|
|
@@ -7681,7 +7745,7 @@ iframe[data-uk-cover] {
|
|
|
7681
7745
|
text-decoration: none;
|
|
7682
7746
|
}
|
|
7683
7747
|
.uk-logo > :where(img, svg, video) {
|
|
7684
|
-
display: block;
|
|
7748
|
+
display: inline-block;
|
|
7685
7749
|
}
|
|
7686
7750
|
.uk-logo-inverse {
|
|
7687
7751
|
display: none;
|
|
@@ -8531,6 +8595,9 @@ iframe[data-uk-cover] {
|
|
|
8531
8595
|
.uk-position-z-index {
|
|
8532
8596
|
z-index: 1;
|
|
8533
8597
|
}
|
|
8598
|
+
.uk-position-z-index-zero {
|
|
8599
|
+
z-index: 0;
|
|
8600
|
+
}
|
|
8534
8601
|
.uk-position-z-index-negative {
|
|
8535
8602
|
z-index: -1;
|
|
8536
8603
|
}
|