uikit 3.25.17-dev.80dfe87 → 3.25.17-dev.8c70e44

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 (200) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/build/prefix.js +1 -1
  3. package/build/publishDev.js +1 -1
  4. package/build/release.js +2 -2
  5. package/build/scope.js +1 -1
  6. package/build/scss.js +1 -1
  7. package/dist/css/uikit-core-rtl.css +892 -802
  8. package/dist/css/uikit-core-rtl.min.css +1 -1
  9. package/dist/css/uikit-core.css +892 -802
  10. package/dist/css/uikit-core.min.css +1 -1
  11. package/dist/css/uikit-rtl.css +893 -803
  12. package/dist/css/uikit-rtl.min.css +1 -1
  13. package/dist/css/uikit.css +893 -803
  14. package/dist/css/uikit.min.css +1 -1
  15. package/dist/js/components/countdown.js +1 -1
  16. package/dist/js/components/countdown.min.js +1 -1
  17. package/dist/js/components/filter.js +1 -1
  18. package/dist/js/components/filter.min.js +1 -1
  19. package/dist/js/components/lightbox-panel.js +133 -132
  20. package/dist/js/components/lightbox-panel.min.js +1 -1
  21. package/dist/js/components/lightbox.js +134 -133
  22. package/dist/js/components/lightbox.min.js +1 -1
  23. package/dist/js/components/marquee.js +179 -0
  24. package/dist/js/components/marquee.min.js +1 -0
  25. package/dist/js/components/notification.js +1 -1
  26. package/dist/js/components/notification.min.js +1 -1
  27. package/dist/js/components/parallax.js +8 -12
  28. package/dist/js/components/parallax.min.js +1 -1
  29. package/dist/js/components/slider-parallax.js +8 -12
  30. package/dist/js/components/slider-parallax.min.js +1 -1
  31. package/dist/js/components/slider.js +41 -25
  32. package/dist/js/components/slider.min.js +1 -1
  33. package/dist/js/components/slideshow-parallax.js +8 -12
  34. package/dist/js/components/slideshow-parallax.min.js +1 -1
  35. package/dist/js/components/slideshow.js +71 -102
  36. package/dist/js/components/slideshow.min.js +1 -1
  37. package/dist/js/components/sortable.js +1 -1
  38. package/dist/js/components/sortable.min.js +1 -1
  39. package/dist/js/components/tooltip.js +19 -19
  40. package/dist/js/components/tooltip.min.js +1 -1
  41. package/dist/js/components/upload.js +1 -1
  42. package/dist/js/components/upload.min.js +1 -1
  43. package/dist/js/uikit-core.js +754 -262
  44. package/dist/js/uikit-core.min.js +1 -1
  45. package/dist/js/uikit-icons.js +1 -1
  46. package/dist/js/uikit-icons.min.js +1 -1
  47. package/dist/js/uikit.js +629 -374
  48. package/dist/js/uikit.min.js +1 -1
  49. package/package.json +2 -2
  50. package/src/js/api/component.js +2 -3
  51. package/src/js/api/observables.js +2 -4
  52. package/src/js/api/options.js +6 -3
  53. package/src/js/api/props.js +1 -4
  54. package/src/js/api/state.js +7 -8
  55. package/src/js/components/index.js +1 -0
  56. package/src/js/components/internal/lightbox-animations.js +7 -26
  57. package/src/js/components/internal/slideshow-animations.js +15 -62
  58. package/src/js/components/lightbox-panel.js +121 -96
  59. package/src/js/components/lightbox.js +5 -8
  60. package/src/js/components/marquee.js +123 -0
  61. package/src/js/components/tooltip.js +4 -2
  62. package/src/js/core/accordion.js +78 -29
  63. package/src/js/core/drop.js +5 -4
  64. package/src/js/core/dropnav.js +3 -3
  65. package/src/js/core/grid.js +5 -19
  66. package/src/js/core/height-match.js +1 -2
  67. package/src/js/core/margin.js +3 -0
  68. package/src/js/core/overflow-fade.js +5 -5
  69. package/src/js/core/sticky.js +1 -1
  70. package/src/js/core/switcher.js +24 -44
  71. package/src/js/core/video.js +172 -15
  72. package/src/js/mixin/connect.js +57 -0
  73. package/src/js/mixin/internal/slideshow-animations.js +5 -13
  74. package/src/js/mixin/internal/slideshow-transitioner.js +2 -2
  75. package/src/js/mixin/modal.js +4 -3
  76. package/src/js/mixin/parallax.js +1 -4
  77. package/src/js/mixin/position.js +1 -1
  78. package/src/js/mixin/scroll-driven.js +57 -0
  79. package/src/js/mixin/slider-nav.js +1 -1
  80. package/src/js/mixin/slider-parallax.js +9 -38
  81. package/src/js/mixin/togglable.js +13 -14
  82. package/src/js/util/attr.js +7 -7
  83. package/src/js/util/class.js +1 -1
  84. package/src/js/util/dom.js +3 -4
  85. package/src/js/util/lang.js +1 -1
  86. package/src/js/util/player.js +4 -4
  87. package/src/js/util/style.js +10 -15
  88. package/src/js/util/viewport.js +22 -25
  89. package/src/less/components/_import.less +6 -1
  90. package/src/less/components/base.less +1 -1
  91. package/src/less/components/button.less +1 -1
  92. package/src/less/components/dropcap.less +71 -0
  93. package/src/less/components/floating-shadow.less +65 -0
  94. package/src/less/components/form.less +5 -5
  95. package/src/less/components/grid.less +57 -64
  96. package/src/less/components/logo.less +94 -0
  97. package/src/less/components/margin.less +81 -81
  98. package/src/less/components/marquee.less +133 -0
  99. package/src/less/components/nav.less +1 -1
  100. package/src/less/components/padding.less +9 -9
  101. package/src/less/components/utility.less +0 -157
  102. package/src/less/theme/_import.less +5 -1
  103. package/src/less/theme/dropcap.less +29 -0
  104. package/src/less/theme/floating-shadow.less +20 -0
  105. package/src/less/theme/logo.less +29 -0
  106. package/src/less/theme/marquee.less +14 -0
  107. package/src/less/theme/utility.less +0 -32
  108. package/src/scss/components/_import.scss +6 -1
  109. package/src/scss/components/base.scss +1 -1
  110. package/src/scss/components/button.scss +1 -1
  111. package/src/scss/components/dropcap.scss +63 -0
  112. package/src/scss/components/floating-shadow.scss +62 -0
  113. package/src/scss/components/form.scss +5 -5
  114. package/src/scss/components/grid.scss +57 -64
  115. package/src/scss/components/logo.scss +75 -0
  116. package/src/scss/components/margin.scss +81 -81
  117. package/src/scss/components/marquee.scss +136 -0
  118. package/src/scss/components/nav.scss +1 -1
  119. package/src/scss/components/padding.scss +9 -9
  120. package/src/scss/components/utility.scss +0 -128
  121. package/src/scss/mixins-theme.scss +41 -32
  122. package/src/scss/mixins.scss +38 -29
  123. package/src/scss/variables-theme.scss +14 -9
  124. package/src/scss/variables.scss +14 -9
  125. package/tests/accordion.html +77 -10
  126. package/tests/alert.html +1 -1
  127. package/tests/align.html +5 -5
  128. package/tests/animation.html +4 -4
  129. package/tests/article.html +7 -7
  130. package/tests/background.html +2 -2
  131. package/tests/badge.html +1 -1
  132. package/tests/base.html +2 -2
  133. package/tests/button.html +1 -1
  134. package/tests/card.html +15 -15
  135. package/tests/close.html +2 -2
  136. package/tests/comment.html +9 -9
  137. package/tests/container.html +2 -2
  138. package/tests/countdown.html +21 -21
  139. package/tests/cover.html +3 -3
  140. package/tests/description-list.html +1 -1
  141. package/tests/divider.html +3 -3
  142. package/tests/dotnav.html +1 -1
  143. package/tests/drop.html +7 -7
  144. package/tests/dropbar.html +5 -5
  145. package/tests/dropcap.html +26 -0
  146. package/tests/dropdown.html +1 -1
  147. package/tests/dropnav.html +18 -18
  148. package/tests/filter.html +3 -3
  149. package/tests/floating-shadow.html +44 -0
  150. package/tests/form.html +14 -14
  151. package/tests/grid.html +41 -47
  152. package/tests/heading.html +2 -2
  153. package/tests/height-viewport.html +4 -4
  154. package/tests/height.html +5 -5
  155. package/tests/icon.html +8 -8
  156. package/tests/image.html +6 -6
  157. package/tests/index.html +13 -13
  158. package/tests/js/index.js +1 -1
  159. package/tests/leader.html +5 -5
  160. package/tests/lightbox.html +6 -6
  161. package/tests/link.html +1 -1
  162. package/tests/list.html +4 -4
  163. package/tests/logo.html +84 -0
  164. package/tests/margin.html +7 -7
  165. package/tests/marker.html +3 -3
  166. package/tests/marquee.html +617 -0
  167. package/tests/modal.html +3 -3
  168. package/tests/nav.html +5 -5
  169. package/tests/navbar.html +27 -27
  170. package/tests/notification.html +2 -2
  171. package/tests/offcanvas.html +12 -12
  172. package/tests/overlay.html +3 -3
  173. package/tests/padding.html +1 -1
  174. package/tests/pagination.html +3 -3
  175. package/tests/parallax.html +1 -1
  176. package/tests/position.html +6 -6
  177. package/tests/scrollspy.html +12 -12
  178. package/tests/search.html +5 -5
  179. package/tests/section.html +17 -17
  180. package/tests/slidenav.html +3 -3
  181. package/tests/slider.html +5 -5
  182. package/tests/slideshow.html +3 -3
  183. package/tests/sortable.html +15 -15
  184. package/tests/sticky-navbar.html +4 -4
  185. package/tests/sticky-parallax.html +3 -3
  186. package/tests/sticky.html +3 -3
  187. package/tests/svg.html +3 -2
  188. package/tests/switcher.html +6 -6
  189. package/tests/tab.html +4 -4
  190. package/tests/text.html +3 -3
  191. package/tests/tile.html +4 -4
  192. package/tests/toggle.html +1 -1
  193. package/tests/tooltip.html +3 -3
  194. package/tests/totop.html +2 -2
  195. package/tests/transition.html +1 -1
  196. package/tests/upload.html +5 -5
  197. package/tests/utility.html +16 -116
  198. package/tests/video.html +224 -24
  199. package/tests/visibility.html +4 -4
  200. package/tests/width.html +12 -12
