uikit 3.15.17 → 3.15.18-dev.9b1dbaa5d

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/CHANGELOG.md +6 -0
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  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 +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  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 +1 -1
  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 +1 -1
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  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 +9 -2
  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 +9 -2
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/core/sticky.js +3 -0
  44. package/src/js/util/viewport.js +4 -0
  45. package/tests/tooltip.html +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.15.17",
5
+ "version": "3.15.18-dev.9b1dbaa5d",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -210,6 +210,7 @@ export default {
210
210
  );
211
211
 
212
212
  sticky =
213
+ maxScrollHeight &&
213
214
  !this.showOnUp &&
214
215
  start + offset === topOffset &&
215
216
  end ===
@@ -236,6 +237,8 @@ export default {
236
237
  if (sticky) {
237
238
  height = width = margin = 0;
238
239
  css(this.$el, { position: 'sticky', top: offset });
240
+ } else if (!this.isFixed) {
241
+ css(this.$el, { position: '', top: '' });
239
242
  }
240
243
  const { placeholder } = this;
241
244
 
@@ -142,6 +142,10 @@ export function offsetViewport(scrollElement) {
142
142
  }
143
143
 
144
144
  let rect = offset(viewportElement);
145
+ if (css(viewportElement, 'display') === 'inline') {
146
+ return rect;
147
+ }
148
+
145
149
  for (let [prop, dir, start, end] of [
146
150
  ['width', 'x', 'left', 'right'],
147
151
  ['height', 'y', 'top', 'bottom'],
@@ -77,7 +77,7 @@
77
77
  <tr>
78
78
  <td><code>pos</code></td>
79
79
  <td>String</td>
80
- <td>'bottom-left'</td>
80
+ <td>'top-center'</td>
81
81
  <td>Tooltip position.</td>
82
82
  </tr>
83
83
  <tr>