uikit 3.25.27-dev.9e97c1f → 3.25.27

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 (222) hide show
  1. package/CHANGELOG.md +2 -34
  2. package/build/prefix.js +1 -1
  3. package/build/publishDev.js +1 -1
  4. package/build/scope.js +1 -1
  5. package/build/scss.js +1 -1
  6. package/dist/css/uikit-core-rtl.css +1569 -1692
  7. package/dist/css/uikit-core-rtl.min.css +1 -1
  8. package/dist/css/uikit-core.css +1569 -1692
  9. package/dist/css/uikit-core.min.css +1 -1
  10. package/dist/css/uikit-rtl.css +1210 -1326
  11. package/dist/css/uikit-rtl.min.css +1 -1
  12. package/dist/css/uikit.css +1210 -1326
  13. package/dist/css/uikit.min.css +1 -1
  14. package/dist/js/components/countdown.js +1 -1
  15. package/dist/js/components/countdown.min.js +1 -1
  16. package/dist/js/components/filter.js +1 -1
  17. package/dist/js/components/filter.min.js +1 -1
  18. package/dist/js/components/lightbox-panel.js +135 -134
  19. package/dist/js/components/lightbox-panel.min.js +1 -1
  20. package/dist/js/components/lightbox.js +136 -135
  21. package/dist/js/components/lightbox.min.js +1 -1
  22. package/dist/js/components/notification.js +6 -8
  23. package/dist/js/components/notification.min.js +1 -1
  24. package/dist/js/components/parallax.js +12 -8
  25. package/dist/js/components/parallax.min.js +1 -1
  26. package/dist/js/components/slider-parallax.js +12 -8
  27. package/dist/js/components/slider-parallax.min.js +1 -1
  28. package/dist/js/components/slider.js +25 -51
  29. package/dist/js/components/slider.min.js +1 -1
  30. package/dist/js/components/slideshow-parallax.js +12 -8
  31. package/dist/js/components/slideshow-parallax.min.js +1 -1
  32. package/dist/js/components/slideshow.js +102 -81
  33. package/dist/js/components/slideshow.min.js +1 -1
  34. package/dist/js/components/sortable.js +1 -1
  35. package/dist/js/components/sortable.min.js +1 -1
  36. package/dist/js/components/tooltip.js +17 -15
  37. package/dist/js/components/tooltip.min.js +1 -1
  38. package/dist/js/components/upload.js +1 -1
  39. package/dist/js/components/upload.min.js +1 -1
  40. package/dist/js/uikit-core.js +313 -856
  41. package/dist/js/uikit-core.min.js +1 -1
  42. package/dist/js/uikit-icons.js +1 -1
  43. package/dist/js/uikit-icons.min.js +1 -1
  44. package/dist/js/uikit.js +377 -711
  45. package/dist/js/uikit.min.js +1 -1
  46. package/package.json +2 -2
  47. package/src/js/api/component.js +3 -2
  48. package/src/js/api/observables.js +4 -16
  49. package/src/js/api/options.js +3 -6
  50. package/src/js/api/props.js +3 -1
  51. package/src/js/api/state.js +8 -7
  52. package/src/js/components/index.js +0 -1
  53. package/src/js/components/internal/lightbox-animations.js +26 -7
  54. package/src/js/components/internal/slider-preload.js +0 -1
  55. package/src/js/components/internal/slideshow-animations.js +62 -15
  56. package/src/js/components/lightbox-panel.js +96 -121
  57. package/src/js/components/lightbox.js +8 -5
  58. package/src/js/components/notification.js +5 -7
  59. package/src/js/core/accordion.js +31 -62
  60. package/src/js/core/drop.js +3 -4
  61. package/src/js/core/dropnav.js +3 -3
  62. package/src/js/core/grid.js +19 -5
  63. package/src/js/core/margin.js +0 -3
  64. package/src/js/core/scroll.js +11 -0
  65. package/src/js/core/sticky.js +1 -1
  66. package/src/js/core/switcher.js +49 -12
  67. package/src/js/core/video.js +21 -236
  68. package/src/js/mixin/internal/slideshow-animations.js +13 -5
  69. package/src/js/mixin/internal/slideshow-transitioner.js +2 -2
  70. package/src/js/mixin/parallax.js +4 -1
  71. package/src/js/mixin/position.js +1 -1
  72. package/src/js/mixin/slider-parallax.js +38 -9
  73. package/src/js/mixin/togglable.js +14 -13
  74. package/src/js/util/attr.js +7 -7
  75. package/src/js/util/dom.js +4 -3
  76. package/src/js/util/lang.js +2 -2
  77. package/src/js/util/player.js +2 -4
  78. package/src/js/util/style.js +13 -12
  79. package/src/js/util/viewport.js +25 -22
  80. package/src/less/components/_import.less +3 -8
  81. package/src/less/components/animation.less +1 -1
  82. package/src/less/components/base.less +1 -1
  83. package/src/less/components/button.less +1 -1
  84. package/src/less/components/card.less +8 -8
  85. package/src/less/components/form.less +15 -15
  86. package/src/less/components/grid.less +65 -58
  87. package/src/less/components/lightbox.less +8 -2
  88. package/src/less/components/margin.less +124 -155
  89. package/src/less/components/modal.less +4 -1
  90. package/src/less/components/nav.less +1 -1
  91. package/src/less/components/navbar.less +1 -1
  92. package/src/less/components/padding.less +9 -9
  93. package/src/less/components/position.less +4 -9
  94. package/src/less/components/search.less +1 -1
  95. package/src/less/components/slideshow.less +4 -1
  96. package/src/less/components/switcher.less +2 -5
  97. package/src/less/components/table.less +4 -4
  98. package/src/less/components/text.less +4 -10
  99. package/src/less/components/utility.less +163 -0
  100. package/src/less/components/visibility.less +4 -4
  101. package/src/less/theme/_import.less +2 -6
  102. package/src/less/theme/alert.less +5 -0
  103. package/src/less/theme/thumbnav.less +4 -1
  104. package/src/less/theme/utility.less +32 -0
  105. package/src/scss/components/_import.scss +3 -8
  106. package/src/scss/components/animation.scss +1 -1
  107. package/src/scss/components/base.scss +1 -1
  108. package/src/scss/components/button.scss +1 -1
  109. package/src/scss/components/card.scss +8 -8
  110. package/src/scss/components/form.scss +14 -14
  111. package/src/scss/components/grid.scss +64 -57
  112. package/src/scss/components/lightbox.scss +8 -2
  113. package/src/scss/components/margin.scss +124 -155
  114. package/src/scss/components/modal.scss +4 -1
  115. package/src/scss/components/nav.scss +1 -1
  116. package/src/scss/components/navbar.scss +1 -1
  117. package/src/scss/components/padding.scss +9 -9
  118. package/src/scss/components/position.scss +4 -9
  119. package/src/scss/components/search.scss +1 -1
  120. package/src/scss/components/slideshow.scss +4 -1
  121. package/src/scss/components/switcher.scss +2 -5
  122. package/src/scss/components/table.scss +4 -4
  123. package/src/scss/components/text.scss +4 -10
  124. package/src/scss/components/utility.scss +129 -0
  125. package/src/scss/components/visibility.scss +4 -4
  126. package/src/scss/mixins-theme.scss +43 -44
  127. package/src/scss/mixins.scss +31 -40
  128. package/src/scss/variables-theme.scss +14 -14
  129. package/src/scss/variables.scss +14 -14
  130. package/tests/accordion.html +10 -77
  131. package/tests/alert.html +1 -1
  132. package/tests/align.html +5 -5
  133. package/tests/animation.html +4 -4
  134. package/tests/article.html +7 -7
  135. package/tests/background.html +2 -2
  136. package/tests/badge.html +1 -1
  137. package/tests/base.html +2 -2
  138. package/tests/button.html +1 -1
  139. package/tests/card.html +15 -15
  140. package/tests/close.html +2 -2
  141. package/tests/comment.html +9 -9
  142. package/tests/container.html +2 -2
  143. package/tests/countdown.html +21 -21
  144. package/tests/cover.html +3 -3
  145. package/tests/description-list.html +1 -1
  146. package/tests/divider.html +3 -3
  147. package/tests/dotnav.html +1 -1
  148. package/tests/drop.html +7 -7
  149. package/tests/dropbar.html +5 -5
  150. package/tests/dropdown.html +1 -1
  151. package/tests/dropnav.html +18 -18
  152. package/tests/filter.html +3 -3
  153. package/tests/form.html +14 -14
  154. package/tests/grid.html +47 -41
  155. package/tests/heading.html +2 -2
  156. package/tests/height-viewport.html +4 -4
  157. package/tests/height.html +5 -5
  158. package/tests/icon.html +8 -8
  159. package/tests/image.html +6 -6
  160. package/tests/index.html +13 -13
  161. package/tests/js/index.js +1 -1
  162. package/tests/leader.html +5 -5
  163. package/tests/lightbox.html +6 -6
  164. package/tests/link.html +1 -1
  165. package/tests/list.html +4 -4
  166. package/tests/margin.html +7 -59
  167. package/tests/marker.html +3 -3
  168. package/tests/modal.html +3 -3
  169. package/tests/nav.html +5 -5
  170. package/tests/navbar.html +27 -27
  171. package/tests/notification.html +2 -8
  172. package/tests/offcanvas.html +12 -12
  173. package/tests/overlay.html +3 -3
  174. package/tests/padding.html +1 -1
  175. package/tests/pagination.html +3 -3
  176. package/tests/parallax.html +1 -1
  177. package/tests/position.html +6 -6
  178. package/tests/scrollspy.html +13 -13
  179. package/tests/search.html +5 -5
  180. package/tests/section.html +17 -17
  181. package/tests/slidenav.html +3 -3
  182. package/tests/slider.html +5 -5
  183. package/tests/slideshow.html +3 -33
  184. package/tests/sortable.html +15 -15
  185. package/tests/sticky-navbar.html +4 -4
  186. package/tests/sticky-parallax.html +3 -3
  187. package/tests/sticky.html +3 -3
  188. package/tests/svg.html +2 -3
  189. package/tests/switcher.html +7 -7
  190. package/tests/tab.html +5 -5
  191. package/tests/text.html +3 -9
  192. package/tests/tile.html +4 -4
  193. package/tests/toggle.html +1 -1
  194. package/tests/tooltip.html +3 -3
  195. package/tests/totop.html +2 -2
  196. package/tests/transition.html +1 -1
  197. package/tests/upload.html +5 -5
  198. package/tests/utility.html +116 -16
  199. package/tests/video.html +24 -224
  200. package/tests/visibility.html +4 -4
  201. package/tests/width.html +12 -12
  202. package/dist/js/components/marquee.js +0 -215
  203. package/dist/js/components/marquee.min.js +0 -1
  204. package/src/js/components/marquee.js +0 -156
  205. package/src/js/mixin/connect.js +0 -90
  206. package/src/js/mixin/scroll-driven.js +0 -57
  207. package/src/less/components/dropcap.less +0 -71
  208. package/src/less/components/floating-shadow.less +0 -66
  209. package/src/less/components/logo.less +0 -94
  210. package/src/less/components/marquee.less +0 -133
  211. package/src/less/theme/dropcap.less +0 -29
  212. package/src/less/theme/floating-shadow.less +0 -20
  213. package/src/less/theme/logo.less +0 -29
  214. package/src/less/theme/marquee.less +0 -14
  215. package/src/scss/components/dropcap.scss +0 -63
  216. package/src/scss/components/floating-shadow.scss +0 -63
  217. package/src/scss/components/logo.scss +0 -75
  218. package/src/scss/components/marquee.scss +0 -136
  219. package/tests/dropcap.html +0 -26
  220. package/tests/floating-shadow.html +0 -44
  221. package/tests/logo.html +0 -84
  222. package/tests/marquee.html +0 -617
