uikit 3.14.2-dev.dedde7cc1 → 3.14.2-dev.f917389f5
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 +14 -0
- package/build/util.js +8 -2
- package/dist/css/uikit-core-rtl.css +45 -23
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +45 -23
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +47 -35
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +47 -35
- 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 +2 -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 +17 -11
- 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 +54 -35
- 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 +55 -36
- package/dist/js/uikit.min.js +1 -1
- package/package.json +11 -11
- package/src/js/components/parallax.js +1 -1
- package/src/js/core/drop.js +12 -4
- package/src/js/core/toggle.js +4 -0
- package/src/js/mixin/position.js +17 -21
- package/src/js/util/position.js +15 -13
- package/src/js/util/viewport.js +6 -7
- package/src/less/components/drop.less +2 -1
- package/src/less/components/dropdown.less +2 -1
- package/src/less/components/modal.less +19 -4
- package/src/less/components/navbar.less +28 -10
- package/src/less/components/offcanvas.less +21 -21
- package/src/less/theme/navbar.less +3 -10
- package/src/scss/components/drop.scss +2 -1
- package/src/scss/components/dropdown.scss +2 -1
- package/src/scss/components/modal.scss +19 -4
- package/src/scss/components/navbar.scss +28 -10
- package/src/scss/components/offcanvas.scss +21 -21
- package/src/scss/mixins-theme.scss +0 -10
- package/src/scss/theme/navbar.scss +3 -0
- package/src/scss/variables-theme.scss +23 -11
- package/src/scss/variables.scss +23 -11
- package/tests/drop.html +19 -1
- package/tests/dropdown.html +6 -0
- package/tests/navbar.html +21 -59
- package/tests/offcanvas.html +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
## WIP
|
|
4
4
|
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add gap variable to navbar items in Navbar component
|
|
8
|
+
- Add small breakpoint padding variables to Modal component
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Rename `@offcanvas-bar-width-m` to `@offcanvas-bar-width-s`
|
|
13
|
+
- Rename `@offcanvas-bar-padding-vertical-m` to `@offcanvas-bar-padding-vertical-s`
|
|
14
|
+
- Rename `@offcanvas-bar-padding-horizontal-m` to `@offcanvas-bar-padding-horizontal-s`
|
|
15
|
+
|
|
5
16
|
### Fixed
|
|
6
17
|
|
|
7
18
|
- Fix Scroll component on iOS 12
|
|
19
|
+
- Fix offset calculation in Drop component
|
|
20
|
+
- Fix `-justify` positioning in Drop component
|
|
21
|
+
- Fix Toggle component in `mode:media` default prevents click event
|
|
8
22
|
- Revert: Height Viewport component sets `uk-height-viewport` class to reduce initial layout shifts
|
|
9
23
|
|
|
10
24
|
## 3.14.1 (May 3, 2022)
|
package/build/util.js
CHANGED
|
@@ -14,7 +14,7 @@ import replace from '@rollup/plugin-replace';
|
|
|
14
14
|
import { basename, dirname, join } from 'path';
|
|
15
15
|
import { exec as execImport } from 'child_process';
|
|
16
16
|
import { rollup, watch as rollupWatch } from 'rollup';
|
|
17
|
-
import { minify as
|
|
17
|
+
import { minify as esbuildMinify } from 'rollup-plugin-esbuild';
|
|
18
18
|
|
|
19
19
|
const limit = pLimit(Number(process.env.cpus || 2));
|
|
20
20
|
|
|
@@ -148,7 +148,13 @@ export async function compile(file, dest, { external, globals, name, aliases, re
|
|
|
148
148
|
output.push({
|
|
149
149
|
...outputOptions,
|
|
150
150
|
file: `${dest}.min.js`,
|
|
151
|
-
plugins: [
|
|
151
|
+
plugins: [
|
|
152
|
+
debug
|
|
153
|
+
? undefined
|
|
154
|
+
: esbuildMinify({
|
|
155
|
+
target: 'safari12',
|
|
156
|
+
}),
|
|
157
|
+
],
|
|
152
158
|
});
|
|
153
159
|
}
|
|
154
160
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.2-dev.
|
|
1
|
+
/*! UIkit 3.14.2-dev.f917389f5 | 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;
|
|
@@ -3261,7 +3261,7 @@ select.uk-form-width-xsmall {
|
|
|
3261
3261
|
position: absolute;
|
|
3262
3262
|
z-index: 1020;
|
|
3263
3263
|
--uk-position-offset: 10px;
|
|
3264
|
-
--uk-position-viewport-offset:
|
|
3264
|
+
--uk-position-viewport-offset: 15px;
|
|
3265
3265
|
/* 3 */
|
|
3266
3266
|
box-sizing: border-box;
|
|
3267
3267
|
min-width: 200px;
|
|
@@ -3444,18 +3444,30 @@ select.uk-form-width-xsmall {
|
|
|
3444
3444
|
========================================================================== */
|
|
3445
3445
|
.uk-modal-body {
|
|
3446
3446
|
display: flow-root;
|
|
3447
|
-
padding:
|
|
3447
|
+
padding: 20px 20px;
|
|
3448
3448
|
}
|
|
3449
3449
|
.uk-modal-header {
|
|
3450
3450
|
display: flow-root;
|
|
3451
|
-
padding:
|
|
3451
|
+
padding: 10px 20px;
|
|
3452
3452
|
background: #f8f8f8;
|
|
3453
3453
|
}
|
|
3454
3454
|
.uk-modal-footer {
|
|
3455
3455
|
display: flow-root;
|
|
3456
|
-
padding:
|
|
3456
|
+
padding: 10px 20px;
|
|
3457
3457
|
background: #f8f8f8;
|
|
3458
3458
|
}
|
|
3459
|
+
/* Phone landscape and bigger */
|
|
3460
|
+
@media (min-width: 640px) {
|
|
3461
|
+
.uk-modal-body {
|
|
3462
|
+
padding: 30px 30px;
|
|
3463
|
+
}
|
|
3464
|
+
.uk-modal-header {
|
|
3465
|
+
padding: 15px 30px;
|
|
3466
|
+
}
|
|
3467
|
+
.uk-modal-footer {
|
|
3468
|
+
padding: 15px 30px;
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3459
3471
|
/*
|
|
3460
3472
|
* Remove margin from the last-child
|
|
3461
3473
|
*/
|
|
@@ -3726,12 +3738,12 @@ select.uk-form-width-xsmall {
|
|
|
3726
3738
|
overflow-y: auto;
|
|
3727
3739
|
-webkit-overflow-scrolling: touch;
|
|
3728
3740
|
}
|
|
3729
|
-
/*
|
|
3730
|
-
@media (min-width:
|
|
3741
|
+
/* Phone landscape and bigger */
|
|
3742
|
+
@media (min-width: 640px) {
|
|
3731
3743
|
.uk-offcanvas-bar {
|
|
3732
3744
|
right: -350px;
|
|
3733
3745
|
width: 350px;
|
|
3734
|
-
padding:
|
|
3746
|
+
padding: 30px 30px;
|
|
3735
3747
|
}
|
|
3736
3748
|
}
|
|
3737
3749
|
/* Flip modifier */
|
|
@@ -3740,7 +3752,7 @@ select.uk-form-width-xsmall {
|
|
|
3740
3752
|
left: -270px;
|
|
3741
3753
|
}
|
|
3742
3754
|
/* Tablet landscape and bigger */
|
|
3743
|
-
@media (min-width:
|
|
3755
|
+
@media (min-width: 640px) {
|
|
3744
3756
|
.uk-offcanvas-flip .uk-offcanvas-bar {
|
|
3745
3757
|
left: -350px;
|
|
3746
3758
|
}
|
|
@@ -3796,7 +3808,7 @@ select.uk-form-width-xsmall {
|
|
|
3796
3808
|
width: 270px;
|
|
3797
3809
|
}
|
|
3798
3810
|
/* Tablet landscape and bigger */
|
|
3799
|
-
@media (min-width:
|
|
3811
|
+
@media (min-width: 640px) {
|
|
3800
3812
|
.uk-open > .uk-offcanvas-reveal {
|
|
3801
3813
|
width: 350px;
|
|
3802
3814
|
}
|
|
@@ -3819,10 +3831,10 @@ select.uk-form-width-xsmall {
|
|
|
3819
3831
|
padding: 5px;
|
|
3820
3832
|
}
|
|
3821
3833
|
/* Tablet landscape and bigger */
|
|
3822
|
-
@media (min-width:
|
|
3834
|
+
@media (min-width: 640px) {
|
|
3823
3835
|
.uk-offcanvas-close {
|
|
3824
|
-
top:
|
|
3825
|
-
left:
|
|
3836
|
+
top: 10px;
|
|
3837
|
+
left: 10px;
|
|
3826
3838
|
}
|
|
3827
3839
|
}
|
|
3828
3840
|
/*
|
|
@@ -3900,7 +3912,7 @@ select.uk-form-width-xsmall {
|
|
|
3900
3912
|
right: -270px;
|
|
3901
3913
|
}
|
|
3902
3914
|
/* Tablet landscape and bigger */
|
|
3903
|
-
@media (min-width:
|
|
3915
|
+
@media (min-width: 640px) {
|
|
3904
3916
|
:not(.uk-offcanvas-flip).uk-offcanvas-container-animation {
|
|
3905
3917
|
right: 350px;
|
|
3906
3918
|
}
|
|
@@ -4772,6 +4784,7 @@ ul.uk-nav-sub {
|
|
|
4772
4784
|
*/
|
|
4773
4785
|
.uk-navbar {
|
|
4774
4786
|
display: flex;
|
|
4787
|
+
--uk-navbar-nav-item-gap: 0;
|
|
4775
4788
|
/* 1 */
|
|
4776
4789
|
position: relative;
|
|
4777
4790
|
}
|
|
@@ -4792,6 +4805,7 @@ ul.uk-nav-sub {
|
|
|
4792
4805
|
.uk-navbar-center-right > *,
|
|
4793
4806
|
.uk-navbar-center-left > * {
|
|
4794
4807
|
display: flex;
|
|
4808
|
+
gap: var(--uk-navbar-nav-item-gap);
|
|
4795
4809
|
/* 1 */
|
|
4796
4810
|
align-items: center;
|
|
4797
4811
|
}
|
|
@@ -4831,9 +4845,11 @@ ul.uk-nav-sub {
|
|
|
4831
4845
|
}
|
|
4832
4846
|
.uk-navbar-center-right {
|
|
4833
4847
|
left: 100%;
|
|
4848
|
+
left: calc(100% + var(--uk-navbar-nav-item-gap));
|
|
4834
4849
|
}
|
|
4835
4850
|
.uk-navbar-center-left {
|
|
4836
4851
|
right: 100%;
|
|
4852
|
+
right: calc(100% + var(--uk-navbar-nav-item-gap));
|
|
4837
4853
|
}
|
|
4838
4854
|
[class*='uk-navbar-center-'] {
|
|
4839
4855
|
width: max-content;
|
|
@@ -4846,6 +4862,7 @@ ul.uk-nav-sub {
|
|
|
4846
4862
|
*/
|
|
4847
4863
|
.uk-navbar-nav {
|
|
4848
4864
|
display: flex;
|
|
4865
|
+
gap: var(--uk-navbar-nav-item-gap);
|
|
4849
4866
|
/* 1 */
|
|
4850
4867
|
margin: 0;
|
|
4851
4868
|
padding: 0;
|
|
@@ -4912,6 +4929,7 @@ ul.uk-nav-sub {
|
|
|
4912
4929
|
/* Item
|
|
4913
4930
|
========================================================================== */
|
|
4914
4931
|
.uk-navbar-item {
|
|
4932
|
+
padding: 0 15px;
|
|
4915
4933
|
color: #666;
|
|
4916
4934
|
}
|
|
4917
4935
|
/*
|
|
@@ -4967,8 +4985,9 @@ ul.uk-nav-sub {
|
|
|
4967
4985
|
/* 2 */
|
|
4968
4986
|
position: absolute;
|
|
4969
4987
|
z-index: 1020;
|
|
4970
|
-
--uk-position-offset:
|
|
4971
|
-
--uk-position-
|
|
4988
|
+
--uk-position-offset: 0;
|
|
4989
|
+
--uk-position-shift-offset: 0;
|
|
4990
|
+
--uk-position-viewport-offset: 15px;
|
|
4972
4991
|
/* 3 */
|
|
4973
4992
|
box-sizing: border-box;
|
|
4974
4993
|
width: 200px;
|
|
@@ -5018,19 +5037,22 @@ ul.uk-nav-sub {
|
|
|
5018
5037
|
}
|
|
5019
5038
|
/*
|
|
5020
5039
|
* Dropbar modifier
|
|
5021
|
-
* 1.
|
|
5022
|
-
* 2.
|
|
5023
|
-
* 3.
|
|
5040
|
+
* 1. Reset dropdown width to prevent to early shifting
|
|
5041
|
+
* 2. Set position
|
|
5042
|
+
* 3. Bottom padding for dropbar
|
|
5043
|
+
* 4. Horizontal padding
|
|
5024
5044
|
*/
|
|
5025
5045
|
.uk-navbar-dropdown-dropbar {
|
|
5026
5046
|
/* 1 */
|
|
5027
|
-
|
|
5028
|
-
--uk-position-viewport-offset: 0;
|
|
5047
|
+
width: auto;
|
|
5029
5048
|
/* 2 */
|
|
5030
|
-
|
|
5049
|
+
--uk-position-offset: 0px;
|
|
5031
5050
|
/* 3 */
|
|
5051
|
+
margin-bottom: 0px;
|
|
5052
|
+
/* 4 */
|
|
5032
5053
|
padding-right: 15px;
|
|
5033
5054
|
padding-left: 15px;
|
|
5055
|
+
--uk-position-shift-offset: 0;
|
|
5034
5056
|
}
|
|
5035
5057
|
/* Dropdown Nav
|
|
5036
5058
|
* Adopts `uk-nav`
|