@@ -13,9 +13,6 @@
13
13
  // `uk-object-*`
14
14
  // `uk-border-*`
15
15
  // `uk-box-shadow-*`
16
- // `uk-box-shadow-bottom`
17
- // `uk-dropcap`
18
- // `uk-logo`
19
16
  // `uk-blend-*`
20
17
  // `uk-transform-*`
21
18
  // `uk-transform-origin-*`
@@ -48,15 +45,6 @@
48
45
  @box-shadow-bottom-background: #444;
49
46
  @box-shadow-bottom-blur: 20px;
50
47
 
51
- @dropcap-margin-right: 10px;
52
- @dropcap-font-size: ((@global-line-height * 3) * 1em);
53
- @dropcap-line-height: 1;
54
-
55
- @logo-font-size: @global-large-font-size;
56
- @logo-font-family: @global-font-family;
57
- @logo-color: @global-emphasis-color;
58
- @logo-hover-color: @global-emphasis-color;
59
-
60
48
  @dragover-box-shadow: 0 0 20px rgba(100,100,100,0.3);
61
49
 
62
50
 
@@ -368,114 +356,6 @@
368
356
  .uk-box-shadow-hover-xlarge:hover { box-shadow: @global-xlarge-box-shadow; }
369
357
 
370
358
 
