uikit 3.13.2-dev.d4aecc3e6 → 3.13.2

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 (71) hide show
  1. package/.eslintrc.json +9 -0
  2. package/CHANGELOG.md +15 -1
  3. package/dist/css/uikit-core-rtl.css +31 -71
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +31 -71
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +31 -71
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +31 -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 +43 -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 +47 -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 +12 -13
  47. package/src/js/core/responsive.js +1 -1
  48. package/src/js/core/sticky.js +1 -1
  49. package/src/js/core/video.js +1 -1
  50. package/src/js/mixin/media.js +4 -4
  51. package/src/js/mixin/position.js +4 -9
  52. package/src/js/util/observer.js +2 -1
  53. package/src/js/util/style.js +13 -19
  54. package/src/less/components/drop.less +3 -11
  55. package/src/less/components/dropdown.less +3 -11
  56. package/src/less/components/navbar.less +13 -23
  57. package/src/less/components/offcanvas.less +19 -1
  58. package/src/less/components/tooltip.less +2 -11
  59. package/src/less/theme/navbar.less +1 -3
  60. package/src/scss/components/drop.scss +3 -11
  61. package/src/scss/components/dropdown.scss +3 -11
  62. package/src/scss/components/navbar.scss +13 -23
  63. package/src/scss/components/offcanvas.scss +19 -1
  64. package/src/scss/components/tooltip.scss +2 -11
  65. package/src/scss/mixins-theme.scss +1 -2
  66. package/src/scss/mixins.scss +0 -1
  67. package/src/scss/theme/navbar.scss +0 -2
  68. package/src/scss/variables-theme.scss +7 -5
  69. package/src/scss/variables.scss +7 -5
  70. package/tests/navbar.html +2 -8
  71. 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,10 +1,24 @@
1
1
  # Changelog
2
2
 
3
- ## WIP
3
+ ## 3.13.2 (March 25, 2022)
4
+
5
+ ### Changed
6
+
7
+ - Use custom property for direction offset in components based on Position mixin
8
+ - Add max-width to drops in Drop, Dropdown and Navbar components
9
+
10
+ ### Removed
11
+
12
+ - Remove dropbar push mode from Navbar component
4
13
 
5
14
  ### Fixed
6
15
 
16
+ - Fix dropbar dropdown alignment
17
+ - Fix dropbar dropdown top margin flickering
7
18
  - Fix Switcher component with disabled toggles
19
+ - Fix responsiveness in Responsive component
20
+ - Fix video autoplay
21
+ - Fix importing UIkit in Next.js
8
22
 
9
23
  ## 3.13.1 (March 18, 2022)
10
24
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.13.2-dev.d4aecc3e6 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.13.2 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -3227,29 +3227,16 @@ 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;
3234
+ max-width: 100vw;
3233
3235
  }
3234
3236
  /* Show */
3235
3237
  .uk-drop.uk-open {
3236
3238
  display: block;
3237
3239
  }
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
3240
  /* Grid modifiers
3254
3241
  ========================================================================== */
