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.
- package/CHANGELOG.md +2 -33
- package/build/prefix.js +1 -1
- package/build/publishDev.js +1 -1
- package/build/scope.js +1 -1
- package/build/scss.js +1 -1
- package/dist/css/uikit-core-rtl.css +917 -1045
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +917 -1045
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +936 -1064
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +936 -1064
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +132 -133
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +133 -134
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +12 -8
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +12 -8
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +25 -41
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +12 -8
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +102 -71
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +19 -19
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +262 -752
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +374 -627
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/component.js +3 -2
- package/src/js/api/observables.js +4 -2
- package/src/js/api/options.js +3 -6
- package/src/js/api/props.js +4 -1
- package/src/js/api/state.js +8 -7
- package/src/js/components/index.js +0 -1
- package/src/js/components/internal/lightbox-animations.js +26 -7
- package/src/js/components/internal/slideshow-animations.js +62 -15
- package/src/js/components/lightbox-panel.js +96 -121
- package/src/js/components/lightbox.js +8 -5
- package/src/js/components/tooltip.js +2 -4
- package/src/js/core/accordion.js +29 -78
- package/src/js/core/drop.js +4 -5
- package/src/js/core/dropnav.js +3 -3
- package/src/js/core/grid.js +19 -5
- package/src/js/core/height-match.js +2 -1
- package/src/js/core/margin.js +0 -3
- package/src/js/core/overflow-fade.js +5 -5
- package/src/js/core/sticky.js +1 -1
- package/src/js/core/switcher.js +44 -24
- package/src/js/core/video.js +15 -172
- package/src/js/mixin/internal/slideshow-animations.js +13 -5
- package/src/js/mixin/internal/slideshow-transitioner.js +2 -2
- package/src/js/mixin/modal.js +3 -4
- package/src/js/mixin/parallax.js +4 -1
- package/src/js/mixin/position.js +1 -1
- package/src/js/mixin/slider-nav.js +1 -1
- package/src/js/mixin/slider-parallax.js +38 -9
- package/src/js/mixin/togglable.js +14 -13
- package/src/js/util/attr.js +7 -7
- package/src/js/util/class.js +1 -1
- package/src/js/util/dom.js +4 -3
- package/src/js/util/lang.js +1 -1
- package/src/js/util/player.js +4 -4
- package/src/js/util/style.js +15 -10
- package/src/js/util/viewport.js +25 -22
- package/src/less/components/_import.less +1 -6
- package/src/less/components/base.less +1 -1
- package/src/less/components/button.less +1 -1
- package/src/less/components/form.less +5 -5
- package/src/less/components/grid.less +65 -58
- package/src/less/components/margin.less +124 -155
- package/src/less/components/nav.less +1 -1
- package/src/less/components/padding.less +9 -9
- package/src/less/components/text.less +0 -6
- package/src/less/components/utility.less +163 -0
- package/src/less/theme/_import.less +1 -5
- package/src/less/theme/utility.less +32 -0
- package/src/scss/components/_import.scss +1 -6
- package/src/scss/components/base.scss +1 -1
- package/src/scss/components/button.scss +1 -1
- package/src/scss/components/form.scss +5 -5
- package/src/scss/components/grid.scss +64 -57
- package/src/scss/components/margin.scss +124 -155
- package/src/scss/components/nav.scss +1 -1
- package/src/scss/components/padding.scss +9 -9
- package/src/scss/components/text.scss +0 -6
- package/src/scss/components/utility.scss +129 -0
- package/src/scss/mixins-theme.scss +33 -42
- package/src/scss/mixins.scss +30 -39
- package/src/scss/variables-theme.scss +14 -14
- package/src/scss/variables.scss +14 -14
- package/tests/accordion.html +10 -77
- package/tests/alert.html +1 -1
- package/tests/align.html +5 -5
- package/tests/animation.html +4 -4
- package/tests/article.html +7 -7
- package/tests/background.html +2 -2
- package/tests/badge.html +1 -1
- package/tests/base.html +3 -3
- package/tests/button.html +1 -1
- package/tests/card.html +15 -15
- package/tests/close.html +2 -2
- package/tests/comment.html +9 -9
- package/tests/container.html +2 -2
- package/tests/countdown.html +21 -21
- package/tests/cover.html +6 -6
- package/tests/description-list.html +1 -1
- package/tests/divider.html +3 -3
- package/tests/dotnav.html +1 -1
- package/tests/drop.html +7 -7
- package/tests/dropbar.html +5 -5
- package/tests/dropdown.html +1 -1
- package/tests/dropnav.html +18 -18
- package/tests/filter.html +3 -3
- package/tests/form.html +14 -14
- package/tests/grid.html +47 -41
- package/tests/heading.html +2 -2
- package/tests/height-viewport.html +4 -4
- package/tests/height.html +5 -5
- package/tests/icon.html +8 -8
- package/tests/image.html +6 -6
- package/tests/index.html +13 -13
- package/tests/js/index.js +1 -1
- package/tests/leader.html +5 -5
- package/tests/lightbox.html +14 -14
- package/tests/link.html +1 -1
- package/tests/list.html +4 -4
- package/tests/margin.html +7 -7
- package/tests/marker.html +3 -3
- package/tests/modal.html +4 -4
- package/tests/nav.html +5 -5
- package/tests/navbar.html +27 -27
- package/tests/notification.html +2 -2
- package/tests/offcanvas.html +12 -12
- package/tests/overlay.html +3 -3
- package/tests/padding.html +1 -1
- package/tests/pagination.html +3 -3
- package/tests/parallax.html +1 -1
- package/tests/position.html +6 -6
- package/tests/scrollspy.html +12 -12
- package/tests/search.html +5 -5
- package/tests/section.html +17 -17
- package/tests/slidenav.html +3 -3
- package/tests/slider.html +5 -5
- package/tests/slideshow.html +4 -34
- package/tests/sortable.html +15 -15
- package/tests/sticky-navbar.html +4 -4
- package/tests/sticky-parallax.html +3 -3
- package/tests/sticky.html +3 -3
- package/tests/svg.html +2 -3
- package/tests/switcher.html +6 -6
- package/tests/tab.html +4 -4
- package/tests/text.html +3 -3
- package/tests/tile.html +4 -4
- package/tests/toggle.html +1 -1
- package/tests/tooltip.html +3 -3
- package/tests/totop.html +2 -2
- package/tests/transition.html +1 -1
- package/tests/upload.html +5 -5
- package/tests/utility.html +116 -16
- package/tests/video.html +27 -227
- package/tests/visibility.html +4 -4
- package/tests/width.html +12 -12
- package/dist/js/components/marquee.js +0 -179
- package/dist/js/components/marquee.min.js +0 -1
- package/src/js/components/marquee.js +0 -123
- package/src/js/mixin/connect.js +0 -55
- package/src/js/mixin/scroll-driven.js +0 -57
- package/src/less/components/dropcap.less +0 -71
- package/src/less/components/floating-shadow.less +0 -66
- package/src/less/components/logo.less +0 -94
- package/src/less/components/marquee.less +0 -133
- package/src/less/theme/dropcap.less +0 -29
- package/src/less/theme/floating-shadow.less +0 -20
- package/src/less/theme/logo.less +0 -29
- package/src/less/theme/marquee.less +0 -14
- package/src/scss/components/dropcap.scss +0 -63
- package/src/scss/components/floating-shadow.scss +0 -63
- package/src/scss/components/logo.scss +0 -75
- package/src/scss/components/marquee.scss +0 -136
- package/tests/dropcap.html +0 -26
- package/tests/floating-shadow.html +0 -44
- package/tests/logo.html +0 -84
- 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
|
-
};
|
package/src/js/mixin/connect.js
DELETED
|
@@ -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() {}
|
package/src/less/theme/logo.less
DELETED
|
@@ -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() {}
|