371
- /* Box-shadow bottom
372
- ========================================================================== */
373
-
374
- /*
375
- * 1. Set position.
376
- * 2. Set style
377
- * 3. Fix shadow being clipped in Safari if container is animated
378
- */
379
-
380
- @supports (filter: blur(0)) {
381
-
382
- .uk-box-shadow-bottom {
383
- display: inline-block;
384
- position: relative;
385
- z-index: 0;
386
- max-width: 100%;
387
- vertical-align: middle;
388
- }
389
-
390
- .uk-box-shadow-bottom::after {
391
- content: "";
392
- /* 1 */
393
- position: absolute;
394
- bottom: @box-shadow-bottom-bottom;
395
- left: 0;
396
- right: 0;
397
- z-index: -1;
398
- /* 2 */
399
- height: @box-shadow-bottom-height;
400
- border-radius: @box-shadow-bottom-border-radius;
401
- background: @box-shadow-bottom-background;
402
- filter: blur(@box-shadow-bottom-blur);
403
- /* 3 */
404
- will-change: filter;
405
- .hook-box-shadow-bottom();
406
- }
407
-
408
- }
409
-
410
-
411
- /* Drop cap
412
- ========================================================================== */
413
-
414
- /*
415
- * 1. Firefox doesn't apply `::first-letter` if the first letter is inside child elements
416
- * https://bugzilla.mozilla.org/show_bug.cgi?id=214004
417
- * 2. In Firefox, a floating `::first-letter` doesn't have a line box and there for no `line-height`
418
- * https://bugzilla.mozilla.org/show_bug.cgi?id=317933
419
- */
420
-
421
- .uk-dropcap::first-letter,
422
- /* 1 */
423
- .uk-dropcap > p:first-of-type::first-letter {
424
- display: block;
425
- margin-right: @dropcap-margin-right;
426
- float: left;
427
- font-size: @dropcap-font-size;
428
- line-height: @dropcap-line-height;
429
- .hook-dropcap();
430
- }
431
-
432
- /* 2 */
433
- @-moz-document url-prefix() {
434
-
435
- .uk-dropcap::first-letter,
436
- .uk-dropcap > p:first-of-type::first-letter { margin-top: 1.1%; }
437
-
438
- }
439
-
440
-
441
- /* Logo
442
- ========================================================================== */
443
-
444
- /*
445
- * 1. Style
446
- * 2. Required for `a`
447
- * 3. Behave like image but can be overridden through flex utility classes
448
- */
449
-
450
- .uk-logo {
451
- /* 1 */
452
- font-size: @logo-font-size;
453
- font-family: @logo-font-family;
454
- color: @logo-color;
455
- /* 2 */
456
- text-decoration: none;
457
- .hook-logo();
458
- }
459
-
460
- /* 3 */
461
- :where(.uk-logo) {
462
- display: inline-block;
463
- vertical-align: middle;
464
- }
465
-
466
- /* Hover */
467
- .uk-logo:hover {
468
- color: @logo-hover-color;
469
- /* 1 */
470
- text-decoration: none;
471
- .hook-logo-hover();
472
- }
473
-
474
- .uk-logo :where(img, svg, video) { display: block; }
475
-
476
- .uk-logo-inverse { display: none; }
477
-
478
-
479
359
  /* Disabled State
480
360
  ========================================================================== */
