uikit 3.13.2-dev.97384959 → 3.13.2-dev.aa6a91433

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 (70) hide show
  1. package/.eslintrc.json +9 -0
  2. package/CHANGELOG.md +17 -0
  3. package/dist/css/uikit-core-rtl.css +28 -71
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +28 -71
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +28 -71
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +28 -71
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +1 -1
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +1 -1
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +1 -1
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +1 -1
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +1 -1
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -1
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +1 -1
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +9 -15
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +31 -58
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +35 -63
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +10 -10
  44. package/src/js/components/tooltip.js +2 -3
  45. package/src/js/core/drop.js +7 -10
  46. package/src/js/core/navbar.js +2 -8
  47. package/src/js/core/responsive.js +1 -1
  48. package/src/js/core/sticky.js +1 -1
  49. package/src/js/core/switcher.js +7 -13
  50. package/src/js/mixin/media.js +4 -4
  51. package/src/js/mixin/position.js +4 -9
  52. package/src/js/util/style.js +8 -15
  53. package/src/less/components/drop.less +1 -10
  54. package/src/less/components/dropdown.less +1 -10
  55. package/src/less/components/navbar.less +11 -22
  56. package/src/less/components/offcanvas.less +19 -1
  57. package/src/less/components/tooltip.less +1 -10
  58. package/src/less/theme/navbar.less +1 -3
  59. package/src/scss/components/drop.scss +1 -10
  60. package/src/scss/components/dropdown.scss +1 -10
  61. package/src/scss/components/navbar.scss +11 -22
  62. package/src/scss/components/offcanvas.scss +19 -1
  63. package/src/scss/components/tooltip.scss +1 -10
  64. package/src/scss/mixins-theme.scss +1 -2
  65. package/src/scss/mixins.scss +0 -1
  66. package/src/scss/theme/navbar.scss +0 -2
  67. package/src/scss/variables-theme.scss +3 -1
  68. package/src/scss/variables.scss +3 -1
  69. package/tests/navbar.html +2 -8
  70. package/tests/search.html +1 -1
package/.eslintrc.json CHANGED
@@ -13,5 +13,14 @@
13
13
  "VERSION": true,
14
14
  "ICONS": true,
15
15
  "NAME": true
16
+ },
17
+ "rules": {
18
+ "sort-imports": [
19
+ "error",
20
+ {
21
+ "ignoreCase": true,
22
+ "ignoreDeclarationSort": true
23
+ }
24
+ ]
16
25
  }
17
26
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## WIP
4
+
5
+ ### Changed
6
+
7
+ - Use custom property for direction offset in components based on Position mixin
8
+
9
+ ### Removed
10
+
11
+ - Remove dropbar push mode from Navbar component
12
+
13
+ ### Fixed
14
+
15
+ - Fix dropbar dropdown alignment
16
+ - Fix dropbar dropdown top margin flickering
17
+ - Fix Switcher component with disabled toggles
18
+ - Fix responsiveness in Responsive component
19
+
3
20
  ## 3.13.1 (March 18, 2022)
4
21
 
