uikit 3.14.2-dev.404bdcedf → 3.14.2-dev.7f1f28069

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 (45) hide show
  1. package/dist/css/uikit-core-rtl.css +2 -2
  2. package/dist/css/uikit-core-rtl.min.css +1 -1
  3. package/dist/css/uikit-core.css +2 -2
  4. package/dist/css/uikit-core.min.css +1 -1
  5. package/dist/css/uikit-rtl.css +2 -2
  6. package/dist/css/uikit-rtl.min.css +1 -1
  7. package/dist/css/uikit.css +2 -2
  8. package/dist/css/uikit.min.css +1 -1
  9. package/dist/js/components/countdown.js +1 -1
  10. package/dist/js/components/countdown.min.js +1 -1
  11. package/dist/js/components/filter.js +1 -1
  12. package/dist/js/components/filter.min.js +1 -1
  13. package/dist/js/components/lightbox-panel.js +1 -1
  14. package/dist/js/components/lightbox-panel.min.js +1 -1
  15. package/dist/js/components/lightbox.js +1 -1
  16. package/dist/js/components/lightbox.min.js +1 -1
  17. package/dist/js/components/notification.js +1 -1
  18. package/dist/js/components/notification.min.js +1 -1
  19. package/dist/js/components/parallax.js +1 -1
  20. package/dist/js/components/parallax.min.js +1 -1
  21. package/dist/js/components/slider-parallax.js +1 -1
  22. package/dist/js/components/slider-parallax.min.js +1 -1
  23. package/dist/js/components/slider.js +1 -1
  24. package/dist/js/components/slider.min.js +1 -1
  25. package/dist/js/components/slideshow-parallax.js +1 -1
  26. package/dist/js/components/slideshow-parallax.min.js +1 -1
  27. package/dist/js/components/slideshow.js +1 -1
  28. package/dist/js/components/slideshow.min.js +1 -1
  29. package/dist/js/components/sortable.js +1 -1
  30. package/dist/js/components/sortable.min.js +1 -1
  31. package/dist/js/components/tooltip.js +5 -15
  32. package/dist/js/components/tooltip.min.js +1 -1
  33. package/dist/js/components/upload.js +1 -1
  34. package/dist/js/components/upload.min.js +1 -1
  35. package/dist/js/uikit-core.js +15 -27
  36. package/dist/js/uikit-core.min.js +1 -1
  37. package/dist/js/uikit-icons.js +1 -1
  38. package/dist/js/uikit-icons.min.js +1 -1
  39. package/dist/js/uikit.js +15 -27
  40. package/dist/js/uikit.min.js +1 -1
  41. package/package.json +1 -1
  42. package/src/js/mixin/position.js +6 -16
  43. package/src/js/util/position.js +13 -15
  44. package/src/less/components/navbar.less +1 -1
  45. package/src/scss/components/navbar.scss +1 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit",
3
3
  "title": "UIkit",
4
4
  "description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
5
- "version": "3.14.2-dev.404bdcedf",
5
+ "version": "3.14.2-dev.7f1f28069",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -22,22 +22,12 @@ export default {
22
22
  positionAt(element, target, boundary) {
23
23
  const [dir, align] = this.pos;
24
24
 
25
- const mainAxisOffset =
26
- toPx(
27
- this.offset === false ? getCssVar('position-offset', element) : this.offset,
28
- this.axis === 'x' ? 'width' : 'height',
29
- element
30
- ) * (includes(['left', 'top'], dir) ? -1 : 1);
31
-
32
- const crossAxisOffset = includes(['center', 'justify'], align)
33
- ? 0
34
- : toPx(
35
- getCssVar('position-shift-offset', element),
36
- this.axis === 'y' ? 'width' : 'height',
37
- element
38
- ) * (includes(['left', 'top'], align) ? 1 : -1);
39
-
40
- let offset = [mainAxisOffset, crossAxisOffset];
25
+ let offset = toPx(
26
+ this.offset === false ? getCssVar('position-offset', element) : this.offset,
27
+ this.axis === 'x' ? 'width' : 'height',
28
+ element
29
+ );
30
+ offset = [includes(['left', 'top'], dir) ? -offset : +offset, 0];
41
31
 
42
32
  const attach = {
43
33
  element: [flipPosition(dir), align],
@@ -143,21 +143,19 @@ function attachToWithFlip(element, target, options) {
143
143
  return false;
144
144
  }
145
145
 
146
- if (flip === true || includes(flip, dirs[1 - i][1])) {
147
- const newPos = attachToWithFlip(element, target, {
148
- ...options,
149
- attach: {
150
- element: elAttach.map(flipDir).reverse(),
151
- target: targetAttach.map(flipDir).reverse(),
152
- },
153
- offset: elOffset.reverse(),
154
- flip: flip === true ? flip : [...flip, dirs[1 - i][1]],
155
- recursion: true,
156
- });
157
-
158
- if (newPos && isInScrollArea(newPos, scrollElement, 1 - i)) {
159
- return newPos;
160
- }
146
+ const newPos = attachToWithFlip(element, target, {
147
+ ...options,
148
+ attach: {
149
+ element: elAttach.map(flipDir).reverse(),
150
+ target: targetAttach.map(flipDir).reverse(),
151
+ },
152
+ offset: elOffset.reverse(),
153
+ flip: flip === true ? flip : [...flip, dirs[1 - i][1]],
154
+ recursion: true,
155
+ });
156
+
157
+ if (newPos && isInScrollArea(newPos, scrollElement, 1 - i)) {
158
+ return newPos;
161
159
  }
162
160
  }
163
161
 
@@ -374,7 +374,6 @@
374
374
  position: absolute;
375
375
  z-index: @navbar-dropdown-z-index;
376
376
  --uk-position-offset: @navbar-dropdown-margin;
377
- --uk-position-shift-offset: 0;
378
377
  --uk-position-viewport-offset: 10;
379
378
  /* 3 */
380
379
  box-sizing: border-box;
@@ -424,6 +423,7 @@
424
423
  .uk-navbar-dropdown-dropbar {
425
424
  /* 1 */
426
425
  --uk-position-offset: @navbar-dropdown-dropbar-margin-top;
426
+ --uk-position-viewport-offset: 0;
427
427
  /* 2 */
428
428
  margin-bottom: @navbar-dropdown-dropbar-margin-bottom;
429
429
  /* 3 */
@@ -374,7 +374,6 @@ $navbar-dropbar-z-index: $global-z-index - 20 !default;
374
374
  position: absolute;
375
375
  z-index: $navbar-dropdown-z-index;
376
376
  --uk-position-offset: #{$navbar-dropdown-margin};
377
- --uk-position-shift-offset: 0;
378
377
  --uk-position-viewport-offset: 10;
379
378
  /* 3 */
380
379
  box-sizing: border-box;
@@ -424,6 +423,7 @@ $navbar-dropbar-z-index: $global-z-index - 20 !default;
424
423
  .uk-navbar-dropdown-dropbar {
425
424
  /* 1 */
426
425
  --uk-position-offset: #{$navbar-dropdown-dropbar-margin-top};
426
+ --uk-position-viewport-offset: 0;
427
427
  /* 2 */
428
428
  margin-bottom: $navbar-dropdown-dropbar-margin-bottom;
429
429
  /* 3 */