481
361
 
@@ -553,41 +433,4 @@
553
433
  .hook-utility-misc();
554
434
 
555
435
  .hook-panel-scrollable() {}
556
- .hook-box-shadow-bottom() {}
557
- .hook-dropcap() {}
558
- .hook-logo() {}
559
- .hook-logo-hover() {}
560
436
  .hook-utility-misc() {}
561
-
562
-
563
- // Inverse
564
- // ========================================================================
565
-
566
- @inverse-logo-color: @inverse-global-emphasis-color;
567
- @inverse-logo-hover-color: @inverse-global-emphasis-color;
568
-
569
- .hook-inverse() {
570
-
571
- .uk-dropcap::first-letter,
572
- .uk-dropcap p:first-of-type::first-letter {
573
- .hook-inverse-dropcap();
574
- }
575
-
576
- .uk-logo {
577
- color: @inverse-logo-color;
578
- .hook-inverse-logo();
579
- }
580
-
581
- .uk-logo:hover {
582
- color: @inverse-logo-hover-color;
583
- .hook-inverse-logo-hover();
584
- }
585
-
586
- .uk-logo:has(.uk-logo-inverse) > :not(picture:has(.uk-logo-inverse)):not(.uk-logo-inverse) { display: none; }
587
- .uk-logo-inverse { display: block; }
588
-
589
- }
590
-
591
- .hook-inverse-dropcap() {}
592
- .hook-inverse-logo() {}
593
- .hook-inverse-logo-hover() {}
@@ -12,6 +12,7 @@
12
12
  @import "icon.less";
13
13
  @import "form-range.less";
14
14
  @import "form.less";
15
+ @import "search.less";
15
16
  @import "button.less";
16
17
  @import "progress.less";
17
18
 