5
22
  ### Fixed
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.13.2-dev.97384959 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.13.2-dev.aa6a91433 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -3227,6 +3227,7 @@ select.uk-form-width-xsmall {
3227
3227
  /* 2 */
3228
3228
  position: absolute;
3229
3229
  z-index: 1020;
3230
+ --uk-position-margin-offset: 20px;
3230
3231
  /* 3 */
3231
3232
  box-sizing: border-box;
3232
3233
  width: 300px;
@@ -3235,21 +3236,6 @@ select.uk-form-width-xsmall {
3235
3236
  .uk-drop.uk-open {
3236
3237
  display: block;
3237
3238
  }
3238
- /* Direction / Alignment modifiers
3239
- ========================================================================== */
3240
- /* Direction */
3241
- [class*='uk-drop-top'] {
3242
- margin-top: -20px;
3243
- }
3244
- [class*='uk-drop-bottom'] {
3245
- margin-top: 20px;
3246
- }
3247
- [class*='uk-drop-right'] {
3248
- margin-right: -20px;
3249
- }
3250
- [class*='uk-drop-left'] {
3251
- margin-right: 20px;
3252
- }
3253
3239
  /* Grid modifiers
3254
3240
  ========================================================================== */
3255
3241
  .uk-drop-stack .uk-drop-grid > * {
@@ -3270,6 +3256,7 @@ select.uk-form-width-xsmall {
3270
3256
  /* 2 */
3271
3257
  position: absolute;
3272
3258
  z-index: 1020;
3259
+ --uk-position-margin-offset: 10px;
3273
3260
  /* 3 */
3274
3261
  box-sizing: border-box;
3275
3262
  min-width: 200px;
@@ -3321,21 +3308,6 @@ select.uk-form-width-xsmall {
3321
3308
  .uk-dropdown-nav .uk-nav-sub li.uk-active > a {
3322
3309
  color: #666;
3323
3310
  }
3324
- /* Direction / Alignment modifiers
3325
- ========================================================================== */
3326
- /* Direction */
3327
- [class*='uk-dropdown-top'] {
3328
- margin-top: -10px;
3329
- }
3330
- [class*='uk-dropdown-bottom'] {
3331
- margin-top: 10px;
3332
- }
3333
- [class*='uk-dropdown-right'] {
3334
- margin-right: -10px;
3335
- }
3336
- [class*='uk-dropdown-left'] {
3337
- margin-right: 10px;
3338
- }
3339
3311
  /* Grid modifiers
3340
3312
  ========================================================================== */
3341
3313
  .uk-dropdown-stack .uk-dropdown-grid > * {
@@ -3830,10 +3802,23 @@ select.uk-form-width-xsmall {
3830
3802
  .uk-offcanvas-close {
3831
3803
  position: absolute;
3832
3804
  z-index: 1000;
3833
- top: 20px;
3834
- left: 20px;
3805
+ top: 5px;
3806
+ left: 5px;
3835
3807
  padding: 5px;
3836
3808
  }
3809
+ /* Tablet landscape and bigger */
3810
+ @media (min-width: 960px) {
3811
+ .uk-offcanvas-close {
3812
+ top: 20px;
3813
+ left: 20px;
3814
+ }
3815
+ }
3816
+ /*
3817
+ * Remove margin from adjacent element
3818
+ */
3819
+ .uk-offcanvas-close:first-child + * {
3820
+ margin-top: 0;
3821
+ }
3837
3822
  /* Overlay
3838
3823
  ========================================================================== */
3839
3824
  /*
@@ -4085,6 +4070,7 @@ select.uk-form-width-xsmall {
4085
4070
  /* 2 */
4086
4071
  position: absolute;
4087
4072
  z-index: 1030;
4073
+ --uk-position-margin-offset: 10px;
4088
4074
  /* 3 */
4089
4075
  top: 0;
4090
4076
  /* 4 */
@@ -4101,21 +4087,6 @@ select.uk-form-width-xsmall {
4101
4087
  .uk-tooltip.uk-active {
4102
4088
  display: block;
4103
4089
  }
4104
- /* Direction / Alignment modifiers
4105
- ========================================================================== */
4106
- /* Direction */
4107
- [class*='uk-tooltip-top'] {
4108
- margin-top: -10px;
4109
- }
4110
- [class*='uk-tooltip-bottom'] {
4111
- margin-top: 10px;
4112
- }
4113
- [class*='uk-tooltip-right'] {
4114
- margin-right: -10px;
4115
- }
4116
- [class*='uk-tooltip-left'] {
4117
- margin-right: 10px;
4118
- }
4119
4090
  /* ========================================================================
4120
4091
  Component: Sortable
4121
4092
  ========================================================================== */
@@ -4966,6 +4937,7 @@ ul.uk-nav-sub {
4966
4937
  /* 2 */
4967
4938
  position: absolute;
4968
4939
  z-index: 1020;
4940
+ --uk-position-margin-offset: 0;
4969
4941
  /* 3 */
4970
4942
  box-sizing: border-box;
4971
4943
  width: 200px;
@@ -4978,22 +4950,6 @@ ul.uk-nav-sub {
4978
4950
  .uk-navbar-dropdown.uk-open {
4979
4951
  display: block;
4980
4952
  }
4981
- /*
4982
- * Direction / Alignment modifiers
4983
- */
4984
- /* Direction */
4985
- [class*='uk-navbar-dropdown-top'] {
4986
- margin-top: 0;
4987
- }
4988
- [class*='uk-navbar-dropdown-bottom'] {
4989
- margin-top: 0;
4990
- }
4991
- [class*='uk-navbar-dropdown-right'] {
4992
- margin-right: 0;
4993
- }
4994
- [class*='uk-navbar-dropdown-left'] {
4995
- margin-right: 0;
4996
- }
4997
4953
  /*
4998
4954
  * Grid
4999
4955
  * Adopts `uk-grid`
@@ -5030,10 +4986,16 @@ ul.uk-nav-sub {
5030
4986
  }
5031
4987
  /*
5032
4988
  * Dropbar modifier
4989
+ * 1. Set position
4990
+ * 2. Bottom padding for dropbar
4991
+ * 3. Horizontal padding
5033
4992
  */
5034
4993
  .uk-navbar-dropdown-dropbar {
5035
- margin-top: 0;
4994
+ /* 1 */
4995
+ --uk-position-margin-offset: 0;
4996
+ /* 2 */
5036
4997
  margin-bottom: 0;
4998
+ padding: 15px;
5037
4999
  }
5038
5000
  /* Dropdown Nav
5039
5001
  * Adopts `uk-nav`
@@ -5079,16 +5041,11 @@ ul.uk-nav-sub {
5079
5041
  /* Dropbar
5080
5042
  ========================================================================== */
5081
5043
  .uk-navbar-dropbar {
5082
- background: #f8f8f8;
5083
- }
5084
- /*
5085
- * Slide modifier
5086
- */
5087
- .uk-navbar-dropbar-slide {
5088
5044
  position: absolute;
5089
5045
  z-index: 980;
5090
5046
  right: 0;
5091
5047
  left: 0;
5048
+ background: #f8f8f8;
5092
5049
  }
5093
5050
  /* ========================================================================
5094
5051
  Component: Subnav