uikit 3.14.3 → 3.14.4-dev.008162cc3

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/css/uikit-core-rtl.css +111 -35
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +111 -35
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +114 -50
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +114 -50
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +210 -32
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +210 -32
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +22 -7
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +22 -7
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +3 -3
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +142 -34
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +818 -636
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +1632 -1435
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/components/sortable.js +2 -3
  44. package/src/js/core/accordion.js +3 -3
  45. package/src/js/core/alert.js +1 -1
  46. package/src/js/core/drop.js +47 -20
  47. package/src/js/core/height-viewport.js +18 -9
  48. package/src/js/core/navbar.js +11 -9
  49. package/src/js/core/offcanvas.js +1 -47
  50. package/src/js/core/sticky.js +8 -9
  51. package/src/js/core/switcher.js +1 -1
  52. package/src/js/mixin/modal.js +90 -4
  53. package/src/js/mixin/position.js +52 -13
  54. package/src/js/mixin/slider-drag.js +20 -8
  55. package/src/js/mixin/togglable.js +105 -24
  56. package/src/js/util/animation.js +1 -0
  57. package/src/js/util/dimensions.js +6 -6
  58. package/src/js/util/position.js +2 -0
  59. package/src/js/util/viewport.js +23 -37
  60. package/src/less/components/drop.less +19 -5
  61. package/src/less/components/dropdown.less +21 -5
  62. package/src/less/components/margin.less +13 -14
  63. package/src/less/components/modal.less +19 -4
  64. package/src/less/components/nav.less +23 -5
  65. package/src/less/components/navbar.less +56 -26
  66. package/src/less/components/offcanvas.less +21 -21
  67. package/src/less/components/position.less +1 -1
  68. package/src/less/components/utility.less +12 -4
  69. package/src/less/theme/dropdown.less +11 -0
  70. package/src/less/theme/nav.less +3 -7
  71. package/src/less/theme/navbar.less +12 -12
  72. package/src/scss/components/drop.scss +19 -5
  73. package/src/scss/components/dropdown.scss +21 -5
  74. package/src/scss/components/margin.scss +13 -14
  75. package/src/scss/components/modal.scss +19 -4
  76. package/src/scss/components/nav.scss +23 -5
  77. package/src/scss/components/navbar.scss +45 -15
  78. package/src/scss/components/offcanvas.scss +21 -21
  79. package/src/scss/components/position.scss +1 -1
  80. package/src/scss/components/utility.scss +12 -4
  81. package/src/scss/mixins-theme.scss +9 -13
  82. package/src/scss/mixins.scss +2 -0
  83. package/src/scss/theme/dropdown.scss +8 -0
  84. package/src/scss/theme/nav.scss +3 -7
  85. package/src/scss/theme/navbar.scss +9 -0
  86. package/src/scss/variables-theme.scss +35 -14
  87. package/src/scss/variables.scss +33 -13
  88. package/tests/drop.html +151 -2
  89. package/tests/dropdown.html +228 -13
  90. package/tests/height-viewport.html +62 -0
  91. package/tests/navbar.html +2166 -1085
  92. package/tests/offcanvas.html +8 -8
  93. package/tests/sticky-navbar.html +132 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
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 font size variables to nav and sublist in Nav component
10
+ - Add small breakpoint padding variables to Modal component- Add `animate-out` option to Drop component
11
+ - Add alignment `stretch` to Drop component
12
+ - Add Height Viewport uses scroll parent as viewport
13
+ - Add zero z-index utility class to Position component
14
+ - Add option `bg-scroll` to Drop component
15
+
16
+ ### Changed
17
+
18
+ - Rename `@offcanvas-bar-width-m` to `@offcanvas-bar-width-s`
19
+ - Rename `@offcanvas-bar-padding-vertical-m` to `@offcanvas-bar-padding-vertical-s`
20
+ - Rename `@offcanvas-bar-padding-horizontal-m` to `@offcanvas-bar-padding-horizontal-s`
21
+ - Rename `@nav-primary-item-font-size` to `@nav-primary-font-size`
22
+ - Rename `@nav-primary-item-line-height` to `@nav-primary-line-height`
23
+
24
+ ### Fixed
25
+
26
+ - Fix body is no longer scrollable in Modal component with overlay
27
+ - Fix `offsetPosition()` adds `border-top` of offsetParents
28
+ - Fix dragging in Slider component on iOS
29
+ - Fix Drop component no longer flips, if it does not fit into scroll area
30
+
3
31
  ## 3.14.3 (May 27, 2022)
4
32
 