@@ -30,10 +31,11 @@
30
31
  @import "placeholder.less";
31
32
  @import "badge.less";
32
33
  @import "label.less";
34
+ @import "dropcap.less";
35
+ @import "floating-shadow.less";
33
36
  @import "overlay.less";
34
37
  @import "article.less";
35
38
  @import "comment.less";
36
- @import "search.less";
37
39
 
38
40
  // JavaScript
39
41
  @import "accordion.less";
@@ -41,6 +43,7 @@
41
43
  @import "dropbar.less";
42
44
  @import "modal.less";
43
45
  @import "slider.less";
46
+ @import "marquee.less";
44
47
  @import "sticky.less";
45
48
  @import "offcanvas.less";
46
49
  @import "leader.less";
@@ -65,6 +68,7 @@
65
68
 
66
69
  @import "dropdown.less";
67
70
  @import "lightbox.less";
71
+ @import "logo.less";
68
72
 
69
73
  // Utilities
70
74
  @import "animation.less";
@@ -0,0 +1,29 @@
1
+ //
2
+ // Component: Dropcap
3
+ //
4
+ // ========================================================================
5
+
6
+
7
+ // Variables
8
+ // ========================================================================
9
+
10
+
11
+ // Component
12
+ // ========================================================================
13
+
14
+ .hook-dropcap() {
15
+ // Prevent line wrap
16
+ margin-bottom: -2px;
17
+ }
18
+
19
+
20
+ // Miscellaneous
21
+ // ========================================================================
22
+
23
+ .hook-dropcap-misc() {}
24
+
25
+
26
+ // Inverse
27
+ // ========================================================================
28
+
29
+ .hook-inverse-dropcap() {}
@@ -0,0 +1,20 @@
1
+ //
2
+ // Component: Floating Shadow
3
+ //
4
+ // ========================================================================
5
+
6
+
7
+ // Variables
8
+ // ========================================================================
9
+
10
+
11
+ // Component
12
+ // ========================================================================
13
+
14
+ .hook-floating-shadow() {}
15
+
16
+
17
+ // Miscellaneous
18
+ // ========================================================================
19
+
20
+ .hook-floating-shadow-misc() {}
@@ -0,0 +1,29 @@
1
+ //
2
+ // Component: Logo
3
+ //
4
+ // ========================================================================
5
+
6
+
7
+ // Variables
8
+ // ========================================================================
9
+
10
+
11
+ // Component
12
+ // ========================================================================
13
+
14
+ .hook-logo() {}
15
+
16
+ .hook-logo-hover() {}
17
+
18
+
19
+ // Miscellaneous
20
+ // ========================================================================
21
+
22
+ .hook-logo-misc() {}
23
+
24
+
25
+ // Inverse
26
+ // ========================================================================
27
+
28
+ .hook-inverse-logo() {}
29
+ .hook-inverse-logo-hover() {}
@@ -0,0 +1,14 @@
1
+ //
2
+ // Component: Marquee
3
+ //
4
+ // ========================================================================
5
+
6
+
7
+ // Variables
8
+ // ========================================================================
9
+
10
+
11
+ // Miscellaneous
12
+ // ========================================================================
13
+
14
+ .hook-marquee-misc() {}
@@ -14,39 +14,7 @@
14
14
  .hook-panel-scrollable() {}
15
15
 
16
16
 
17
- // Box-shadow bottom
18
- // ========================================================================
19
-
20
- .hook-box-shadow-bottom() {}
21
-
22
-
23
- // Drop cap
24
- // ========================================================================
25
-
26
- .hook-dropcap() {
27
- // Prevent line wrap
28
- margin-bottom: -2px;
29
- }
30
-
31
-
32
- // Logo
33
- // ========================================================================
34
-
35
- .hook-logo() {}
36
-
37
- .hook-logo-hover() {}
38
-
39
-
40
17
  // Miscellaneous
41
18
  // ========================================================================
42
19
 
43
20
  .hook-utility-misc() {}
44
-
45
-
46
- // Inverse
47
- // ========================================================================
48
-
49
- .hook-inverse-dropcap() {}
50
-
51
- .hook-inverse-logo() {}
52
- .hook-inverse-logo-hover() {}
@@ -13,6 +13,7 @@
13
13
  @import "icon.scss";
14
14
  @import "form-range.scss";
