uikit 3.14.3 → 3.14.4-dev.0cf600084
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 +22 -0
- package/dist/css/uikit-core-rtl.css +84 -29
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +84 -29
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +90 -44
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +90 -44
- 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 +189 -26
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +189 -26
- 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 +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 +801 -617
- 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 +801 -617
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/accordion.js +3 -3
- package/src/js/core/alert.js +1 -1
- package/src/js/core/drop.js +47 -20
- package/src/js/core/height-viewport.js +14 -9
- package/src/js/core/navbar.js +11 -9
- package/src/js/core/offcanvas.js +1 -47
- package/src/js/core/switcher.js +1 -1
- package/src/js/mixin/modal.js +90 -4
- 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/viewport.js +21 -10
- 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 +56 -25
- package/src/less/components/offcanvas.less +21 -21
- package/src/less/components/position.less +1 -1
- package/src/less/components/utility.less +0 -1
- package/src/less/theme/dropdown.less +11 -0
- package/src/less/theme/navbar.less +12 -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 +45 -14
- package/src/scss/components/offcanvas.scss +21 -21
- package/src/scss/components/position.scss +1 -1
- package/src/scss/components/utility.scss +0 -1
- 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 +9 -0
- package/src/scss/variables-theme.scss +27 -11
- package/src/scss/variables.scss +25 -11
- package/tests/drop.html +151 -2
- package/tests/dropdown.html +228 -13
- package/tests/height-viewport.html +62 -0
- package/tests/navbar.html +325 -18
- package/tests/offcanvas.html +8 -8
- package/tests/sticky-navbar.html +132 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## WIP
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add gap variable to navbar items in Navbar component
|
|
8
|
+
- Add color mode variable to navbar dropdown in Navbar component
|
|
9
|
+
- Add small breakpoint padding variables to Modal component- Add `animate-out` option to Drop component
|
|
10
|
+
- Add alignment `stretch` to Drop component
|
|
11
|
+
- Add Height Viewport uses scroll parent as viewport
|
|
12
|
+
- Add zero z-index utility class to Position component
|
|
13
|
+
- Add option `bg-scroll` to Drop component
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Rename `@offcanvas-bar-width-m` to `@offcanvas-bar-width-s`
|
|
18
|
+
- Rename `@offcanvas-bar-padding-vertical-m` to `@offcanvas-bar-padding-vertical-s`
|
|
19
|
+
- Rename `@offcanvas-bar-padding-horizontal-m` to `@offcanvas-bar-padding-horizontal-s`
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- Fix body is no longer scrollable in Modal component with overlay
|
|
24
|
+
|
|
3
25
|
## 3.14.3 (May 27, 2022)
|
|
4
26
|
|
|
5
27
|
### Fixed
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.
|
|
1
|
+
/*! UIkit 3.14.4-dev.0cf600084 | 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
|
*/
|
|
@@ -3733,12 +3769,12 @@ select.uk-form-width-xsmall {
|
|
|
3733
3769
|
overflow-y: auto;
|
|
3734
3770
|
-webkit-overflow-scrolling: touch;
|
|
3735
3771
|
}
|
|
3736
|
-
/*
|
|
3737
|
-
@media (min-width:
|
|
3772
|
+
/* Phone landscape and bigger */
|
|
3773
|
+
@media (min-width: 640px) {
|
|
3738
3774
|
.uk-offcanvas-bar {
|
|
3739
3775
|
right: -350px;
|
|
3740
3776
|
width: 350px;
|
|
3741
|
-
padding:
|
|
3777
|
+
padding: 30px 30px;
|
|
3742
3778
|
}
|
|
3743
3779
|
}
|
|
3744
3780
|
/* Flip modifier */
|
|
@@ -3747,7 +3783,7 @@ select.uk-form-width-xsmall {
|
|
|
3747
3783
|
left: -270px;
|
|
3748
3784
|
}
|
|
3749
3785
|
/* Tablet landscape and bigger */
|
|
3750
|
-
@media (min-width:
|
|
3786
|
+
@media (min-width: 640px) {
|
|
3751
3787
|
.uk-offcanvas-flip .uk-offcanvas-bar {
|
|
3752
3788
|
left: -350px;
|
|
3753
3789
|
}
|
|
@@ -3803,7 +3839,7 @@ select.uk-form-width-xsmall {
|
|
|
3803
3839
|
width: 270px;
|
|
3804
3840
|
}
|
|
3805
3841
|
/* Tablet landscape and bigger */
|
|
3806
|
-
@media (min-width:
|
|
3842
|
+
@media (min-width: 640px) {
|
|
3807
3843
|
.uk-open > .uk-offcanvas-reveal {
|
|
3808
3844
|
width: 350px;
|
|
3809
3845
|
}
|
|
@@ -3826,10 +3862,10 @@ select.uk-form-width-xsmall {
|
|
|
3826
3862
|
padding: 5px;
|
|
3827
3863
|
}
|
|
3828
3864
|
/* Tablet landscape and bigger */
|
|
3829
|
-
@media (min-width:
|
|
3865
|
+
@media (min-width: 640px) {
|
|
3830
3866
|
.uk-offcanvas-close {
|
|
3831
|
-
top:
|
|
3832
|
-
left:
|
|
3867
|
+
top: 10px;
|
|
3868
|
+
left: 10px;
|
|
3833
3869
|
}
|
|
3834
3870
|
}
|
|
3835
3871
|
/*
|
|
@@ -3907,7 +3943,7 @@ select.uk-form-width-xsmall {
|
|
|
3907
3943
|
right: -270px;
|
|
3908
3944
|
}
|
|
3909
3945
|
/* Tablet landscape and bigger */
|
|
3910
|
-
@media (min-width:
|
|
3946
|
+
@media (min-width: 640px) {
|
|
3911
3947
|
:not(.uk-offcanvas-flip).uk-offcanvas-container-animation {
|
|
3912
3948
|
right: 350px;
|
|
3913
3949
|
}
|
|
@@ -4791,14 +4827,12 @@ ul.uk-nav-sub {
|
|
|
4791
4827
|
========================================================================== */
|
|
4792
4828
|
/*
|
|
4793
4829
|
* 1. Align navs and items vertically if they have a different height
|
|
4794
|
-
* 2. Note: IE 11 requires an extra `div` which affects the center selector
|
|
4795
4830
|
*/
|
|
4796
4831
|
.uk-navbar-right,
|
|
4797
4832
|
.uk-navbar-left,
|
|
4798
|
-
|
|
4799
|
-
.uk-navbar-center-right > *,
|
|
4800
|
-
.uk-navbar-center-left > * {
|
|
4833
|
+
[class*='uk-navbar-center'] {
|
|
4801
4834
|
display: flex;
|
|
4835
|
+
gap: 0px;
|
|
4802
4836
|
/* 1 */
|
|
4803
4837
|
align-items: center;
|
|
4804
4838
|
}
|
|
@@ -4837,10 +4871,10 @@ ul.uk-nav-sub {
|
|
|
4837
4871
|
top: 0;
|
|
4838
4872
|
}
|
|
4839
4873
|
.uk-navbar-center-right {
|
|
4840
|
-
left: 100
|
|
4874
|
+
left: calc(100% + 0px);
|
|
4841
4875
|
}
|
|
4842
4876
|
.uk-navbar-center-left {
|
|
4843
|
-
right: 100
|
|
4877
|
+
right: calc(100% + 0px);
|
|
4844
4878
|
}
|
|
4845
4879
|
[class*='uk-navbar-center-'] {
|
|
4846
4880
|
width: max-content;
|
|
@@ -4853,6 +4887,7 @@ ul.uk-nav-sub {
|
|
|
4853
4887
|
*/
|
|
4854
4888
|
.uk-navbar-nav {
|
|
4855
4889
|
display: flex;
|
|
4890
|
+
gap: 0px;
|
|
4856
4891
|
/* 1 */
|
|
4857
4892
|
margin: 0;
|
|
4858
4893
|
padding: 0;
|
|
@@ -4919,6 +4954,7 @@ ul.uk-nav-sub {
|
|
|
4919
4954
|
/* Item
|
|
4920
4955
|
========================================================================== */
|
|
4921
4956
|
.uk-navbar-item {
|
|
4957
|
+
padding: 0 15px;
|
|
4922
4958
|
color: #666;
|
|
4923
4959
|
}
|
|
4924
4960
|
/*
|
|
@@ -4974,8 +5010,9 @@ ul.uk-nav-sub {
|
|
|
4974
5010
|
/* 2 */
|
|
4975
5011
|
position: absolute;
|
|
4976
5012
|
z-index: 1020;
|
|
4977
|
-
--uk-position-offset:
|
|
4978
|
-
--uk-position-
|
|
5013
|
+
--uk-position-offset: 0;
|
|
5014
|
+
--uk-position-shift-offset: 0;
|
|
5015
|
+
--uk-position-viewport-offset: 15px;
|
|
4979
5016
|
/* 3 */
|
|
4980
5017
|
box-sizing: border-box;
|
|
4981
5018
|
width: 200px;
|
|
@@ -5023,21 +5060,37 @@ ul.uk-nav-sub {
|
|
|
5023
5060
|
.uk-navbar-dropdown-width-5:not(.uk-navbar-dropdown-stack) {
|
|
5024
5061
|
width: 1000px;
|
|
5025
5062
|
}
|
|
5063
|
+
/*
|
|
5064
|
+
* Stretch modifier
|
|
5065
|
+
* 1. Allow scrolling
|
|
5066
|
+
*/
|
|
5067
|
+
.uk-navbar-dropdown-stretch {
|
|
5068
|
+
--uk-position-offset: 0;
|
|
5069
|
+
--uk-position-shift-offset: 0;
|
|
5070
|
+
--uk-position-viewport-offset: 0;
|
|
5071
|
+
/* 1 */
|
|
5072
|
+
overflow-y: auto;
|
|
5073
|
+
-webkit-overflow-scrolling: touch;
|
|
5074
|
+
}
|
|
5026
5075
|
/*
|
|
5027
5076
|
* Dropbar modifier
|
|
5028
|
-
* 1.
|
|
5029
|
-
* 2.
|
|
5030
|
-
* 3.
|
|
5077
|
+
* 1. Reset dropdown width to prevent to early shifting
|
|
5078
|
+
* 2. Set position
|
|
5079
|
+
* 3. Bottom padding for dropbar
|
|
5080
|
+
* 4. Horizontal padding
|
|
5031
5081
|
*/
|
|
5032
5082
|
.uk-navbar-dropdown-dropbar {
|
|
5033
5083
|
/* 1 */
|
|
5084
|
+
width: auto;
|
|
5085
|
+
/* 2 */
|
|
5034
5086
|
--uk-position-offset: 0px;
|
|
5035
5087
|
--uk-position-viewport-offset: 0;
|
|
5036
|
-
/* 2 */
|
|
5037
|
-
margin-bottom: 0px;
|
|
5038
5088
|
/* 3 */
|
|
5089
|
+
margin-bottom: 0px;
|
|
5090
|
+
/* 4 */
|
|
5039
5091
|
padding-right: 15px;
|
|
5040
5092
|
padding-left: 15px;
|
|
5093
|
+
--uk-position-shift-offset: 0;
|
|
5041
5094
|
}
|
|
5042
5095
|
/* Dropdown Nav
|
|
5043
5096
|
* Adopts `uk-nav`
|
|
@@ -7409,7 +7462,6 @@ iframe[data-uk-cover] {
|
|
|
7409
7462
|
}
|
|
7410
7463
|
/*
|
|
7411
7464
|
* Enable scrollbars if content is clipped
|
|
7412
|
-
* Note: Firefox ignores `padding-bottom` for the scrollable overflow https://bugzilla.mozilla.org/show_bug.cgi?id=748518
|
|
7413
7465
|
*/
|
|
7414
7466
|
.uk-overflow-auto {
|
|
7415
7467
|
overflow: auto;
|
|
@@ -8538,6 +8590,9 @@ iframe[data-uk-cover] {
|
|
|
8538
8590
|
.uk-position-z-index {
|
|
8539
8591
|
z-index: 1;
|
|
8540
8592
|
}
|
|
8593
|
+
.uk-position-z-index-zero {
|
|
8594
|
+
z-index: 0;
|
|
8595
|
+
}
|
|
8541
8596
|
.uk-position-z-index-negative {
|
|
8542
8597
|
z-index: -1;
|
|
8543
8598
|
}
|