uikit 3.21.14-dev.028df7be8 → 3.21.14-dev.2e8a07c7e
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 +34 -0
- package/dist/css/uikit-core-rtl.css +233 -85
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +233 -85
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +237 -81
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +237 -81
- 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 +2 -11
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +425 -126
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +442 -131
- 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 +2 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +2 -2
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +17 -27
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +2 -2
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +22 -33
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +3 -3
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +8 -12
- 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 +225 -221
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +20 -17
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +644 -530
- package/dist/js/uikit.min.js +1 -1
- package/package.json +2 -2
- package/src/images/icons/arrow-down-arrow-up.svg +6 -0
- package/src/images/icons/arrow-down.svg +3 -3
- package/src/images/icons/arrow-left.svg +3 -3
- package/src/images/icons/arrow-right.svg +3 -3
- package/src/images/icons/arrow-up-right.svg +3 -3
- package/src/images/icons/arrow-up.svg +3 -3
- package/src/images/icons/close-circle.svg +5 -0
- package/src/images/icons/cloud-download.svg +4 -4
- package/src/images/icons/cloud-upload.svg +4 -4
- package/src/images/icons/download.svg +4 -4
- package/src/images/icons/expand.svg +5 -5
- package/src/images/icons/link-external.svg +4 -4
- package/src/images/icons/pull.svg +4 -4
- package/src/images/icons/push.svg +3 -3
- package/src/images/icons/shrink.svg +5 -5
- package/src/images/icons/sign-in.svg +4 -3
- package/src/images/icons/sign-out.svg +4 -3
- package/src/images/icons/sorting.svg +6 -0
- package/src/images/icons/upload.svg +4 -4
- package/src/js/api/events.js +15 -14
- package/src/js/api/instance.js +1 -1
- package/src/js/components/internal/lightbox-animations.js +2 -1
- package/src/js/components/internal/slideshow-animations.js +5 -5
- package/src/js/components/lightbox-panel.js +180 -45
- package/src/js/components/lightbox.js +59 -6
- package/src/js/components/slideshow.js +1 -2
- package/src/js/components/sortable.js +2 -2
- package/src/js/core/grid.js +1 -1
- package/src/js/core/icon.js +2 -2
- package/src/js/core/img.js +3 -5
- package/src/js/core/navbar.js +6 -2
- package/src/js/core/scrollspy-nav.js +1 -1
- package/src/js/core/svg.js +8 -10
- package/src/js/core/video.js +4 -3
- package/src/js/mixin/internal/slideshow-animations.js +1 -6
- package/src/js/mixin/modal.js +1 -4
- package/src/js/mixin/slider-drag.js +5 -6
- package/src/js/mixin/slider-nav.js +1 -1
- package/src/js/mixin/slider.js +11 -13
- package/src/js/mixin/slideshow.js +1 -1
- package/src/js/mixin/togglable.js +7 -2
- package/src/js/util/dom.js +3 -1
- package/src/js/util/filter.js +3 -1
- package/src/js/util/player.js +0 -4
- package/src/less/components/background.less +1 -9
- package/src/less/components/breadcrumb.less +6 -2
- package/src/less/components/button.less +1 -1
- package/src/less/components/form-range.less +52 -0
- package/src/less/components/form.less +1 -1
- package/src/less/components/lightbox.less +57 -89
- package/src/less/components/margin.less +14 -0
- package/src/less/components/search.less +49 -23
- package/src/less/components/sticky.less +1 -10
- package/src/less/components/totop.less +1 -1
- package/src/less/components/transition.less +4 -4
- package/src/less/components/visibility.less +3 -2
- package/src/less/theme/form-range.less +12 -0
- package/src/less/theme/lightbox.less +2 -20
- package/src/less/theme/search.less +24 -10
- package/src/scss/components/background.scss +1 -9
- package/src/scss/components/breadcrumb.scss +6 -2
- package/src/scss/components/button.scss +1 -1
- package/src/scss/components/form-range.scss +12 -0
- package/src/scss/components/form.scss +1 -1
- package/src/scss/components/lightbox.scss +50 -77
- package/src/scss/components/margin.scss +13 -0
- package/src/scss/components/search.scss +30 -12
- package/src/scss/components/sticky.scss +1 -10
- package/src/scss/components/totop.scss +1 -1
- package/src/scss/components/transition.scss +4 -4
- package/src/scss/components/visibility.scss +3 -2
- package/src/scss/mixins-theme.scss +51 -12
- package/src/scss/mixins.scss +45 -6
- package/src/scss/theme/form-range.scss +10 -0
- package/src/scss/theme/lightbox.scss +2 -20
- package/src/scss/theme/search.scss +10 -6
- package/src/scss/variables-theme.scss +32 -20
- package/src/scss/variables.scss +29 -24
- package/tests/badge.html +2 -2
- package/tests/base.html +1 -1
- package/tests/breadcrumb.html +23 -5
- package/tests/card.html +24 -24
- package/tests/dropbar.html +15 -15
- package/tests/dropdown.html +6 -6
- package/tests/dropnav.html +100 -100
- package/tests/icon.html +8 -0
- package/tests/index.html +15 -15
- package/tests/lightbox.html +379 -28
- package/tests/margin.html +19 -0
- package/tests/nav.html +21 -21
- package/tests/navbar.html +292 -292
- package/tests/offcanvas.html +27 -27
- package/tests/placeholder.html +2 -2
- package/tests/slider.html +0 -1
- package/tests/slideshow.html +1 -1
- package/tests/sortable.html +5 -5
- package/tests/sticky-navbar.html +114 -114
- package/tests/transition.html +2 -1
|
@@ -17,7 +17,7 @@ const pointerUpOptions = { passive: true, capture: true };
|
|
|
17
17
|
const pointerDown = 'touchstart mousedown';
|
|
18
18
|
const pointerMove = 'touchmove mousemove';
|
|
19
19
|
const pointerUp = 'touchend touchcancel mouseup click input scroll';
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
export default {
|
|
22
22
|
props: {
|
|
23
23
|
draggable: Boolean,
|
|
@@ -120,10 +120,6 @@ export default {
|
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
if (!this.dragging) {
|
|
124
|
-
on(this.list, 'click', preventClick, pointerOptions);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
123
|
e.cancelable && e.preventDefault();
|
|
128
124
|
|
|
129
125
|
this.dragging = true;
|
|
@@ -188,6 +184,8 @@ export default {
|
|
|
188
184
|
off(document, pointerUp, this.end, pointerUpOptions);
|
|
189
185
|
|
|
190
186
|
if (this.dragging) {
|
|
187
|
+
setTimeout(on(this.list, 'click', (e) => e.preventDefault(), pointerOptions));
|
|
188
|
+
|
|
191
189
|
this.dragging = null;
|
|
192
190
|
|
|
193
191
|
if (this.index === this.prevIndex) {
|
|
@@ -202,6 +200,8 @@ export default {
|
|
|
202
200
|
this.index = dirChange ? this.index : this.prevIndex;
|
|
203
201
|
|
|
204
202
|
if (dirChange) {
|
|
203
|
+
trigger(this.slides[this.prevIndex], 'itemhidden', [this]);
|
|
204
|
+
trigger(this.slides[this.index], 'itemshown', [this]);
|
|
205
205
|
this.percent = 1 - this.percent;
|
|
206
206
|
}
|
|
207
207
|
|
|
@@ -214,7 +214,6 @@ export default {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
setTimeout(() => off(this.list, 'click', preventClick, pointerOptions));
|
|
218
217
|
css(this.list, { userSelect: '' });
|
|
219
218
|
|
|
220
219
|
this.drag = this.percent = null;
|
|
@@ -211,7 +211,7 @@ export default {
|
|
|
211
211
|
const active = item === index;
|
|
212
212
|
|
|
213
213
|
toggleClass(el, this.clsActive, active);
|
|
214
|
-
toggleClass(button, 'uk-disabled', this.parallax);
|
|
214
|
+
toggleClass(button, 'uk-disabled', !!this.parallax);
|
|
215
215
|
|
|
216
216
|
attr(button, {
|
|
217
217
|
'aria-selected': active,
|
package/src/js/mixin/slider.js
CHANGED
|
@@ -101,7 +101,7 @@ export default {
|
|
|
101
101
|
},
|
|
102
102
|
|
|
103
103
|
methods: {
|
|
104
|
-
show(index, force = false) {
|
|
104
|
+
async show(index, force = false) {
|
|
105
105
|
if (this.dragging || !this.length || this.parallax) {
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
@@ -149,22 +149,20 @@ export default {
|
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
trigger(next, 'itemshown', [this]);
|
|
152
|
+
prev && trigger(prev, 'itemhide', [this]);
|
|
153
|
+
trigger(next, 'itemshow', [this]);
|
|
155
154
|
|
|
156
|
-
|
|
157
|
-
this._transitioner = null;
|
|
155
|
+
await this._show(prev, next, force);
|
|
158
156
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
});
|
|
157
|
+
prev && trigger(prev, 'itemhidden', [this]);
|
|
158
|
+
trigger(next, 'itemshown', [this]);
|
|
163
159
|
|
|
164
|
-
|
|
165
|
-
|
|
160
|
+
stack.shift();
|
|
161
|
+
this._transitioner = null;
|
|
166
162
|
|
|
167
|
-
|
|
163
|
+
if (stack.length) {
|
|
164
|
+
requestAnimationFrame(() => stack.length && this.show(stack.shift(), true));
|
|
165
|
+
}
|
|
168
166
|
},
|
|
169
167
|
|
|
170
168
|
getIndex(index = this.index, prev = this.index) {
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
unwrap,
|
|
21
21
|
wrapInner,
|
|
22
22
|
} from 'uikit-util';
|
|
23
|
+
import { storeScrollPosition } from './position';
|
|
23
24
|
|
|
24
25
|
export default {
|
|
25
26
|
props: {
|
|
@@ -79,6 +80,12 @@ export default {
|
|
|
79
80
|
const done = () => {
|
|
80
81
|
removeClass(el, cls);
|
|
81
82
|
trigger(el, show ? 'shown' : 'hidden', [this]);
|
|
83
|
+
|
|
84
|
+
if (show) {
|
|
85
|
+
const restoreScrollPosition = storeScrollPosition(el);
|
|
86
|
+
$$('[autofocus]', el).find(isVisible)?.focus();
|
|
87
|
+
restoreScrollPosition();
|
|
88
|
+
}
|
|
82
89
|
};
|
|
83
90
|
|
|
84
91
|
return promise
|
|
@@ -125,8 +132,6 @@ export default {
|
|
|
125
132
|
if (changed) {
|
|
126
133
|
trigger(el, 'toggled', [toggled, this]);
|
|
127
134
|
}
|
|
128
|
-
|
|
129
|
-
$$('[autofocus]', el).some((el) => (isVisible(el) ? el.focus() || true : el.blur()));
|
|
130
135
|
},
|
|
131
136
|
},
|
|
132
137
|
};
|
package/src/js/util/dom.js
CHANGED
package/src/js/util/filter.js
CHANGED
|
@@ -84,6 +84,8 @@ export function getTargetedElement(el) {
|
|
|
84
84
|
if (isSameSiteAnchor(el)) {
|
|
85
85
|
const { hash, ownerDocument } = toNode(el);
|
|
86
86
|
const id = decodeURIComponent(hash).slice(1);
|
|
87
|
-
return
|
|
87
|
+
return id
|
|
88
|
+
? ownerDocument.getElementById(id) || ownerDocument.getElementsByName(id)[0]
|
|
89
|
+
: ownerDocument;
|
|
88
90
|
}
|
|
89
91
|
}
|
package/src/js/util/player.js
CHANGED
|
@@ -69,15 +69,7 @@
|
|
|
69
69
|
/* Attachment
|
|
70
70
|
========================================================================== */
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
* 1. Fix bug introduced in Chrome 67: the background image is not visible if any element on the page uses `translate3d`
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
.uk-background-fixed {
|
|
77
|
-
background-attachment: fixed;
|
|
78
|
-
/* 1 */
|
|
79
|
-
backface-visibility: hidden;
|
|
80
|
-
}
|
|
72
|
+
.uk-background-fixed { background-attachment: fixed; }
|
|
81
73
|
|
|
82
74
|
/*
|
|
83
75
|
* Exclude touch devices because `fixed` doesn't work on iOS and Android
|
|
@@ -28,12 +28,16 @@
|
|
|
28
28
|
========================================================================== */
|
|
29
29
|
|
|
30
30
|
/*
|
|
31
|
-
* Reset list
|
|
31
|
+
* 1. Reset list
|
|
32
|
+
* 2. Remove space between elements
|
|
32
33
|
*/
|
|
33
34
|
|
|
34
35
|
.uk-breadcrumb {
|
|
36
|
+
/* 1 */
|
|
35
37
|
padding: 0;
|
|
36
38
|
list-style: none;
|
|
39
|
+
/* 2 */
|
|
40
|
+
font-size: 0;
|
|
37
41
|
.hook-breadcrumb();
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -83,7 +87,7 @@
|
|
|
83
87
|
content: @breadcrumb-divider;
|
|
84
88
|
display: inline-block;
|
|
85
89
|
/* 1 */
|
|
86
|
-
margin: 0 @breadcrumb-divider-margin-horizontal
|
|
90
|
+
margin: 0 @breadcrumb-divider-margin-horizontal;
|
|
87
91
|
/* 2 */
|
|
88
92
|
font-size: @breadcrumb-divider-font-size;
|
|
89
93
|
color: @breadcrumb-divider-color;
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
========================================================================== */
|
|
351
351
|
|
|
352
352
|
/*
|
|
353
|
-
* 1. Using `flex` instead of `inline-block` to prevent whitespace
|
|
353
|
+
* 1. Using `flex` instead of `inline-block` to prevent whitespace between child elements
|
|
354
354
|
* 2. Behave like button
|
|
355
355
|
* 3. Create position context
|
|
356
356
|
*/
|
|
@@ -137,3 +137,55 @@
|
|
|
137
137
|
.hook-form-range-track-focus() {}
|
|
138
138
|
.hook-form-range-thumb() {}
|
|
139
139
|
.hook-form-range-misc() {}
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
// Inverse
|
|
143
|
+
// ========================================================================
|
|
144
|
+
|
|
145
|
+
@inverse-form-range-track-background: darken(@inverse-global-muted-background; 5%);
|
|
146
|
+
@inverse-form-range-track-focus-background: fadein(@inverse-form-range-track-background, 5%);
|
|
147
|
+
|
|
148
|
+
@inverse-form-range-thumb-background: fadein(@inverse-global-color, 100%);
|
|
149
|
+
|
|
150
|
+
.hook-inverse() {
|
|
151
|
+
|
|
152
|
+
/* Webkit */
|
|
153
|
+
.uk-range::-webkit-slider-runnable-track {
|
|
154
|
+
background: @inverse-form-range-track-background;
|
|
155
|
+
.hook-inverse-form-range-track();
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.uk-range:focus::-webkit-slider-runnable-track,
|
|
159
|
+
.uk-range:active::-webkit-slider-runnable-track {
|
|
160
|
+
background: @inverse-form-range-track-focus-background;
|
|
161
|
+
.hook-inverse-form-range-track-focus();
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Firefox */
|
|
165
|
+
.uk-range::-moz-range-track {
|
|
166
|
+
background: @inverse-form-range-track-background;
|
|
167
|
+
.hook-inverse-form-range-track();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.uk-range:focus::-moz-range-track {
|
|
171
|
+
background: @inverse-form-range-track-focus-background;
|
|
172
|
+
.hook-inverse-form-range-track-focus();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Webkit */
|
|
176
|
+
.uk-range::-webkit-slider-thumb {
|
|
177
|
+
background: @inverse-form-range-thumb-background;
|
|
178
|
+
.hook-inverse-form-range-thumb();
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Firefox */
|
|
182
|
+
.uk-range::-moz-range-thumb {
|
|
183
|
+
background: @inverse-form-range-thumb-background;
|
|
184
|
+
.hook-inverse-form-range-thumb();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.hook-inverse-form-range-track() {}
|
|
190
|
+
.hook-inverse-form-range-track-focus() {}
|
|
191
|
+
.hook-inverse-form-range-thumb() {}
|
|
@@ -604,7 +604,7 @@ select.uk-form-width-xsmall { width: (@form-width-xsmall + 25px); }
|
|
|
604
604
|
* 1. Position and resize the form control to always cover its container
|
|
605
605
|
* 2. Required for Firefox for positioning to the left
|
|
606
606
|
* 3. Required for Webkit to make `height` work
|
|
607
|
-
* 4. Hide
|
|
607
|
+
* 4. Hide controls and show cursor
|
|
608
608
|
* 5. Needed for the cursor
|
|
609
609
|
* 6. Clip height caused by 5. Needed for Webkit only
|
|
610
610
|
*/
|
|
@@ -5,11 +5,14 @@
|
|
|
5
5
|
//
|
|
6
6
|
// Sub-objects: `uk-lightbox-page`
|
|
7
7
|
// `uk-lightbox-items`
|
|
8
|
-
// `uk-lightbox-
|
|
9
|
-
// `uk-lightbox-
|
|
10
|
-
// `uk-lightbox-
|
|
8
|
+
// `uk-lightbox-items-fit`
|
|
9
|
+
// `uk-lightbox-thumbnav`
|
|
10
|
+
// `uk-lightbox-thumbnav-vertical`
|
|
11
|
+
// `uk-lightbox-dotnav`
|
|
11
12
|
// `uk-lightbox-caption`
|
|
13
|
+
// `uk-lightbox-counter`
|
|
12
14
|
// `uk-lightbox-iframe`
|
|
15
|
+
// `uk-lightbox-zoom`
|
|
13
16
|
//
|
|
14
17
|
// States: `uk-open`
|
|
15
18
|
//
|
|
@@ -21,28 +24,20 @@
|
|
|
21
24
|
|
|
22
25
|
@lightbox-z-index: @global-z-index + 10;
|
|
23
26
|
@lightbox-background: #000;
|
|
27
|
+
@lightbox-color-mode: light;
|
|
24
28
|
|
|
25
29
|
@lightbox-focus-outline: rgba(255,255,255,0.7);
|
|
26
30
|
|
|
27
|
-
@lightbox-item-color: rgba(255,255,255,0.7);
|
|
28
31
|
@lightbox-item-max-width: 100vw;
|
|
29
32
|
@lightbox-item-max-height: 100vh;
|
|
30
33
|
|
|
31
|
-
@lightbox-
|
|
32
|
-
@lightbox-
|
|
33
|
-
@lightbox-toolbar-background: rgba(0,0,0,0.3);
|
|
34
|
-
@lightbox-toolbar-color: rgba(255,255,255,0.7);
|
|
34
|
+
@lightbox-thumbnav-vertical-width: 100px;
|
|
35
|
+
@lightbox-thumbnav-height: 100px;
|
|
35
36
|
|
|
36
|
-
@lightbox-
|
|
37
|
-
@lightbox-
|
|
38
|
-
|
|
39
|
-
@lightbox-
|
|
40
|
-
|
|
41
|
-
@lightbox-button-size: 50px;
|
|
42
|
-
@lightbox-button-background: @lightbox-toolbar-background;
|
|
43
|
-
@lightbox-button-color: rgba(255,255,255,0.7);
|
|
44
|
-
|
|
45
|
-
@lightbox-button-hover-color: #fff;
|
|
37
|
+
@lightbox-caption-padding-vertical: 10px;
|
|
38
|
+
@lightbox-caption-padding-horizontal: 10px;
|
|
39
|
+
@lightbox-caption-background: rgba(0,0,0,0.3);
|
|
40
|
+
@lightbox-caption-color: rgba(255,255,255,0.7);
|
|
46
41
|
|
|
47
42
|
|
|
48
43
|
/* ========================================================================
|
|
@@ -60,6 +55,7 @@
|
|
|
60
55
|
*/
|
|
61
56
|
|
|
62
57
|
.uk-lightbox {
|
|
58
|
+
--uk-inverse: @lightbox-color-mode;
|
|
63
59
|
/* 1 */
|
|
64
60
|
display: none;
|
|
65
61
|
/* 2 */
|
|
@@ -108,15 +104,24 @@
|
|
|
108
104
|
.uk-lightbox-page { overflow: hidden; }
|
|
109
105
|
|
|
110
106
|
|
|
111
|
-
/*
|
|
107
|
+
/* Items
|
|
112
108
|
========================================================================== */
|
|
113
109
|
|
|
110
|
+
/*
|
|
111
|
+
* Reset list
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
.uk-lightbox-items {
|
|
115
|
+
margin: 0;
|
|
116
|
+
padding: 0;
|
|
117
|
+
list-style: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
114
120
|
/*
|
|
115
121
|
* 1. Center child within the viewport
|
|
116
122
|
* 2. Not visible by default
|
|
117
|
-
* 3.
|
|
118
|
-
* 4.
|
|
119
|
-
* 5. Responsiveness
|
|
123
|
+
* 3. Optimize animation
|
|
124
|
+
* 4. Responsiveness
|
|
120
125
|
* Using `vh` for `max-height` to fix image proportions after resize in Safari and Opera
|
|
121
126
|
*/
|
|
122
127
|
|
|
@@ -130,96 +135,64 @@
|
|
|
130
135
|
/* 2 */
|
|
131
136
|
display: none;
|
|
132
137
|
justify-content: center;
|
|
133
|
-
align-items:
|
|
138
|
+
align-items: flex-start;
|
|
134
139
|
/* 3 */
|
|
135
|
-
color: @lightbox-item-color;
|
|
136
|
-
/* 4 */
|
|
137
140
|
will-change: transform, opacity;
|
|
141
|
+
/* 4 */
|
|
142
|
+
overflow: auto;
|
|
138
143
|
.hook-lightbox-item();
|
|
139
144
|
}
|
|
140
145
|
|
|
141
|
-
/*
|
|
142
|
-
.uk-lightbox-items >
|
|
146
|
+
/* 2 */
|
|
147
|
+
.uk-lightbox-items > .uk-active { display: flex; }
|
|
148
|
+
|
|
149
|
+
.uk-lightbox-items-fit > * { align-items: center; }
|
|
150
|
+
|
|
151
|
+
/* 4 */
|
|
152
|
+
.uk-lightbox-items-fit > * > * {
|
|
143
153
|
max-width: @lightbox-item-max-width;
|
|
144
154
|
max-height: @lightbox-item-max-height;
|
|
145
155
|
}
|
|
146
156
|
|
|
147
|
-
.uk-lightbox-items > * > :not(iframe) {
|
|
157
|
+
.uk-lightbox-items-fit > * > :not(iframe) {
|
|
148
158
|
width: auto;
|
|
149
159
|
height: auto;
|
|
150
160
|
}
|
|
151
161
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
========================================================================== */
|
|
156
|
-
|
|
157
|
-
.uk-lightbox-toolbar {
|
|
158
|
-
padding: @lightbox-toolbar-padding-vertical @lightbox-toolbar-padding-horizontal;
|
|
159
|
-
background: @lightbox-toolbar-background;
|
|
160
|
-
color: @lightbox-toolbar-color;
|
|
161
|
-
.hook-lightbox-toolbar();
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.uk-lightbox-toolbar > * { color: @lightbox-toolbar-color; }
|
|
162
|
+
/* Zoom Cursor */
|
|
163
|
+
.uk-lightbox-items.uk-lightbox-items-fit .uk-lightbox-zoom:hover { cursor: zoom-in; }
|
|
164
|
+
.uk-lightbox-items:not(.uk-lightbox-items-fit) .uk-lightbox-zoom:hover { cursor: zoom-out; }
|
|
165
165
|
|
|
166
166
|
|
|
167
|
-
/*
|
|
167
|
+
/* Navs
|
|
168
168
|
========================================================================== */
|
|
169
169
|
|
|
170
|
-
.uk-lightbox-
|
|
171
|
-
|
|
172
|
-
color: @lightbox-toolbar-icon-color;
|
|
173
|
-
.hook-lightbox-toolbar-icon();
|
|
174
|
-
}
|
|
170
|
+
.uk-lightbox-thumbnav-vertical :where(img, video) { max-width: @lightbox-thumbnav-vertical-width; }
|
|
171
|
+
.uk-lightbox-thumbnav:not(.uk-lightbox-thumbnav-vertical) :where(img, video) { max-height: @lightbox-thumbnav-height; }
|
|
175
172
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
*/
|
|
173
|
+
.uk-lightbox-thumbnav:empty,
|
|
174
|
+
.uk-lightbox-dotnav:empty { display: none; }
|
|
179
175
|
|
|
180
|
-
.uk-lightbox-toolbar-icon:hover {
|
|
181
|
-
color: @lightbox-toolbar-icon-hover-color;
|
|
182
|
-
.hook-lightbox-toolbar-icon-hover();
|
|
183
|
-
}
|
|
184
176
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
/* Button (Slidenav)
|
|
177
|
+
/* Caption
|
|
188
178
|
========================================================================== */
|
|
189
179
|
|
|
190
|
-
|
|
191
|
-
* 1. Center icon vertically and horizontally
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
.uk-lightbox-button {
|
|
195
|
-
box-sizing: border-box;
|
|
196
|
-
width: @lightbox-button-size;
|
|
197
|
-
height: @lightbox-button-size;
|
|
198
|
-
background: @lightbox-button-background;
|
|
199
|
-
color: @lightbox-button-color;
|
|
200
|
-
/* 1 */
|
|
201
|
-
display: inline-flex;
|
|
202
|
-
justify-content: center;
|
|
203
|
-
align-items: center;
|
|
204
|
-
.hook-lightbox-button();
|
|
205
|
-
}
|
|
180
|
+
.uk-lightbox-caption:empty { display: none; }
|
|
206
181
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
182
|
+
.uk-lightbox-caption {
|
|
183
|
+
padding: @lightbox-caption-padding-vertical @lightbox-caption-padding-horizontal;
|
|
184
|
+
background: @lightbox-caption-background;
|
|
185
|
+
color: @lightbox-caption-color;
|
|
186
|
+
.hook-lightbox-caption();
|
|
211
187
|
}
|
|
212
188
|
|
|
213
|
-
|
|
214
|
-
.uk-lightbox-button:active {
|
|
215
|
-
.hook-lightbox-button-active();
|
|
216
|
-
}
|
|
189
|
+
.uk-lightbox-caption > * { color: @lightbox-caption-color; }
|
|
217
190
|
|
|
218
191
|
|
|
219
|
-
/*
|
|
192
|
+
/* Counter
|
|
220
193
|
========================================================================== */
|
|
221
194
|
|
|
222
|
-
.uk-lightbox-
|
|
195
|
+
.uk-lightbox-counter:empty { display: none; }
|
|
223
196
|
|
|
224
197
|
|
|
225
198
|
/* Iframe
|
|
@@ -238,10 +211,5 @@
|
|
|
238
211
|
|
|
239
212
|
.hook-lightbox() {}
|
|
240
213
|
.hook-lightbox-item() {}
|
|
241
|
-
.hook-lightbox-
|
|
242
|
-
.hook-lightbox-toolbar-icon() {}
|
|
243
|
-
.hook-lightbox-toolbar-icon-hover() {}
|
|
244
|
-
.hook-lightbox-button() {}
|
|
245
|
-
.hook-lightbox-button-hover() {}
|
|
246
|
-
.hook-lightbox-button-active() {}
|
|
214
|
+
.hook-lightbox-caption() {}
|
|
247
215
|
.hook-lightbox-misc() {}
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
@margin-margin: @global-margin;
|
|
19
19
|
|
|
20
|
+
@margin-xsmall-margin: 5px;
|
|
21
|
+
|
|
20
22
|
@margin-small-margin: @global-small-margin;
|
|
21
23
|
|
|
22
24
|
@margin-medium-margin: @global-medium-margin;
|
|
@@ -45,6 +47,18 @@
|
|
|
45
47
|
.uk-margin-right { margin-right: @margin-margin !important; }
|
|
46
48
|
|
|
47
49
|
|
|
50
|
+
/* XSmall
|
|
51
|
+
========================================================================== */
|
|
52
|
+
|
|
53
|
+
.uk-margin-xsmall { margin-bottom: @margin-xsmall-margin; }
|
|
54
|
+
* + .uk-margin-xsmall { margin-top: @margin-xsmall-margin !important; }
|
|
55
|
+
|
|
56
|
+
.uk-margin-xsmall-top { margin-top: @margin-xsmall-margin !important; }
|
|
57
|
+
.uk-margin-xsmall-bottom { margin-bottom: @margin-xsmall-margin !important; }
|
|
58
|
+
.uk-margin-xsmall-left { margin-left: @margin-xsmall-margin !important; }
|
|
59
|
+
.uk-margin-xsmall-right { margin-right: @margin-xsmall-margin !important; }
|
|
60
|
+
|
|
61
|
+
|
|
48
62
|
/* Small
|
|
49
63
|
========================================================================== */
|
|
50
64
|
|