15
15
  @import "form.scss"; // After: Icon, Form Range
16
+ @import "search.scss"; // After: Icon
16
17
  @import "button.scss";
17
18
  @import "progress.scss";
18
19
 
@@ -31,10 +32,11 @@
31
32
  @import "placeholder.scss";
32
33
  @import "badge.scss";
33
34
  @import "label.scss";
35
+ @import "dropcap.scss";
36
+ @import "floating-shadow.scss";
34
37
  @import "overlay.scss"; // After: Icon
35
38
  @import "article.scss";
36
39
  @import "comment.scss";
37
- @import "search.scss"; // After: Icon
38
40
 
39
41
  // JavaScript
40
42
  @import "accordion.scss";
@@ -44,6 +46,7 @@
44
46
  @import "modal.scss"; // After: Close
45
47
  @import "slideshow.scss";
46
48
  @import "slider.scss";
49
+ @import "marquee.scss";
47
50
  @import "sticky.scss";
48
51
  @import "offcanvas.scss";
49
52
  @import "switcher.scss";
@@ -70,8 +73,10 @@
70
73
  @import "tab.scss";
71
74
  @import "slidenav.scss"; // After: Icon
72
75
  @import "dotnav.scss";
76
+
73
77
  @import "dropdown.scss"; // After: Card, Nav
74
78
  @import "lightbox.scss"; // After: Close, Slidenav
79
+ @import "logo.scss"; // After: Navbar
75
80
 
76
81
  // Utilities
77
82
  @import "animation.scss";
