uikit 3.25.20-dev.e4f47fc → 3.25.20

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 (201) hide show
  1. package/CHANGELOG.md +2 -33
  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 +917 -1045
  7. package/dist/css/uikit-core-rtl.min.css +1 -1
  8. package/dist/css/uikit-core.css +917 -1045
  9. package/dist/css/uikit-core.min.css +1 -1
  10. package/dist/css/uikit-rtl.css +936 -1064
  11. package/dist/css/uikit-rtl.min.css +1 -1
  12. package/dist/css/uikit.css +936 -1064
  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 +132 -133
  19. package/dist/js/components/lightbox-panel.min.js +1 -1
  20. package/dist/js/components/lightbox.js +133 -134
  21. package/dist/js/components/lightbox.min.js +1 -1
  22. package/dist/js/components/notification.js +1 -1
  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 -41
  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 -71
  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 +19 -19
  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 +262 -752
  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 +374 -627
  45. package/dist/js/uikit.min.js +1 -1
  46. package/package.json +1 -1
  47. package/src/js/api/component.js +3 -2
  48. package/src/js/api/observables.js +4 -2
  49. package/src/js/api/options.js +3 -6
  50. package/src/js/api/props.js +4 -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/slideshow-animations.js +62 -15
  55. package/src/js/components/lightbox-panel.js +96 -121
  56. package/src/js/components/lightbox.js +8 -5
  57. package/src/js/components/tooltip.js +2 -4
  58. package/src/js/core/accordion.js +29 -78
  59. package/src/js/core/drop.js +4 -5
  60. package/src/js/core/dropnav.js +3 -3
  61. package/src/js/core/grid.js +19 -5
  62. package/src/js/core/height-match.js +2 -1
  63. package/src/js/core/margin.js +0 -3
  64. package/src/js/core/overflow-fade.js +5 -5
  65. package/src/js/core/sticky.js +1 -1
  66. package/src/js/core/switcher.js +44 -24
  67. package/src/js/core/video.js +15 -172
  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/modal.js +3 -4
  71. package/src/js/mixin/parallax.js +4 -1
  72. package/src/js/mixin/position.js +1 -1
  73. package/src/js/mixin/slider-nav.js +1 -1
  74. package/src/js/mixin/slider-parallax.js +38 -9
  75. package/src/js/mixin/togglable.js +14 -13
  76. package/src/js/util/attr.js +7 -7
  77. package/src/js/util/class.js +1 -1
  78. package/src/js/util/dom.js +4 -3
  79. package/src/js/util/lang.js +1 -1
  80. package/src/js/util/player.js +4 -4
  81. package/src/js/util/style.js +15 -10
  82. package/src/js/util/viewport.js +25 -22
  83. package/src/less/components/_import.less +1 -6
  84. package/src/less/components/base.less +1 -1
  85. package/src/less/components/button.less +1 -1
  86. package/src/less/components/form.less +5 -5
  87. package/src/less/components/grid.less +65 -58
  88. package/src/less/components/margin.less +124 -155
  89. package/src/less/components/nav.less +1 -1
  90. package/src/less/components/padding.less +9 -9
  91. package/src/less/components/text.less +0 -6
  92. package/src/less/components/utility.less +163 -0
  93. package/src/less/theme/_import.less +1 -5
  94. package/src/less/theme/utility.less +32 -0
  95. package/src/scss/components/_import.scss +1 -6
  96. package/src/scss/components/base.scss +1 -1
  97. package/src/scss/components/button.scss +1 -1
  98. package/src/scss/components/form.scss +5 -5
  99. package/src/scss/components/grid.scss +64 -57
  100. package/src/scss/components/margin.scss +124 -155
  101. package/src/scss/components/nav.scss +1 -1
  102. package/src/scss/components/padding.scss +9 -9
  103. package/src/scss/components/text.scss +0 -6
  104. package/src/scss/components/utility.scss +129 -0
  105. package/src/scss/mixins-theme.scss +33 -42
  106. package/src/scss/mixins.scss +30 -39
  107. package/src/scss/variables-theme.scss +14 -14
  108. package/src/scss/variables.scss +14 -14
  109. package/tests/accordion.html +10 -77
  110. package/tests/alert.html +1 -1
  111. package/tests/align.html +5 -5
  112. package/tests/animation.html +4 -4
  113. package/tests/article.html +7 -7
  114. package/tests/background.html +2 -2
  115. package/tests/badge.html +1 -1
  116. package/tests/base.html +3 -3
  117. package/tests/button.html +1 -1
  118. package/tests/card.html +15 -15
  119. package/tests/close.html +2 -2
  120. package/tests/comment.html +9 -9
  121. package/tests/container.html +2 -2
  122. package/tests/countdown.html +21 -21
  123. package/tests/cover.html +6 -6
  124. package/tests/description-list.html +1 -1
  125. package/tests/divider.html +3 -3
  126. package/tests/dotnav.html +1 -1
  127. package/tests/drop.html +7 -7
  128. package/tests/dropbar.html +5 -5
  129. package/tests/dropdown.html +1 -1
  130. package/tests/dropnav.html +18 -18
  131. package/tests/filter.html +3 -3
  132. package/tests/form.html +14 -14
  133. package/tests/grid.html +47 -41
  134. package/tests/heading.html +2 -2
  135. package/tests/height-viewport.html +4 -4
  136. package/tests/height.html +5 -5
  137. package/tests/icon.html +8 -8
  138. package/tests/image.html +6 -6
  139. package/tests/index.html +13 -13
  140. package/tests/js/index.js +1 -1
  141. package/tests/leader.html +5 -5
  142. package/tests/lightbox.html +14 -14
  143. package/tests/link.html +1 -1
  144. package/tests/list.html +4 -4
  145. package/tests/margin.html +7 -7
  146. package/tests/marker.html +3 -3
  147. package/tests/modal.html +4 -4
  148. package/tests/nav.html +5 -5
  149. package/tests/navbar.html +27 -27
  150. package/tests/notification.html +2 -2
  151. package/tests/offcanvas.html +12 -12
  152. package/tests/overlay.html +3 -3
  153. package/tests/padding.html +1 -1
  154. package/tests/pagination.html +3 -3
  155. package/tests/parallax.html +1 -1
  156. package/tests/position.html +6 -6
  157. package/tests/scrollspy.html +12 -12
  158. package/tests/search.html +5 -5
  159. package/tests/section.html +17 -17
  160. package/tests/slidenav.html +3 -3
  161. package/tests/slider.html +5 -5
  162. package/tests/slideshow.html +4 -34
  163. package/tests/sortable.html +15 -15
  164. package/tests/sticky-navbar.html +4 -4
  165. package/tests/sticky-parallax.html +3 -3
  166. package/tests/sticky.html +3 -3
  167. package/tests/svg.html +2 -3
  168. package/tests/switcher.html +6 -6
  169. package/tests/tab.html +4 -4
  170. package/tests/text.html +3 -3
  171. package/tests/tile.html +4 -4
  172. package/tests/toggle.html +1 -1
  173. package/tests/tooltip.html +3 -3
  174. package/tests/totop.html +2 -2
  175. package/tests/transition.html +1 -1
  176. package/tests/upload.html +5 -5
  177. package/tests/utility.html +116 -16
  178. package/tests/video.html +27 -227
  179. package/tests/visibility.html +4 -4
  180. package/tests/width.html +12 -12
  181. package/dist/js/components/marquee.js +0 -179
  182. package/dist/js/components/marquee.min.js +0 -1
  183. package/src/js/components/marquee.js +0 -123
  184. package/src/js/mixin/connect.js +0 -55
  185. package/src/js/mixin/scroll-driven.js +0 -57
  186. package/src/less/components/dropcap.less +0 -71
  187. package/src/less/components/floating-shadow.less +0 -66
  188. package/src/less/components/logo.less +0 -94
  189. package/src/less/components/marquee.less +0 -133
  190. package/src/less/theme/dropcap.less +0 -29
  191. package/src/less/theme/floating-shadow.less +0 -20
  192. package/src/less/theme/logo.less +0 -29
  193. package/src/less/theme/marquee.less +0 -14
  194. package/src/scss/components/dropcap.scss +0 -63
  195. package/src/scss/components/floating-shadow.scss +0 -63
  196. package/src/scss/components/logo.scss +0 -75
  197. package/src/scss/components/marquee.scss +0 -136
  198. package/tests/dropcap.html +0 -26
  199. package/tests/floating-shadow.html +0 -44
  200. package/tests/logo.html +0 -84
  201. package/tests/marquee.html +0 -617