3255
3242
  .uk-drop-stack .uk-drop-grid > * {
@@ -3270,9 +3257,11 @@ select.uk-form-width-xsmall {
3270
3257
  /* 2 */
3271
3258
  position: absolute;
3272
3259
  z-index: 1020;
3260
+ --uk-position-margin-offset: 10px;
3273
3261
  /* 3 */
3274
3262
  box-sizing: border-box;
3275
3263
  min-width: 200px;
3264
+ max-width: 100vw;
3276
3265
  /* 4 */
3277
3266
  padding: 15px;
3278
3267
  background: #f8f8f8;
@@ -3321,21 +3310,6 @@ select.uk-form-width-xsmall {
3321
3310
  .uk-dropdown-nav .uk-nav-sub li.uk-active > a {
3322
3311
  color: #666;
3323
3312
  }
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
3313
  /* Grid modifiers
3340
3314
  ========================================================================== */
3341
3315
  .uk-dropdown-stack .uk-dropdown-grid > * {
@@ -3830,10 +3804,23 @@ select.uk-form-width-xsmall {
3830
3804
  .uk-offcanvas-close {
3831
3805
  position: absolute;
3832
3806
  z-index: 1000;
3833
- top: 20px;
3834
- left: 20px;
3807
+ top: 5px;
3808
+ left: 5px;
3835
3809
  padding: 5px;
3836
3810
  }
3811
+ /* Tablet landscape and bigger */
3812
+ @media (min-width: 960px) {
3813
+ .uk-offcanvas-close {
3814
+ top: 20px;
3815
+ left: 20px;
3816
+ }
3817
+ }
3818
+ /*
3819
+ * Remove margin from adjacent element
3820
+ */
3821
+ .uk-offcanvas-close:first-child + * {
3822
+ margin-top: 0;
3823
+ }
3837
3824
  /* Overlay
3838
3825
  ========================================================================== */
3839
3826
  /*
@@ -4085,6 +4072,7 @@ select.uk-form-width-xsmall {
4085
4072
  /* 2 */
4086
4073
  position: absolute;
4087
4074
  z-index: 1030;
4075
+ --uk-position-margin-offset: 10px;
4088
4076
  /* 3 */
4089
4077
  top: 0;
4090
4078
  /* 4 */
@@ -4101,21 +4089,6 @@ select.uk-form-width-xsmall {
4101
4089
  .uk-tooltip.uk-active {
4102
4090
  display: block;
4103
4091
  }
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
4092
  /* ========================================================================
4120
4093
  Component: Sortable
4121
4094
  ========================================================================== */
@@ -4966,9 +4939,11 @@ ul.uk-nav-sub {
4966
4939
  /* 2 */
4967
4940
  position: absolute;
4968
4941
  z-index: 1020;
4942
+ --uk-position-margin-offset: 0;
4969
4943
  /* 3 */
4970
4944
  box-sizing: border-box;
4971
4945
  width: 200px;
4946
+ max-width: 100vw;
4972
4947
  /* 4 */
4973
4948
  padding: 15px;
4974
4949
  background: #f8f8f8;
@@ -4978,22 +4953,6 @@ ul.uk-nav-sub {
4978
4953
  .uk-navbar-dropdown.uk-open {
4979
4954
  display: block;
4980
4955
  }
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
4956
  /*
4998
4957
  * Grid
4999
4958
  * Adopts `uk-grid`
@@ -5030,10 +4989,16 @@ ul.uk-nav-sub {
5030
4989
  }
5031
4990
  /*
5032
4991
  * Dropbar modifier
4992
+ * 1. Set position
4993
+ * 2. Bottom padding for dropbar
4994
+ * 3. Horizontal padding
5033
4995
  */
5034
4996
  .uk-navbar-dropdown-dropbar {
5035
- margin-top: 0;
4997
+ /* 1 */
4998
+ --uk-position-margin-offset: 0;
4999
+ /* 2 */
5036
5000
  margin-bottom: 0;
5001
+ padding: 15px;
5037
5002
  }
5038
5003
  /* Dropdown Nav
5039
5004
  * Adopts `uk-nav`
@@ -5079,16 +5044,11 @@ ul.uk-nav-sub {
5079
5044
  /* Dropbar
5080
5045
  ========================================================================== */
5081
5046
  .uk-navbar-dropbar {
5082
- background: #f8f8f8;
5083
- }
5084
- /*
5085
- * Slide modifier
5086
- */
5087
- .uk-navbar-dropbar-slide {
5088
5047
  position: absolute;
5089
5048
  z-index: 980;
5090
5049
  right: 0;
5091
5050
  left: 0;
5051
+ background: #f8f8f8;
5092
5052
  }
5093
5053
  /* ========================================================================
5094
5054
  Component: Subnav