@@ -1,94 +0,0 @@
1
- // Name: Logo
2
- // Description: Style for the logo
3
- //
4
- // Component: `uk-logo`
5
- //
6
- // ========================================================================
7
-
8
-
9
- // Variables
10
- // ========================================================================
11
-
12
- @logo-font-size: @global-large-font-size;
13
- @logo-font-family: @global-font-family;
14
- @logo-color: @global-emphasis-color;
15
- @logo-hover-color: @global-emphasis-color;
16
-
17
- /* ========================================================================
18
- Component: Logo
19
- ========================================================================== */
20
-
21
- /*
22
- * 1. Style
23
- * 2. Required for `a`
24
- * 3. Behave like image but can be overridden through flex utility classes
25
- */
26
-
27
- .uk-logo {
28
- /* 1 */
29
- font-size: @logo-font-size;
30
- font-family: @logo-font-family;
31
- color: @logo-color;
32
- /* 2 */
33
- text-decoration: none;
34
- .hook-logo();
35
- }
36
-
37
- /* 3 */
38
- :where(.uk-logo) {
39
- display: inline-block;
40
- vertical-align: middle;
41
- }
42
-
43
- /* Hover */
44
- .uk-logo:hover {
45
- color: @logo-hover-color;
46
- /* 2 */
47
- text-decoration: none;
48
- .hook-logo-hover();
49
- }
50
-
51
- .uk-logo :where(img:not([uk-svg]), svg, video) { display: block; }
52
-
53
- .uk-logo-inverse:where(:not([uk-svg])) { display: none; }
54
-
55
-
56
- // Misc
57
- // ========================================================================
58
-
59
- .hook-logo-misc();
60
-
61
-
62
- // Hooks
63
- // ========================================================================
64
-
65
- .hook-logo() {}
66
- .hook-logo-hover() {}
67
- .hook-logo-misc() {}
68
-
69
-
70
- // Inverse
71
- // ========================================================================
72
-
73
- @inverse-logo-color: @inverse-global-emphasis-color;
74
- @inverse-logo-hover-color: @inverse-global-emphasis-color;
75
-
76
- .hook-inverse () {
77
-
78
- .uk-logo {
79
- color: @inverse-logo-color;
80
- .hook-inverse-logo();
81
- }
82
-
83
- .uk-logo:hover {
84
- color: @inverse-logo-hover-color;
85
- .hook-inverse-logo-hover();
86
- }
87
-
88
- .uk-logo:has(.uk-logo-inverse) > :not(picture:has(.uk-logo-inverse:not([uk-svg])), .uk-logo-inverse, [uk-svg]) { display: none; }
89
- .uk-logo-inverse:not([uk-svg]) { display: block; }
90
-
91
- }
92
-
93
- .hook-inverse-logo() {}
94
- .hook-inverse-logo-hover() {}
@@ -1,133 +0,0 @@
1
- // Name: Marquee
2
- // Description: Component to create scrolling areas
3
- //
4
- // Component: `uk-marquee`
5
- //
6
- // Sub-objects: `uk-marquee-items`
7
- //
8
- // Modifiers: `uk-marquee-vertical`
9
- // `uk-marquee-fade`
10
- //
11
- // ========================================================================
12
-
13
-
14
- // Variables
15
- // ========================================================================
16
-
17
-
18
- /* ========================================================================
19
- Component: Marquee
20
- ========================================================================== */
21
-
22
- /*
23
- * 1. Fallback for Safari 15 and older
24
- * 2. Clip child elements
25
- * `clip` prevents accidental scrolling through elements in slide getting focused
26
- * `clip` also works in only one direction
27
- * 3. Prevent tab highlighting on iOS.
28
- */
29
-
30
- .uk-marquee {
31
- /* 1 */
32
- overflow-x: hidden;
33
- /* 2 */
34
- overflow-x: clip;
35
- /* 3 */
36
- -webkit-tap-highlight-color: transparent;
37
- .hook-marquee();
38
- }
39
-
40
- .uk-marquee-vertical {
41
- overflow: visible;
42
- overflow-y: hidden;
43
- overflow-y: clip;
44
- }
45
-
46
- /*
47
- * Fade out
48
- */
49
-
50
- .uk-marquee-fade {
51
- --uk-overflow-fade-size: 100px;
52
- --uk-overflow-fade-direction: right;
53
- }
54
- .uk-marquee-fade.uk-marquee-vertical { --uk-overflow-fade-direction: bottom; }
55
-
56
- .uk-marquee-fade {
57
- mask-image: linear-gradient(
58
- to var(--uk-overflow-fade-direction),
59
- rgba(0, 0, 0, var(--uk-overflow-fade-start-opacity)),
60
- #000 var(--uk-overflow-fade-size),
61
- #000 ~'calc(100% - var(--uk-overflow-fade-size))',
62
- rgba(0, 0, 0, var(--uk-overflow-fade-end-opacity))
63
- );
64
- }
65
-
66
-
67
- /* Items
68
- ========================================================================== */
69
-
70
- /*
71
- * 1. Create a containing block.
72
- */
73
-
74
- .uk-marquee-items {
75
- /* 1 */
76
- position: relative;
77
- }
78
-
79
- /*
80
- * 1. Reset list style without interfering with grid
81
- * 2. Prevent displaying the callout information on iOS.
82
- */
83
-
84
- .uk-marquee:not(.uk-marquee-vertical) .uk-marquee-items:not(.uk-grid) {
85
- display: flex;
86
- /* 1 */
87
- margin: 0;
88
- padding: 0;
89
- list-style: none;
90
- /* 2 */
91
- -webkit-touch-callout: none;
92
- }
93
-
94
- .uk-marquee:not(.uk-marquee-vertical) .uk-marquee-items.uk-grid { flex-wrap: nowrap; }
95
-
96
-
97
- /* Item
98
- ========================================================================== */
99
-
100
- /*
101
- * 1. Let items take content dimensions (0 0 auto)
102
- * `max-width` needed to keep image responsiveness and prevent content overflow
103
- * 2. Create position context
104
- * 3. Create animation along offset-path
105
- */
106
-
107
- .uk-marquee-items > * {
108
- /* 1 */
109
- flex: none !important;
110
- box-sizing: border-box;
111
- max-width: 100%;
112
- /* 2 */
113
- position: relative;
114
- /* 3 */
115
- offset-anchor: 0 0;
116
- offset-rotate: 0deg;
117
- offset-path: path(var(--uk-marquee-path));
118
- animation: var(--uk-marquee-duration) linear calc(var(--uk-marquee-start) / -100 * var(--uk-marquee-duration)) infinite var(--uk-marquee-direction) uk-marquee;
119
- }
120
-
121
- @keyframes uk-marquee {
122
- 0% { offset-distance: 0; }
123
- 100% { offset-distance: 100%; }
124
- }
125
-
126
-
127
- // Hooks
128
- // ========================================================================
129
-
130
- .hook-marquee-misc();
131
-
132
- .hook-marquee() {}
133
- .hook-marquee-misc() {}
@@ -1,29 +0,0 @@
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() {}
@@ -1,20 +0,0 @@
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() {}
@@ -1,29 +0,0 @@
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() {}
@@ -1,14 +0,0 @@
1
- //
2
- // Component: Marquee
3
- //
4
- // ========================================================================
5
-
6
-
7
- // Variables
8
- // ========================================================================
9
-
10
-
11
- // Miscellaneous
12
- // ========================================================================
13
-
14
- .hook-marquee-misc() {}
@@ -1,63 +0,0 @@
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(){}
@@ -1,63 +0,0 @@
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
- /* ========================================================================
17
- Component: Floating Shadow
18
- ========================================================================== */
19
-
20
- /*
21
- * 1. Set position.
22
- * 2. Set style
23
- * 3. Fix shadow being clipped in Safari if container is animated
24
- */
25
-
26
- .uk-floating-shadow {
27
- display: inline-block;
28
- position: relative;
29
- z-index: 0;
30
- max-width: 100%;
31
- vertical-align: middle;
32
- }
33
-
34
- .uk-floating-shadow::after {
35
- content: "";
36
- /* 1 */
37
- position: absolute;
38
- bottom: $floating-shadow-bottom;
39
- left: 0;
40
- right: 0;
41
- z-index: -1;
42
- /* 2 */
43
- height: $floating-shadow-height;
44
- border-radius: $floating-shadow-border-radius;
45
- background: $floating-shadow-background;
46
- filter: blur($floating-shadow-blur);
47
- /* 3 */
48
- will-change: filter;
49
- @if(meta.mixin-exists(hook-floating-shadow)) {@include hook-floating-shadow();}
50
- }
51
-
52
-
53
- // Misc
54
- // ========================================================================
55
-
56
- @if(meta.mixin-exists(hook-floating-shadow-misc)) {@include hook-floating-shadow-misc();}
57
-
58
-
59
- // Hooks
60
- // ========================================================================
61
-
62
- // @mixin hook-floating-shadow(){}
63
- // @mixin hook-floating-shadow-misc(){}
@@ -1,75 +0,0 @@
1
- @use "sass:meta";
2
-
3
- // Name: Logo
4
- // Description: Style for the logo
5
- //
6
- // Component: `uk-logo`
7
- //
8
- // ========================================================================
9
-
10
-
11
- // Variables
12
- // ========================================================================
13
-
14
-
15
- /* ========================================================================
16
- Component: Logo
17
- ========================================================================== */
18
-
19
- /*
20
- * 1. Style
21
- * 2. Required for `a`
22
- * 3. Behave like image but can be overridden through flex utility classes
23
- */
24
-
25
- .uk-logo {
26
- /* 1 */
27
- font-size: $logo-font-size;
28
- font-family: $logo-font-family;
29
- color: $logo-color;
30
- /* 2 */
31
- text-decoration: none;
32
- @if(meta.mixin-exists(hook-logo)) {@include hook-logo();}
33
- }
34
-
35
- /* 3 */
36
- :where(.uk-logo) {
37
- display: inline-block;
38
- vertical-align: middle;
39
- }
40
-
41
- /* Hover */
42
- .uk-logo:hover {
43
- color: $logo-hover-color;
44
- /* 2 */
45
- text-decoration: none;
46
- @if(meta.mixin-exists(hook-logo-hover)) {@include hook-logo-hover();}
47
- }
48
-
49
- .uk-logo :where(img:not([uk-svg]), svg, video) { display: block; }
50
-
51
- .uk-logo-inverse:where(:not([uk-svg])) { display: none; }
52
-
53
-
54
- // Misc
55
- // ========================================================================
56
-
57
- @if(meta.mixin-exists(hook-logo-misc)) {@include hook-logo-misc();}
58
-
59
-
60
- // Hooks
61
- // ========================================================================
62
-
63
- // @mixin hook-logo(){}
64
- // @mixin hook-logo-hover(){}
65
- // @mixin hook-logo-misc(){}
66
-
67
-
68
- // Inverse
69
- // ========================================================================
70
-
71
-
72
-
73
-
74
- // @mixin hook-inverse-logo(){}
75
- // @mixin hook-inverse-logo-hover(){}
@@ -1,136 +0,0 @@
1
- @use "sass:meta";
2
- @use "sass:string";
3
-
4
- // Name: Marquee
5
- // Description: Component to create scrolling areas
6
- //
7
- // Component: `uk-marquee`
8
- //
9
- // Sub-objects: `uk-marquee-items`
10
- //
11
- // Modifiers: `uk-marquee-vertical`
12
- // `uk-marquee-fade`
13
- //
14
- // ========================================================================
15
-
16
-
17
- // Variables
18
- // ========================================================================
19
-
20
-
21
- /* ========================================================================
22
- Component: Marquee
23
- ========================================================================== */
24
-
25
- /*
26
- * 1. Fallback for Safari 15 and older
27
- * 2. Clip child elements
28
- * `clip` prevents accidental scrolling through elements in slide getting focused
29
- * `clip` also works in only one direction
30
- * 3. Prevent tab highlighting on iOS.
31
- */
32
-
33
- .uk-marquee {
34
- /* 1 */
35
- overflow-x: hidden;
36
- /* 2 */
37
- overflow-x: clip;
38
- /* 3 */
39
- -webkit-tap-highlight-color: transparent;
40
- @if(meta.mixin-exists(hook-marquee)) {@include hook-marquee();}
41
- }
42
-
43
- .uk-marquee-vertical {
44
- overflow: visible;
45
- overflow-y: hidden;
46
- overflow-y: clip;
47
- }
48
-
49
- /*
50
- * Fade out
51
- */
52
-
53
- .uk-marquee-fade {
54
- --uk-overflow-fade-size: 100px;
55
- --uk-overflow-fade-direction: right;
56
- }
57
- .uk-marquee-fade.uk-marquee-vertical { --uk-overflow-fade-direction: bottom; }
58
-
59
- .uk-marquee-fade {
60
- mask-image: linear-gradient(
61
- to var(--uk-overflow-fade-direction),
62
- rgba(0, 0, 0, var(--uk-overflow-fade-start-opacity)),
63
- #000 var(--uk-overflow-fade-size),
64
- #000 string.unquote('calc(100% - var(--uk-overflow-fade-size))'),
65
- rgba(0, 0, 0, var(--uk-overflow-fade-end-opacity))
66
- );
67
- }
68
-
69
-
70
- /* Items
71
- ========================================================================== */
72
-
73
- /*
74
- * 1. Create a containing block.
75
- */
76
-
77
- .uk-marquee-items {
78
- /* 1 */
79
- position: relative;
80
- }
81
-
82
- /*
83
- * 1. Reset list style without interfering with grid
84
- * 2. Prevent displaying the callout information on iOS.
85
- */
86
-
87
- .uk-marquee:not(.uk-marquee-vertical) .uk-marquee-items:not(.uk-grid) {
88
- display: flex;
89
- /* 1 */
90
- margin: 0;
91
- padding: 0;
92
- list-style: none;
93
- /* 2 */
94
- -webkit-touch-callout: none;
95
- }
96
-
97
- .uk-marquee:not(.uk-marquee-vertical) .uk-marquee-items.uk-grid { flex-wrap: nowrap; }
98
-
99
-
100
- /* Item
101
- ========================================================================== */
102
-
103
- /*
104
- * 1. Let items take content dimensions (0 0 auto)
105
- * `max-width` needed to keep image responsiveness and prevent content overflow
106
- * 2. Create position context
107
- * 3. Create animation along offset-path
108
- */
109
-
110
- .uk-marquee-items > * {
111
- /* 1 */
112
- flex: none !important;
113
- box-sizing: border-box;
114
- max-width: 100%;
115
- /* 2 */
116
- position: relative;
117
- /* 3 */
118
- offset-anchor: 0 0;
119
- offset-rotate: 0deg;
120
- offset-path: path(var(--uk-marquee-path));
121
- animation: var(--uk-marquee-duration) linear calc(var(--uk-marquee-start) / -100 * var(--uk-marquee-duration)) infinite var(--uk-marquee-direction) uk-marquee;
122
- }
123
-
124
- @keyframes uk-marquee {
125
- 0% { offset-distance: 0; }
126
- 100% { offset-distance: 100%; }
127
- }
128
-
129
-
130
- // Hooks
131
- // ========================================================================
132
-
133
- @if(meta.mixin-exists(hook-marquee-misc)) {@include hook-marquee-misc();}
134
-
135
- // @mixin hook-marquee(){}
136
- // @mixin hook-marquee-misc(){}
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en-gb" dir="ltr">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1">
7
- <title>Dropcap - UIkit tests</title>
8
- <script src="js/test.js"></script>
9
- </head>
10
-
11
- <body>
12
-
13
- <div class="uk-container">
14
-
15
- <h1>Drop Cap</h1>
16
-
17
- <p class="uk-text-lead uk-dropcap">Dorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
18
-
19
- <div class="uk-dropcap">
20
- <p>Torem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
21
- </div>
22
-
23
- </div>
24
-
25
- </body>
26
- </html>