@@ -1 +0,0 @@
1
- /*! UIkit 3.25.20-dev.e4f47fc | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(s,d){typeof exports=="object"&&typeof module<"u"?module.exports=d(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitmarquee",["uikit-util"],d):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitMarquee=d(s.UIkit.util))})(this,(function(s){"use strict";function d(e,t="update"){e._connected&&e._updates.length&&(e._updateCount||(e._updateCount=0,requestAnimationFrame(()=>e._updateCount=0)),e._queued||(e._queued=new Set,s.fastdom.read(()=>{e._connected&&p(e,e._queued),e._queued=null})),e._updateCount++<20&&e._queued.add(t.type||t))}function p(e,t){for(const{read:o,write:r,events:i=[]}of e._updates){if(!t.has("update")&&!i.some(a=>t.has(a)))continue;let n;o&&(n=o.call(e,e._data,t),n&&s.isPlainObject(n)&&s.assign(e._data,n)),r&&n!==!1&&s.fastdom.write(()=>{e._connected&&r.call(e,e._data,t)})}}function m(e){return h(s.observeResize,e,"resize")}function v(e){return h(s.observeIntersection,e)}function h(e,t,o){return{observe:e,handler(){d(this,o)},...t}}var $={connected(){this._cmpCls=s.hasClass(this.$el,this.$options.id),s.addClass(this.$el,this.$options.id)},disconnected(){this._cmpCls||s.removeClass(this.$el,this.$options.id)}};const _=s.inBrowser&&window.Animation;var u={mixins:[$],props:{velocity:Number,start:Number,reverse:Boolean,pause:Boolean,pauseVelocity:Number,fadeSize:null},data:{velocity:25,start:0,reverse:!1,pause:!1,pauseVelocity:10,selList:".uk-marquee-items",fadeSize:0},computed:{list:({selList:e},t)=>s.$(e,t),items(){return s.children(this.list)}},observe:[m({target:({$el:e,items:t})=>[e,...t]}),v({handler(e){for(const t of e)t.target.inert=!t.isIntersecting},target:({items:e})=>e,args:{intersecting:!1},options:({$el:e})=>({root:e})})],events:{name:[s.pointerEnter,s.pointerLeave],el:({$el:e})=>e,self:!0,filter:({pause:e})=>_&&e,handler(e){for(const t of this.items)for(const o of t.getAnimations())o.playbackRate=e.type===s.pointerEnter?this.pauseVelocity/this.velocity:1}},update:{write(){const e=this.$options.id,t=this.items,o=s.hasClass(this.$el,`${e}-vertical`);s.css(t,"offset","none");const r=o?["top","bottom"]:["left","right"];!o&&s.isRtl&&r.reverse();const i=s.dimensions(this.list)[r[0]],n=Math[!o&&s.isRtl?"min":"max"](...t.map(a=>s.dimensions(a)[r[1]]));for(const a of t){const l=s.dimensions(a)[r[1]],c=n-l,f=l-i,C=o?`"M0 0 v${c}M0 ${-f} v${f}"`:`"M0 0 h${c}M${-f} 0 h${f}"`;s.css(a,`--${e}-path`,C)}s.css(this.$el,{[`--${e}-duration`]:`${Math.abs(i-n)/this.velocity}s`,[`--${e}-start`]:this.start,[`--${e}-direction`]:this.reverse?"reverse":"normal","--uk-overflow-fade-size":this.fadeSize?`${s.toPx(this.fadeSize,o?"height":"width",this.$el,!0)}px`:""}),s.toggleClass(this.$el,`${e}-fade`,this.fadeSize),s.css(t,"offset","")},events:["resize"]}},w="marquee";return typeof window<"u"&&window.UIkit&&window.UIkit.component(w,u),u}));
@@ -1,123 +0,0 @@
1
- import {
2
- $,
3
- children,
4
- css,
5
- dimensions,
6
- hasClass,
7
- inBrowser,
8
- isRtl,
9
- pointerEnter,
10
- pointerLeave,
11
- toggleClass,
12
- toPx,
13
- } from 'uikit-util';
14
- import { intersection, resize } from '../api/observables';
15
- import Class from '../mixin/class';
16
-
17
- const hasAnimationApi = inBrowser && window.Animation;
18
-
19
- export default {
20
- mixins: [Class],
21
-
22
- props: {
23
- velocity: Number,
24
- start: Number,
25
- reverse: Boolean,
26
- pause: Boolean,
27
- pauseVelocity: Number,
28
- fadeSize: null,
29
- },
30
-
31
- data: {
32
- velocity: 25,
33
- start: 0,
34
- reverse: false,
35
- pause: false,
36
- pauseVelocity: 10,
37
- selList: '.uk-marquee-items',
38
- fadeSize: 0,
39
- },
40
-
41
- computed: {
42
- list: ({ selList }, $el) => $(selList, $el),
43
- items() {
44
- return children(this.list);
45
- },
46
- },
47
-
48
- observe: [
49
- resize({
50
- target: ({ $el, items }) => [$el, ...items],
51
- }),
52
- intersection({
53
- handler(entries) {
54
- for (const entry of entries) {
55
- entry.target.inert = !entry.isIntersecting;
56
- }
57
- },
58
- target: ({ items }) => items,
59
- args: { intersecting: false },
60
- options: ({ $el }) => ({ root: $el }),
61
- }),
62
- ],
63
-
64
- events: {
65
- name: [pointerEnter, pointerLeave],
66
- el: ({ $el }) => $el,
67
- self: true,
68
- filter: ({ pause }) => hasAnimationApi && pause,
69
- handler(e) {
70
- for (const el of this.items) {
71
- for (const animation of el.getAnimations()) {
72
- animation.playbackRate =
73
- e.type === pointerEnter ? this.pauseVelocity / this.velocity : 1;
74
- }
75
- }
76
- },
77
- },
78
-
79
- update: {
80
- write() {
81
- const prefix = this.$options.id;
82
- const items = this.items;
83
- const vertical = hasClass(this.$el, `${prefix}-vertical`);
84
-
85
- css(items, 'offset', 'none');
86
-
87
- const dir = vertical ? ['top', 'bottom'] : ['left', 'right'];
88
- if (!vertical && isRtl) {
89
- dir.reverse();
90
- }
91
-
92
- const listStart = dimensions(this.list)[dir[0]];
93
- const listEnd = Math[!vertical && isRtl ? 'min' : 'max'](
94
- ...items.map((el) => dimensions(el)[dir[1]]),
95
- );
96
-
97
- for (const el of items) {
98
- const elEnd = dimensions(el)[dir[1]];
99
- const line1 = listEnd - elEnd;
100
- const line2 = elEnd - listStart;
101
- const path = vertical
102
- ? `"M0 0 v${line1}M0 ${-line2} v${line2}"`
103
- : `"M0 0 h${line1}M${-line2} 0 h${line2}"`;
104
- css(el, `--${prefix}-path`, path);
105
- }
106
-
107
- css(this.$el, {
108
- [`--${prefix}-duration`]: `${Math.abs(listStart - listEnd) / this.velocity}s`,
109
- [`--${prefix}-start`]: this.start,
110
- [`--${prefix}-direction`]: this.reverse ? 'reverse' : 'normal',
111
- '--uk-overflow-fade-size': this.fadeSize
112
- ? `${toPx(this.fadeSize, vertical ? 'height' : 'width', this.$el, true)}px`
113
- : '',
114
- });
115
-
116
- toggleClass(this.$el, `${prefix}-fade`, this.fadeSize);
117
-
118
- css(items, 'offset', '');
119
- },
120
-
121
- events: ['resize'],
122
- },
123
- };
@@ -1,55 +0,0 @@
1
- import { children, hasClass, isTag, queryAll, toArray } from 'uikit-util';
2
- import { lazyload } from '../api/observables';
3
- import Togglable from '../mixin/togglable';
4
-
5
- export default {
6
- mixins: [Togglable],
7
-
8
- props: {
9
- connect: String,
10
- },
11
-
12
- data: {
13
- connect: '',
14
- cls: 'uk-active',
15
- },
16
-
17
- computed: {
18
- connects: {
19
- get: ({ connect }, $el) => (connect ? queryAll(connect, $el) : []),
20
- observe: ({ connect }) => connect,
21
- },
22
-
23
- connectChildren() {
24
- return this.connects.flatMap((el) => children(el));
25
- },
26
- },
27
-
28
- watch: {
29
- connects(connects) {
30
- for (const el of connects) {
31
- if (isTag(el, 'ul')) {
32
- el.role = 'presentation';
33
- }
34
- }
35
- },
36
- },
37
-
38
- observe: lazyload({ targets: ({ connectChildren }) => connectChildren }),
39
-
40
- methods: {
41
- showConnects(index, animate) {
42
- const toggle = async ({ children }) => {
43
- const actives = toArray(children).filter(
44
- (child, i) => i !== index && hasClass(child, this.cls),
45
- );
46
-
47
- if (await this.toggleElement(actives, false, animate)) {
48
- await this.toggleElement(children[index], true, animate);
49
- }
50
- };
51
-
52
- return Promise.all(this.connects.map(toggle));
53
- },
54
- },
55
- };
@@ -1,57 +0,0 @@
1
- import { query, scrolledOver, toPx } from 'uikit-util';
2
- import { resize, scroll } from '../api/observables';
3
- import { ease } from './parallax';
4
-
5
- export default {
6
- props: {
7
- parallaxTarget: Boolean,
8
- parallaxStart: String,
9
- parallaxEnd: String,
10
- parallaxEasing: Number,
11
- },
12
-
13
- data: {
14
- parallaxTarget: false,
15
- parallaxStart: 0,
16
- parallaxEnd: 0,
17
- parallaxEasing: 0,
18
- },
19
-
20
- observe: [
21
- resize({
22
- target: ({ $el, parallaxTarget }) => [$el, parallaxTarget],
23
- filter: ({ parallax }) => parallax,
24
- }),
25
- scroll({ filter: ({ parallax }) => parallax }),
26
- ],
27
-
28
- computed: {
29
- parallaxTargetFallback: ($props, $el) => $el,
30
-
31
- parallaxTarget({ parallaxTarget }, $el) {
32
- return (parallaxTarget && query(parallaxTarget, $el)) || this.parallaxTargetFallback;
33
- },
34
- },
35
-
36
- update: {
37
- read() {
38
- if (!this.parallax) {
39
- return;
40
- }
41
-
42
- const target = this.parallaxTarget;
43
-
44
- if (!target) {
45
- return;
46
- }
47
-
48
- const start = toPx(this.parallaxStart, 'height', target, true);
49
- const end = toPx(this.parallaxEnd, 'height', target, true);
50
- const percent = ease(scrolledOver(target, start, end), this.parallaxEasing);
51
-
52
- return { percent };
53
- },
54
-
55
- events: ['scroll', 'resize'],
56
- },
57
- };
@@ -1,71 +0,0 @@
1
- // Name: Dropcap
2
- // Description: Style for the drop cap
3
- //
4
- // Component: `uk-dropcap`
5
- //
6
- // ========================================================================
7
-
8
-
9
- // Variables
10
- // ========================================================================
11
- @dropcap-margin-right: 10px;
12
- @dropcap-font-size: ((@global-line-height * 3) * 1em);
13
- @dropcap-line-height: 1;
14
-
15
- /* ========================================================================
16
- Component: Dropcap
17
- ========================================================================== */
18
-
19
- /*
20
- * 1. Firefox doesn't apply `::first-letter` if the first letter is inside child elements
21
- * https://bugzilla.mozilla.org/show_bug.cgi?id=214004
22
- * 2. In Firefox, a floating `::first-letter` doesn't have a line box and there for no `line-height`
23
- * https://bugzilla.mozilla.org/show_bug.cgi?id=317933
24
- */
25
-
26
- .uk-dropcap::first-letter,
27
- /* 1 */
28
- .uk-dropcap > p:first-of-type::first-letter {
29
- display: block;
30
- margin-right: @dropcap-margin-right;
31
- float: left;
32
- font-size: @dropcap-font-size;
33
- line-height: @dropcap-line-height;
34
- .hook-dropcap();
35
- }
36
-
37
- /* 2 */
38
- @-moz-document url-prefix() {
39
-
40
- .uk-dropcap::first-letter,
41
- .uk-dropcap > p:first-of-type::first-letter { margin-top: 1.1%; }
42
-
43
- }
44
-
45
-
46
- // Misc
47
- // ========================================================================
48
-
49
- .hook-dropcap-misc();
50
-
51
-
52
- // Hooks
53
- // ========================================================================
54
-
55
- .hook-dropcap() {}
56
- .hook-dropcap-misc() {}
57
-
58
-
59
- // Inverse
60
- // ========================================================================
61
-
62
- .hook-inverse () {
63
-
64
- .uk-dropcap::first-letter,
65
- .uk-dropcap p:first-of-type::first-letter {
66
- .hook-inverse-dropcap();
67
- }
68
-
69
- }
70
-
71
- .hook-inverse-dropcap() {}
@@ -1,66 +0,0 @@
1
- // Name: Floating Shadow
2
- // Description: Component to create floating shadows
3
- //
4
- // Component: `uk-floating-shadow`
5
- //
6
- // ========================================================================
7
-
8
-
9
- // Variables
10
- // ========================================================================
11
-
12
- @floating-shadow-height: 30px;
13
- @floating-shadow-bottom: -@floating-shadow-height;
14
- @floating-shadow-border-radius: 100%;
15
- @floating-shadow-background: #444;
16
- @floating-shadow-blur: 20px;
17
-
18
-
19
- /* ========================================================================
20
- Component: Floating Shadow
21
- ========================================================================== */
22
-
23
- /*
24
- * 1. Set position.
25
- * 2. Set style
26
- * 3. Fix shadow being clipped in Safari if container is animated
27
- */
28
-
29
- .uk-floating-shadow {
30
- display: inline-block;
31
- position: relative;
32
- z-index: 0;
33
- max-width: 100%;
34
- vertical-align: middle;
35
- }
36
-
37
- .uk-floating-shadow::after {
38
- content: "";
39
- /* 1 */
40
- position: absolute;
41
- bottom: @floating-shadow-bottom;
42
- left: 0;
43
- right: 0;
44
- z-index: -1;
45
- /* 2 */
46
- height: @floating-shadow-height;
47
- border-radius: @floating-shadow-border-radius;
48
- background: @floating-shadow-background;
49
- filter: blur(@floating-shadow-blur);
50
- /* 3 */
51
- will-change: filter;
52
- .hook-floating-shadow();
53
- }
54
-
55
-
56
- // Misc
57
- // ========================================================================
58
-
59
- .hook-floating-shadow-misc();
60
-
61
-
62
- // Hooks
63
- // ========================================================================
64
-
65
- .hook-floating-shadow() {}
66
- .hook-floating-shadow-misc() {}
@@ -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]))):not(.uk-logo-inverse):not([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() {}