5
33
  ### Fixed
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.14.3 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.14.4-dev.008162cc3 | 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: 10;
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: 10;
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: 30px 30px;
3471
+ padding: 20px 20px;
3448
3472
  }
3449
3473
  .uk-modal-header {
3450
3474
  display: flow-root;
3451
- padding: 15px 30px;
3475
+ padding: 10px 20px;
3452
3476
  background: #f8f8f8;
3453
3477
  }
3454
3478
  .uk-modal-footer {
3455
3479
  display: flow-root;
3456
- padding: 15px 30px;
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
- /* Tablet landscape and bigger */
3737
- @media (min-width: 960px) {
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: 40px 40px;
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: 960px) {
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: 960px) {
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: 960px) {
3865
+ @media (min-width: 640px) {
3830
3866
  .uk-offcanvas-close {
3831
- top: 20px;
3832
- left: 20px;
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: 960px) {
3946
+ @media (min-width: 640px) {
3911
3947
  :not(.uk-offcanvas-flip).uk-offcanvas-container-animation {
3912
3948
  right: 350px;
3913
3949
  }
@@ -4649,6 +4685,10 @@ ul.uk-nav-sub {
4649
4685
  }
4650
4686
  /* Default modifier
4651
4687
  ========================================================================== */
4688
+ .uk-nav-default {
4689
+ font-size: 16px;
4690
+ line-height: 1.5;
4691
+ }
4652
4692
  /*
4653
4693
  * Items
4654
4694
  */
@@ -4684,6 +4724,10 @@ ul.uk-nav-sub {
4684
4724
  /*
4685
4725
  * Sublists
4686
4726
  */
4727
+ .uk-nav-default .uk-nav-sub {
4728
+ font-size: 16px;
4729
+ line-height: 1.5;
4730
+ }
4687
4731
  .uk-nav-default .uk-nav-sub a {
4688
4732
  color: #999;
4689
4733
  }
@@ -4695,12 +4739,14 @@ ul.uk-nav-sub {
4695
4739
  }
4696
4740
  /* Primary modifier
4697
4741
  ========================================================================== */
4742
+ .uk-nav-primary {
4743
+ font-size: 1.5rem;
4744
+ line-height: 1.5;
4745
+ }
4698
4746
  /*
4699
4747
  * Items
4700
4748
  */
4701
4749
  .uk-nav-primary > li > a {
4702
- font-size: 1.5rem;
4703
- line-height: 1.5;
4704
4750
  color: #999;
4705
4751
  }
4706
4752
  /* Hover */
@@ -4732,6 +4778,10 @@ ul.uk-nav-sub {
4732
4778
  /*
4733
4779
  * Sublists
4734
4780
  */
4781
+ .uk-nav-primary .uk-nav-sub {
4782
+ font-size: 1.25rem;
4783
+ line-height: 1.5;
4784
+ }
4735
4785
  .uk-nav-primary .uk-nav-sub a {
4736
4786
  color: #999;
4737
4787
  }
@@ -4791,14 +4841,12 @@ ul.uk-nav-sub {
4791
4841
  ========================================================================== */
4792
4842
  /*
4793
4843
  * 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
4844
  */
4796
4845
  .uk-navbar-right,
4797
4846
  .uk-navbar-left,
4798
- .uk-navbar-center,
4799
- .uk-navbar-center-right > *,
4800
- .uk-navbar-center-left > * {
4847
+ [class*='uk-navbar-center'] {
4801
4848
  display: flex;
4849
+ gap: 0px;
4802
4850
  /* 1 */
4803
4851
  align-items: center;
4804
4852
  }
@@ -4837,10 +4885,10 @@ ul.uk-nav-sub {
4837
4885
  top: 0;
4838
4886
  }
4839
4887
  .uk-navbar-center-right {
4840
- left: 100%;
4888
+ left: calc(100% + 0px);
4841
4889
  }
4842
4890
  .uk-navbar-center-left {
4843
- right: 100%;
4891
+ right: calc(100% + 0px);
4844
4892
  }
4845
4893
  [class*='uk-navbar-center-'] {
4846
4894
  width: max-content;
@@ -4853,6 +4901,7 @@ ul.uk-nav-sub {
4853
4901
  */
4854
4902
  .uk-navbar-nav {
4855
4903
  display: flex;
4904
+ gap: 0px;
4856
4905
  /* 1 */
4857
4906
  margin: 0;
4858
4907
  padding: 0;
@@ -4919,6 +4968,7 @@ ul.uk-nav-sub {
4919
4968
  /* Item
4920
4969
  ========================================================================== */
4921
4970
  .uk-navbar-item {
4971
+ padding: 0 15px;
4922
4972
  color: #666;
4923
4973
  }
4924
4974
  /*
@@ -4974,8 +5024,9 @@ ul.uk-nav-sub {
4974
5024
  /* 2 */
4975
5025
  position: absolute;
4976
5026
  z-index: 1020;
4977
- --uk-position-offset: 0px;
4978
- --uk-position-viewport-offset: 10;
5027
+ --uk-position-offset: 0;
5028
+ --uk-position-shift-offset: 0;
5029
+ --uk-position-viewport-offset: 15px;
4979
5030
  /* 3 */
4980
5031
  box-sizing: border-box;
4981
5032
  width: 200px;
@@ -5023,21 +5074,36 @@ ul.uk-nav-sub {
5023
5074
  .uk-navbar-dropdown-width-5:not(.uk-navbar-dropdown-stack) {
5024
5075
  width: 1000px;
5025
5076
  }
5077
+ /*
5078
+ * Stretch modifier
5079
+ * 1. Allow scrolling
5080
+ */
5081
+ .uk-navbar-dropdown-stretch {
5082
+ --uk-position-offset: 0;
5083
+ --uk-position-shift-offset: 0;
5084
+ --uk-position-viewport-offset: 0;
5085
+ /* 1 */
5086
+ overflow-y: auto;
5087
+ -webkit-overflow-scrolling: touch;
5088
+ }
5026
5089
  /*
5027
5090
  * Dropbar modifier
5028
- * 1. Set position
5029
- * 2. Bottom padding for dropbar
5030
- * 3. Horizontal padding
5091
+ * 1. Reset dropdown width to prevent to early shifting
5092
+ * 2. Set position
5093
+ * 3. Bottom padding for dropbar
5094
+ * 4. Horizontal padding
5031
5095
  */
5032
5096
  .uk-navbar-dropdown-dropbar {
5033
5097
  /* 1 */
5034
- --uk-position-offset: 0px;
5035
- --uk-position-viewport-offset: 0;
5098
+ width: auto;
5036
5099
  /* 2 */
5037
- margin-bottom: 0px;
5100
+ --uk-position-offset: 0px;
5038
5101
  /* 3 */
5102
+ margin-bottom: 0px;
5103
+ /* 4 */
5039
5104
  padding-right: 15px;
5040
5105
  padding-left: 15px;
5106
+ --uk-position-shift-offset: 0;
5041
5107
  }
5042
5108
  /* Dropdown Nav
5043
5109
  * Adopts `uk-nav`
@@ -7409,7 +7475,6 @@ iframe[data-uk-cover] {
7409
7475
  }
7410
7476
  /*
7411
7477
  * 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
7478
  */
7414
7479
  .uk-overflow-auto {
7415
7480
  overflow: auto;
@@ -7672,15 +7737,23 @@ iframe[data-uk-cover] {
7672
7737
  /* Logo
7673
7738
  ========================================================================== */
7674
7739
  /*
7675
- * 1. Required for `a`
7740
+ * 1. Style
7741
+ * 2. Required for `a`
7742
+ * 3. Behave like image but can be overridden through flex utility classes
7676
7743
  */
7677
7744
  .uk-logo {
7745
+ /* 1 */
7678
7746
  font-size: 1.5rem;
7679
7747
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
7680
7748
  color: #333;
7681
- /* 1 */
7749
+ /* 2 */
7682
7750
  text-decoration: none;
7683
7751
  }
7752
+ /* 3 */
7753
+ :where(.uk-logo) {
7754
+ display: inline-block;
7755
+ vertical-align: middle;
7756
+ }
7684
7757
  /* Hover */
7685
7758
  .uk-logo:hover {
7686
7759
  color: #333;
@@ -7688,7 +7761,7 @@ iframe[data-uk-cover] {
7688
7761
  text-decoration: none;
7689
7762
  }
7690
7763
  .uk-logo > :where(img, svg, video) {
7691
- display: inline-block;
7764
+ display: block;
7692
7765
  }
7693
7766
  .uk-logo-inverse {
7694
7767
  display: none;
@@ -8538,6 +8611,9 @@ iframe[data-uk-cover] {
8538
8611
  .uk-position-z-index {
8539
8612
  z-index: 1;
8540
8613
  }
8614
+ .uk-position-z-index-zero {
8615
+ z-index: 0;
8616
+ }
8541
8617
  .uk-position-z-index-negative {
8542
8618
  z-index: -1;
8543
8619
  }