@@ -429,7 +429,7 @@ blockquote {
429
429
  * Content
430
430
  */
431
431
 
432
- blockquote p:last-of-type { margin-bottom: 0; }
432
+ blockquote :where(p:last-of-type) { margin-bottom: 0; }
433
433
 
434
434
  blockquote footer {
435
435
  margin-top: $base-blockquote-footer-margin-top;
@@ -96,7 +96,7 @@
96
96
 
97
97
  /* Hover */
98
98
  .uk-button:hover {
99
- /* 9 */
99
+ /* 10 */
100
100
  text-decoration: none;
101
101
  @if(meta.mixin-exists(hook-button-hover)) {@include hook-button-hover();}
102
102
  }
@@ -0,0 +1,63 @@
1
+ @use "sass:meta";
2
+
3
+ // Name: Dropcap
4
+ // Description: Style for the drop cap
5
+ //
6
+ // Component: `uk-dropcap`
7
+ //
8
+ // ========================================================================
9
+
10
+
11
+ // Variables
12
+ // ========================================================================
13
+
14
+ /* ========================================================================
15
+ Component: Dropcap
16
+ ========================================================================== */
17
+
18
+ /*
19
+ * 1. Firefox doesn't apply `::first-letter` if the first letter is inside child elements
20
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=214004
21
+ * 2. In Firefox, a floating `::first-letter` doesn't have a line box and there for no `line-height`
22
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=317933
23
+ */
24
+
25
+ .uk-dropcap::first-letter,
26
+ /* 1 */
27
+ .uk-dropcap > p:first-of-type::first-letter {
28
+ display: block;
29
+ margin-right: $dropcap-margin-right;
30
+ float: left;
31
+ font-size: $dropcap-font-size;
32
+ line-height: $dropcap-line-height;
33
+ @if(meta.mixin-exists(hook-dropcap)) {@include hook-dropcap();}
34
+ }
35
+
36
+ /* 2 */
37
+ @-moz-document url-prefix() {
38
+
39
+ .uk-dropcap::first-letter,
40
+ .uk-dropcap > p:first-of-type::first-letter { margin-top: 1.1%; }
41
+
42
+ }
43
+
44
+
45
+ // Misc
46
+ // ========================================================================
47
+
48
+ @if(meta.mixin-exists(hook-dropcap-misc)) {@include hook-dropcap-misc();}
49
+
50
+
51
+ // Hooks
52
+ // ========================================================================
53
+
54
+ // @mixin hook-dropcap(){}
55
+ // @mixin hook-dropcap-misc(){}
56
+
57
+
58
+ // Inverse
59
+ // ========================================================================
60
+
61
+
62
+
63
+ // @mixin hook-inverse-dropcap(){}
@@ -0,0 +1,62 @@
1
+ @use "sass:meta";
2
+
3
+ // Name: Floating Shadow
4
+ // Description: Component to create floating shadows
5
+ //
6
+ // Component: `uk-floating-shadow`
7
+ //
8
+ // ========================================================================
9
+
10
+
11
+ // Variables
12
+ // ========================================================================
13
+
14
+
15
+ /* ========================================================================
16
+ Component: Floating Shadow
17
+ ========================================================================== */
18
+
19
+ /*
20
+ * 1. Set position.
21
+ * 2. Set style
22
+ * 3. Fix shadow being clipped in Safari if container is animated
23
+ */
24
+
25
+ .uk-floating-shadow {
26
+ display: inline-block;
27
+ position: relative;
28
+ z-index: 0;
29
+ max-width: 100%;
30
+ vertical-align: middle;
31
+ }
32
+
33
+ .uk-floating-shadow::after {
34
+ content: "";
35
+ /* 1 */
36
+ position: absolute;
37
+ bottom: $floating-shadow-bottom;
38
+ left: 0;
39
+ right: 0;
40
+ z-index: -1;
41
+ /* 2 */
42
+ height: $floating-shadow-height;
43
+ border-radius: $floating-shadow-border-radius;
44
+ background: $floating-shadow-background;
45
+ filter: blur($floating-shadow-blur);
46
+ /* 3 */
47
+ will-change: filter;
48
+ @if(meta.mixin-exists(hook-floating-shadow)) {@include hook-floating-shadow();}
49
+ }
50
+
51
+
52
+ // Misc
53
+ // ========================================================================
54
+
55
+ @if(meta.mixin-exists(hook-floating-shadow-misc)) {@include hook-floating-shadow-misc();}
56
+
57
+
58
+ // Hooks
59
+ // ========================================================================
60
+
61
+ // @mixin hook-floating-shadow(){}
62
+ // @mixin hook-floating-shadow-misc(){}
@@ -624,7 +624,7 @@ select.uk-form-width-xsmall { width: ($form-width-xsmall + 25px); }
624
624
  * Stacked
625
625
  */
626
626
 
627
- .uk-form-stacked .uk-form-label {
627
+ .uk-form-stacked :where(.uk-form-label) {
628
628
  display: block;
629
629
  margin-bottom: $form-stacked-margin-bottom;
630
630
  @if(meta.mixin-exists(hook-form-stacked-label)) {@include hook-form-stacked-label();}
@@ -638,7 +638,7 @@ select.uk-form-width-xsmall { width: ($form-width-xsmall + 25px); }
638
638
  @media (max-width: $breakpoint-small-max) {
639
639
 
640
640
  /* Behave like `uk-form-stacked` */
641
- .uk-form-horizontal .uk-form-label {
641
+ .uk-form-horizontal :where(.uk-form-label) {
642
642
  display: block;
643
643
  margin-bottom: $form-stacked-margin-bottom;
644
644
  @if(meta.mixin-exists(hook-form-stacked-label)) {@include hook-form-stacked-label();}
@@ -649,17 +649,17 @@ select.uk-form-width-xsmall { width: ($form-width-xsmall + 25px); }
649
649
  /* Tablet landscape and bigger */
650
650
  @media (min-width: $breakpoint-medium) {
651
651
 
652
- .uk-form-horizontal .uk-form-label {
652
+ .uk-form-horizontal :where(.uk-form-label) {
653
653
  width: $form-horizontal-label-width;
654
654
  margin-top: $form-horizontal-label-margin-top;
655
655
  float: left;
656
656
  @if(meta.mixin-exists(hook-form-horizontal-label)) {@include hook-form-horizontal-label();}
657
657
  }
658
658
 
659
- .uk-form-horizontal .uk-form-controls { margin-left: $form-horizontal-controls-margin-left; }
659
+ .uk-form-horizontal :where(.uk-form-controls) { margin-left: $form-horizontal-controls-margin-left; }
660
660
 
661
661
  /* Better vertical alignment if controls are checkboxes and radio buttons with text */
662
- .uk-form-horizontal .uk-form-controls-text { padding-top: $form-horizontal-controls-text-padding-top; }
662
+ .uk-form-horizontal :where(.uk-form-controls-text) { padding-top: $form-horizontal-controls-text-padding-top; }
663
663
 
664
664
  }
665
665