comand-component-library 4.3.27 → 5.0.0
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/dist/comand-component-library.css +1 -1
- package/dist/comand-component-library.js +7568 -7448
- package/dist/styles/demopage-only.css +35 -1
- package/package.json +47 -46
- package/src/ComponentLibrary.vue +2697 -2688
- package/src/assets/data/component-structure.json +1 -1
- package/src/assets/data/form-elements.json +224 -224
- package/src/assets/data/social-networks-page-by-json.json +43 -43
- package/src/assets/styles/component-library-global-styles.scss +296 -295
- package/src/componentSettingsDataAndControls.vue +1 -18
- package/src/components/CmdAccordion.vue +1 -1
- package/src/components/CmdAddressData.vue +6 -1
- package/src/components/CmdAddressDataItem.vue +6 -1
- package/src/components/CmdBasicForm.vue +2 -2
- package/src/components/CmdBox.vue +1103 -1086
- package/src/components/CmdBoxWrapper.vue +11 -1
- package/src/components/CmdBreadcrumbs.vue +2 -2
- package/src/components/CmdCodeOutput.vue +1 -1
- package/src/components/CmdContainer.vue +13 -1
- package/src/components/CmdCookieDisclaimer.vue +480 -480
- package/src/components/CmdFakeSelect.vue +930 -917
- package/src/components/CmdFlexibleScrollContainer.vue +42 -42
- package/src/components/CmdForm.vue +481 -481
- package/src/components/CmdFormElement.vue +1110 -1091
- package/src/components/CmdFormFilters.vue +146 -146
- package/src/components/CmdGoogleMaps.vue +1 -1
- package/src/components/CmdHeadline.vue +21 -4
- package/src/components/CmdIcon.vue +8 -2
- package/src/components/CmdImage.vue +27 -21
- package/src/components/CmdImageZoom.vue +9 -8
- package/src/components/CmdInputGroup.vue +436 -435
- package/src/components/CmdLink.vue +1 -1
- package/src/components/CmdList.vue +3 -3
- package/src/components/CmdListOfRequirements.vue +192 -192
- package/src/components/CmdLoginForm.vue +618 -618
- package/src/components/CmdMailToolFilter.vue +217 -217
- package/src/components/CmdMainNavigation.vue +581 -572
- package/src/components/CmdMultistepFormProgressBar.vue +9 -9
- package/src/components/CmdNewsletterSubscription.vue +199 -199
- package/src/components/CmdPagination.vue +4 -2
- package/src/components/CmdParagraph.vue +10 -4
- package/src/components/CmdProgressBar.vue +72 -72
- package/src/components/CmdSiteHeader.vue +382 -389
- package/src/components/CmdSiteSearch.vue +420 -420
- package/src/components/CmdSiteWrapper.vue +12 -5
- package/src/components/CmdSlideshow.vue +519 -519
- package/src/components/CmdSmartSearch.vue +291 -291
- package/src/components/CmdSystemMessage.vue +3 -2
- package/src/components/CmdTable.vue +401 -401
- package/src/components/CmdTabs.vue +262 -262
- package/src/components/CmdTag.vue +2 -2
- package/src/components/CmdTextImageBlock.vue +8 -2
- package/src/components/CmdThumbnailScroller.vue +0 -7
- package/src/components/CmdToast.vue +1 -1
- package/src/components/CmdToggleDarkMode.vue +13 -11
- package/src/components/CmdTooltip.vue +305 -301
- package/src/components/CmdUploadForm.vue +1299 -1305
- package/src/components/CmdWidthLimitationWrapper.vue +1 -1
- package/src/components/EditComponentWrapper.vue +5 -5
- package/src/index.js +5 -0
- package/src/main.js +4 -3
- package/src/utils/template.js +57 -0
- package/dist/styles/templates/casual.css +0 -3
- package/src/assets/styles/template.css +0 -1
|
@@ -1,519 +1,519 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="cmd-slideshow" :class="{'full-width': fullWidth}">
|
|
3
|
-
<div class="inner-slideshow-wrapper" @mouseenter="pause = true" @mouseleave="pause = false">
|
|
4
|
-
<!-- begin CmdSlideButton -->
|
|
5
|
-
<CmdSlideButton
|
|
6
|
-
v-if="showSlideButtons"
|
|
7
|
-
@click.prevent="showPrevItem"
|
|
8
|
-
slideButtonType="left"
|
|
9
|
-
:class="{'disabled': slideshowItemEditing}"
|
|
10
|
-
v-bind="tooltipForSlidebuttons"
|
|
11
|
-
/>
|
|
12
|
-
<!-- end CmdSlideButton -->
|
|
13
|
-
|
|
14
|
-
<!-- begin area to slide -->
|
|
15
|
-
<transition-group :name="transition">
|
|
16
|
-
<template v-if="currentItem">
|
|
17
|
-
<template v-if="!useSlot">
|
|
18
|
-
<template v-if="!editModeContext">
|
|
19
|
-
<a v-if="currentItem?.link?.href"
|
|
20
|
-
:href="currentItem?.link?.href"
|
|
21
|
-
:title="currentItem?.link?.tooltip">
|
|
22
|
-
<!-- begin CmdImage -->
|
|
23
|
-
<CmdImage :image="currentItem?.image" :figcaption="currentItem?.figcaption"/>
|
|
24
|
-
<!-- begin CmdImage -->
|
|
25
|
-
</a>
|
|
26
|
-
|
|
27
|
-
<!-- begin CmdImage -->
|
|
28
|
-
<CmdImage v-else :image="currentItem?.image" :figcaption="currentItem?.figcaption"/>
|
|
29
|
-
<!-- begin CmdImage -->
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
|
-
<!-- begin edit-mode view -->
|
|
33
|
-
<!-- begin CmdImage -->
|
|
34
|
-
<CmdImage
|
|
35
|
-
v-else-if="slideshowItems.length"
|
|
36
|
-
:image="currentItem?.image"
|
|
37
|
-
:figcaption="currentItem?.figcaption"
|
|
38
|
-
:componentPath="['props', 'slideshowItems', index]"
|
|
39
|
-
:editModeConfig="imageStructure()"
|
|
40
|
-
/>
|
|
41
|
-
<!-- end CmdImage -->
|
|
42
|
-
<!-- end edit-mode view -->
|
|
43
|
-
</template>
|
|
44
|
-
<div
|
|
45
|
-
v-else
|
|
46
|
-
class="slot-wrapper"
|
|
47
|
-
:key="index"
|
|
48
|
-
:style="'background-image: url(' + currentItem.image.srcLarge + ')'"
|
|
49
|
-
>
|
|
50
|
-
<!-- begin slot -->
|
|
51
|
-
<slot :name="'item' + currentSlotItem"></slot>
|
|
52
|
-
<!-- end slot -->
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
<button v-else-if="editModeContext" type="button" class="button confirm" @click="onAddItem">
|
|
56
|
-
<span class="icon-plus"></span>
|
|
57
|
-
<span>Add new slideshow-image</span>
|
|
58
|
-
</button>
|
|
59
|
-
</transition-group>
|
|
60
|
-
<!-- end area to slide -->
|
|
61
|
-
|
|
62
|
-
<!-- begin CmdSlideButton -->
|
|
63
|
-
<CmdSlideButton
|
|
64
|
-
v-if="showSlideButtons"
|
|
65
|
-
@click.prevent="showNextItem"
|
|
66
|
-
:class="{'disabled': slideshowItemEditing}"
|
|
67
|
-
v-bind="tooltipForSlidebuttons"
|
|
68
|
-
/>
|
|
69
|
-
<!-- end CmdSlideButton -->
|
|
70
|
-
|
|
71
|
-
<ol v-if="showQuickLinkIcons">
|
|
72
|
-
<li v-for="(item, i) in slideshowItems" :key="i" :class="{active: i === index }">
|
|
73
|
-
<a href="#"
|
|
74
|
-
:class="{'disabled': slideshowItemEditing}"
|
|
75
|
-
@click.prevent="showItem(i)"
|
|
76
|
-
:aria-label="index"
|
|
77
|
-
:title="slideshowItemEditing ? 'Not allowed while editing!' : 'Switch to image #' + (i + 1)"
|
|
78
|
-
>
|
|
79
|
-
</a>
|
|
80
|
-
</li>
|
|
81
|
-
</ol>
|
|
82
|
-
<span class="item-counter" v-if="showCounter">{{ index + 1 }}/{{ slideshowItems.length }}</span>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</template>
|
|
86
|
-
|
|
87
|
-
<script>
|
|
88
|
-
// import mixins
|
|
89
|
-
import EditMode from "../mixins/EditMode.vue"
|
|
90
|
-
import {buildComponentPath, updateHandlerProvider} from "../utils/editmode.js"
|
|
91
|
-
import {createUuid} from "../utils/common.js"
|
|
92
|
-
export default {
|
|
93
|
-
name: "CmdSlideshow",
|
|
94
|
-
mixins: [EditMode],
|
|
95
|
-
inject: {
|
|
96
|
-
editModeContext: {
|
|
97
|
-
default: null
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
data() {
|
|
101
|
-
return {
|
|
102
|
-
index: 0,
|
|
103
|
-
pause: false,
|
|
104
|
-
hnd: null,
|
|
105
|
-
fullWidth: false,
|
|
106
|
-
currentSlotItem: 0,
|
|
107
|
-
slideshowItemEditing: false
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
props: {
|
|
111
|
-
/**
|
|
112
|
-
* define the transition when images change
|
|
113
|
-
*
|
|
114
|
-
* @allowedValues: "none", "fade", "scroll"
|
|
115
|
-
*/
|
|
116
|
-
transition: {
|
|
117
|
-
type: String,
|
|
118
|
-
default: "fade"
|
|
119
|
-
},
|
|
120
|
-
/**
|
|
121
|
-
* use slot for images
|
|
122
|
-
*/
|
|
123
|
-
useSlot: {
|
|
124
|
-
type: Boolean,
|
|
125
|
-
default: false
|
|
126
|
-
},
|
|
127
|
-
/**
|
|
128
|
-
* activate if images should switch automatically
|
|
129
|
-
*/
|
|
130
|
-
autoplay: {
|
|
131
|
-
type: Boolean,
|
|
132
|
-
default: false
|
|
133
|
-
},
|
|
134
|
-
/**
|
|
135
|
-
* set milliseconds to switch images (if autoplay is activated only)
|
|
136
|
-
*/
|
|
137
|
-
autoplayInterval: {
|
|
138
|
-
type: Number,
|
|
139
|
-
default: 5000
|
|
140
|
-
},
|
|
141
|
-
/**
|
|
142
|
-
* shows buttons/icons to let user quick jump to each image
|
|
143
|
-
*/
|
|
144
|
-
showQuickLinkIcons: {
|
|
145
|
-
type: Boolean,
|
|
146
|
-
default: true
|
|
147
|
-
},
|
|
148
|
-
/**
|
|
149
|
-
* activate if current number of each image should be displayed
|
|
150
|
-
*/
|
|
151
|
-
showCounter: {
|
|
152
|
-
type: Boolean,
|
|
153
|
-
default: false
|
|
154
|
-
},
|
|
155
|
-
/**
|
|
156
|
-
* list of images to display (use slot must be set to false)
|
|
157
|
-
*/
|
|
158
|
-
slideshowItems: {
|
|
159
|
-
type: Array,
|
|
160
|
-
required: true
|
|
161
|
-
},
|
|
162
|
-
/**
|
|
163
|
-
* toggle slide-buttons-visibility
|
|
164
|
-
*/
|
|
165
|
-
showSlideButtons: {
|
|
166
|
-
type: Boolean,
|
|
167
|
-
default: false
|
|
168
|
-
},
|
|
169
|
-
/**
|
|
170
|
-
* properties for CmdSlideButton-component
|
|
171
|
-
*
|
|
172
|
-
* showSlideButtons-property must be activated
|
|
173
|
-
*
|
|
174
|
-
* @requiredForAccessibility: partial
|
|
175
|
-
*/
|
|
176
|
-
cmdSlideButtons: {
|
|
177
|
-
type: Object,
|
|
178
|
-
default() {
|
|
179
|
-
return {
|
|
180
|
-
next: {
|
|
181
|
-
next: {
|
|
182
|
-
"iconClass": "icon-chevron-one-stripe-right",
|
|
183
|
-
"tooltip": "Next"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
prev: {
|
|
187
|
-
prev: {
|
|
188
|
-
"type": "prev",
|
|
189
|
-
"iconClass": "icon-chevron-one-stripe-left",
|
|
190
|
-
"tooltip": "Previous"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
beforeUnmount() {
|
|
198
|
-
this.stopAutoplay()
|
|
199
|
-
},
|
|
200
|
-
methods: {
|
|
201
|
-
stopAutoplay() {
|
|
202
|
-
if (this.hnd !== null) {
|
|
203
|
-
window.clearInterval(this.hnd);
|
|
204
|
-
this.hnd = null;
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
itemProvider() {
|
|
208
|
-
return {
|
|
209
|
-
"image": {
|
|
210
|
-
"src": {
|
|
211
|
-
"large": "/media/images/slideshow-images/large/slide1.jpg",
|
|
212
|
-
"medium": "/media/images/slideshow-images/medium/slide1.jpg",
|
|
213
|
-
"small": "/media/images/slideshow-images/small/slide1.jpg"
|
|
214
|
-
},
|
|
215
|
-
"alt": "Alternative Text",
|
|
216
|
-
"tooltip": "Tooltip DE"
|
|
217
|
-
},
|
|
218
|
-
"figcaption": {
|
|
219
|
-
"text": "Figcaption DE",
|
|
220
|
-
"position": "bottom",
|
|
221
|
-
"textAlign": "center",
|
|
222
|
-
"show": true
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
onAddItem() {
|
|
227
|
-
this.editModeContext.content.addContent(
|
|
228
|
-
buildComponentPath(this, 'props', 'slideshowItems', -1),
|
|
229
|
-
this.itemProvider)
|
|
230
|
-
},
|
|
231
|
-
imageStructure() {
|
|
232
|
-
return {
|
|
233
|
-
itemProviderOverwrite: () => ({
|
|
234
|
-
"image": {
|
|
235
|
-
"src": {
|
|
236
|
-
"large": "/media/images/slideshow-images/large/slide1.jpg",
|
|
237
|
-
"medium": "/media/images/slideshow-images/medium/slide1.jpg",
|
|
238
|
-
"small": "/media/images/slideshow-images/small/slide1.jpg"
|
|
239
|
-
},
|
|
240
|
-
"tooltip": "Tooltip DE"
|
|
241
|
-
}
|
|
242
|
-
})
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
showPrevItem() {
|
|
246
|
-
// avoids slide-button to be clicked in edit-mode
|
|
247
|
-
if (this.slideshowItemEditing) {
|
|
248
|
-
return
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
if (this.useSlot) {
|
|
252
|
-
if (this.currentSlotItem > 0) {
|
|
253
|
-
this.currentSlotItem--
|
|
254
|
-
} else {
|
|
255
|
-
this.currentSlotItem = Object.keys(this.$slots).length - 1
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
if (this.index > 0) {
|
|
259
|
-
this.index--
|
|
260
|
-
} else {
|
|
261
|
-
this.index = this.slideshowItems.length - 1
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
showItem(i) {
|
|
265
|
-
if (!this.slideshowItemEditing && i >= 0 && i < this.slideshowItems.length) {
|
|
266
|
-
this.index = i;
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
showNextItem() {
|
|
270
|
-
// avoids slide-button to be clicked in edit-mode
|
|
271
|
-
if (this.slideshowItemEditing) {
|
|
272
|
-
return
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
if (this.useSlot) {
|
|
276
|
-
if (this.currentSlotItem < Object.keys(this.$slots).length - 1) {
|
|
277
|
-
this.currentSlotItem++
|
|
278
|
-
} else {
|
|
279
|
-
this.currentSlotItem = 0
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
if (this.index < this.slideshowItems.length - 1) {
|
|
284
|
-
this.index++
|
|
285
|
-
} else {
|
|
286
|
-
this.index = 0
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
setupSlider() {
|
|
290
|
-
if (this.autoplay && this.hnd === null) {
|
|
291
|
-
this.hnd = window.setInterval(() => this.pause || this.showNextItem(), this.autoplayInterval);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
|
|
296
|
-
/* computed property to get current slide */
|
|
297
|
-
computed: {
|
|
298
|
-
tooltipForSlidebuttons() {
|
|
299
|
-
if (this.slideshowItemEditing) {
|
|
300
|
-
return {
|
|
301
|
-
title: "Not allowed while editing!"
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
return {}
|
|
305
|
-
},
|
|
306
|
-
/* computed property to get current slide */
|
|
307
|
-
currentItem() {
|
|
308
|
-
if (this.slideshowItems.length <= this.index) {
|
|
309
|
-
return null
|
|
310
|
-
}
|
|
311
|
-
return this.slideshowItems[this.index]
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
watch: {
|
|
315
|
-
slideshowItems: {
|
|
316
|
-
handler() {
|
|
317
|
-
this.index = 0
|
|
318
|
-
this.setupSlider()
|
|
319
|
-
},
|
|
320
|
-
immediate: true,
|
|
321
|
-
deep: true
|
|
322
|
-
},
|
|
323
|
-
autoplay() {
|
|
324
|
-
if(this.autoplay) {
|
|
325
|
-
this.setupSlider()
|
|
326
|
-
} else {
|
|
327
|
-
this.stopAutoplay()
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
autoplayInterval() {
|
|
331
|
-
if(this.autoplay) {
|
|
332
|
-
this.stopAutoplay()
|
|
333
|
-
this.setupSlider()
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
currentItem() {
|
|
337
|
-
// wait to nextTick to ensure ref is available
|
|
338
|
-
this.$nextTick(() => {
|
|
339
|
-
this.$refs.slideshowItemComponentWrapper?.addEditStateListener(editing => this.slideshowItemEditing = editing)
|
|
340
|
-
})
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
</script>
|
|
346
|
-
|
|
347
|
-
<style>
|
|
348
|
-
/* begin cmd-slideshow ---------------------------------------------------------------------------------------- */
|
|
349
|
-
.cmd-slideshow {
|
|
350
|
-
figure a, img {
|
|
351
|
-
display: block;
|
|
352
|
-
text-decoration: none;
|
|
353
|
-
margin: 0 auto;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
figcaption {
|
|
357
|
-
width: 100%;
|
|
358
|
-
display: block;
|
|
359
|
-
text-align: center;
|
|
360
|
-
bottom: 0;
|
|
361
|
-
padding: var(--default-padding);
|
|
362
|
-
line-height: 100%;
|
|
363
|
-
font-size: 3rem;
|
|
364
|
-
color: var(--color-
|
|
365
|
-
background: var(--primary-color);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
&:has(figcaption) {
|
|
369
|
-
img {
|
|
370
|
-
border-bottom-left-radius: 0;
|
|
371
|
-
border-bottom-right-radius: 0;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
figcaption {
|
|
375
|
-
border-bottom-left-radius: var(--default-border-radius);
|
|
376
|
-
border-bottom-right-radius: var(--default-border-radius);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
.inner-slideshow-wrapper {
|
|
381
|
-
display: flex;
|
|
382
|
-
justify-content: center;
|
|
383
|
-
|
|
384
|
-
> a:not(.button) {
|
|
385
|
-
display: block;
|
|
386
|
-
text-decoration: none;
|
|
387
|
-
|
|
388
|
-
figcaption {
|
|
389
|
-
border: var(--primary-border);
|
|
390
|
-
|
|
391
|
-
&:hover, &:active, &:focus {
|
|
392
|
-
background: var(--color-
|
|
393
|
-
color: var(--hyperlink-color);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
figure {
|
|
399
|
-
width: 100%; /* important to stretch figure with position: absolute over full width */
|
|
400
|
-
margin: 0;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.slot-wrapper {
|
|
404
|
-
padding: calc(var(--default-padding) * 5);
|
|
405
|
-
width: 100%;
|
|
406
|
-
min-height: 50rem;
|
|
407
|
-
background-repeat: no-repeat;
|
|
408
|
-
background-position: top center;
|
|
409
|
-
display: flex;
|
|
410
|
-
justify-content: center;
|
|
411
|
-
align-content: center;
|
|
412
|
-
|
|
413
|
-
.box {
|
|
414
|
-
align-self: flex-start;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.image-wrapper {
|
|
419
|
-
width: 100%;
|
|
420
|
-
min-width: 11.1rem; /* assure to be as wide as action-buttons in edit-mode */
|
|
421
|
-
min-height: 50rem;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
> ol {
|
|
425
|
-
display: flex;
|
|
426
|
-
margin: 0 auto;
|
|
427
|
-
position: absolute;
|
|
428
|
-
left: 5.5rem;
|
|
429
|
-
top: .5rem;
|
|
430
|
-
gap: calc(var(--default-gap) / 2);
|
|
431
|
-
|
|
432
|
-
li {
|
|
433
|
-
padding: .2rem;
|
|
434
|
-
list-style-type: none;
|
|
435
|
-
margin: 0;
|
|
436
|
-
border-radius: var(--full-circle);
|
|
437
|
-
background: var(--color-light-gray);
|
|
438
|
-
border: var(--default-border-reduced-opacity);
|
|
439
|
-
|
|
440
|
-
a {
|
|
441
|
-
display: block;
|
|
442
|
-
width: 1rem;
|
|
443
|
-
height: 1rem;
|
|
444
|
-
border-radius: var(--full-circle);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
&:hover, &:active, &:focus, &.active {
|
|
448
|
-
border-color: var(--hyperlink-color);
|
|
449
|
-
|
|
450
|
-
a {
|
|
451
|
-
background: var(--color-white);
|
|
452
|
-
transition: var(--default-transition);
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
&.bottom {
|
|
458
|
-
position: relative;
|
|
459
|
-
justify-content: center;
|
|
460
|
-
left: unset;
|
|
461
|
-
top: unset;
|
|
462
|
-
|
|
463
|
-
li {
|
|
464
|
-
border-color: var(--primary-color);
|
|
465
|
-
|
|
466
|
-
&:hover, &:active, &:focus, &.active {
|
|
467
|
-
border-color: var(--primary-color);
|
|
468
|
-
background: var(--color-white);
|
|
469
|
-
|
|
470
|
-
a {
|
|
471
|
-
background: var(--primary-color);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
/* vertical slideshow */
|
|
478
|
-
&.vertical {
|
|
479
|
-
flex-direction: column;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
> .item-counter {
|
|
484
|
-
position: absolute;
|
|
485
|
-
top: .5rem;
|
|
486
|
-
right: 5.5rem;
|
|
487
|
-
padding: 0 0.2rem;
|
|
488
|
-
border-radius: var(--default-border-radius);
|
|
489
|
-
background: var(--color-white-reduced-opacity);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.fade-enter-from, .fade-leave-to {
|
|
494
|
-
position: absolute;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
.edit-mode .cmd-slideshow .image-wrapper.edit-items {
|
|
499
|
-
padding: 0;
|
|
500
|
-
margin-top: 2rem;
|
|
501
|
-
|
|
502
|
-
label.edit-mode input {
|
|
503
|
-
font-size: 3rem;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
</style>
|
|
507
|
-
|
|
508
|
-
<style lang="scss">
|
|
509
|
-
@import '../assets/styles/variables';
|
|
510
|
-
|
|
511
|
-
@media only screen and (max-width: $medium-max-width) {
|
|
512
|
-
.cmd-slideshow {
|
|
513
|
-
figcaption {
|
|
514
|
-
font-size: 2rem;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
/* end cmd-slideshow ------------------------------------------------------------------------------------------ */
|
|
519
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="cmd-slideshow" :class="{'full-width': fullWidth}">
|
|
3
|
+
<div class="inner-slideshow-wrapper" @mouseenter="pause = true" @mouseleave="pause = false">
|
|
4
|
+
<!-- begin CmdSlideButton -->
|
|
5
|
+
<CmdSlideButton
|
|
6
|
+
v-if="showSlideButtons"
|
|
7
|
+
@click.prevent="showPrevItem"
|
|
8
|
+
slideButtonType="left"
|
|
9
|
+
:class="{'disabled': slideshowItemEditing}"
|
|
10
|
+
v-bind="tooltipForSlidebuttons"
|
|
11
|
+
/>
|
|
12
|
+
<!-- end CmdSlideButton -->
|
|
13
|
+
|
|
14
|
+
<!-- begin area to slide -->
|
|
15
|
+
<transition-group :name="transition">
|
|
16
|
+
<template v-if="currentItem">
|
|
17
|
+
<template v-if="!useSlot">
|
|
18
|
+
<template v-if="!editModeContext">
|
|
19
|
+
<a v-if="currentItem?.link?.href"
|
|
20
|
+
:href="currentItem?.link?.href"
|
|
21
|
+
:title="currentItem?.link?.tooltip">
|
|
22
|
+
<!-- begin CmdImage -->
|
|
23
|
+
<CmdImage :image="currentItem?.image" :figcaption="currentItem?.figcaption"/>
|
|
24
|
+
<!-- begin CmdImage -->
|
|
25
|
+
</a>
|
|
26
|
+
|
|
27
|
+
<!-- begin CmdImage -->
|
|
28
|
+
<CmdImage v-else :image="currentItem?.image" :figcaption="currentItem?.figcaption"/>
|
|
29
|
+
<!-- begin CmdImage -->
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<!-- begin edit-mode view -->
|
|
33
|
+
<!-- begin CmdImage -->
|
|
34
|
+
<CmdImage
|
|
35
|
+
v-else-if="slideshowItems.length"
|
|
36
|
+
:image="currentItem?.image"
|
|
37
|
+
:figcaption="currentItem?.figcaption"
|
|
38
|
+
:componentPath="['props', 'slideshowItems', index]"
|
|
39
|
+
:editModeConfig="imageStructure()"
|
|
40
|
+
/>
|
|
41
|
+
<!-- end CmdImage -->
|
|
42
|
+
<!-- end edit-mode view -->
|
|
43
|
+
</template>
|
|
44
|
+
<div
|
|
45
|
+
v-else
|
|
46
|
+
class="slot-wrapper"
|
|
47
|
+
:key="index"
|
|
48
|
+
:style="'background-image: url(' + currentItem.image.srcLarge + ')'"
|
|
49
|
+
>
|
|
50
|
+
<!-- begin slot -->
|
|
51
|
+
<slot :name="'item' + currentSlotItem"></slot>
|
|
52
|
+
<!-- end slot -->
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
<button v-else-if="editModeContext" type="button" class="button confirm" @click="onAddItem">
|
|
56
|
+
<span class="icon-plus"></span>
|
|
57
|
+
<span>Add new slideshow-image</span>
|
|
58
|
+
</button>
|
|
59
|
+
</transition-group>
|
|
60
|
+
<!-- end area to slide -->
|
|
61
|
+
|
|
62
|
+
<!-- begin CmdSlideButton -->
|
|
63
|
+
<CmdSlideButton
|
|
64
|
+
v-if="showSlideButtons"
|
|
65
|
+
@click.prevent="showNextItem"
|
|
66
|
+
:class="{'disabled': slideshowItemEditing}"
|
|
67
|
+
v-bind="tooltipForSlidebuttons"
|
|
68
|
+
/>
|
|
69
|
+
<!-- end CmdSlideButton -->
|
|
70
|
+
|
|
71
|
+
<ol v-if="showQuickLinkIcons">
|
|
72
|
+
<li v-for="(item, i) in slideshowItems" :key="i" :class="{active: i === index }">
|
|
73
|
+
<a href="#"
|
|
74
|
+
:class="{'disabled': slideshowItemEditing}"
|
|
75
|
+
@click.prevent="showItem(i)"
|
|
76
|
+
:aria-label="index"
|
|
77
|
+
:title="slideshowItemEditing ? 'Not allowed while editing!' : 'Switch to image #' + (i + 1)"
|
|
78
|
+
>
|
|
79
|
+
</a>
|
|
80
|
+
</li>
|
|
81
|
+
</ol>
|
|
82
|
+
<span class="item-counter" v-if="showCounter">{{ index + 1 }}/{{ slideshowItems.length }}</span>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</template>
|
|
86
|
+
|
|
87
|
+
<script>
|
|
88
|
+
// import mixins
|
|
89
|
+
import EditMode from "../mixins/EditMode.vue"
|
|
90
|
+
import {buildComponentPath, updateHandlerProvider} from "../utils/editmode.js"
|
|
91
|
+
import {createUuid} from "../utils/common.js"
|
|
92
|
+
export default {
|
|
93
|
+
name: "CmdSlideshow",
|
|
94
|
+
mixins: [EditMode],
|
|
95
|
+
inject: {
|
|
96
|
+
editModeContext: {
|
|
97
|
+
default: null
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
data() {
|
|
101
|
+
return {
|
|
102
|
+
index: 0,
|
|
103
|
+
pause: false,
|
|
104
|
+
hnd: null,
|
|
105
|
+
fullWidth: false,
|
|
106
|
+
currentSlotItem: 0,
|
|
107
|
+
slideshowItemEditing: false
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
props: {
|
|
111
|
+
/**
|
|
112
|
+
* define the transition when images change
|
|
113
|
+
*
|
|
114
|
+
* @allowedValues: "none", "fade", "scroll"
|
|
115
|
+
*/
|
|
116
|
+
transition: {
|
|
117
|
+
type: String,
|
|
118
|
+
default: "fade"
|
|
119
|
+
},
|
|
120
|
+
/**
|
|
121
|
+
* use slot for images
|
|
122
|
+
*/
|
|
123
|
+
useSlot: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* activate if images should switch automatically
|
|
129
|
+
*/
|
|
130
|
+
autoplay: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: false
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
* set milliseconds to switch images (if autoplay is activated only)
|
|
136
|
+
*/
|
|
137
|
+
autoplayInterval: {
|
|
138
|
+
type: Number,
|
|
139
|
+
default: 5000
|
|
140
|
+
},
|
|
141
|
+
/**
|
|
142
|
+
* shows buttons/icons to let user quick jump to each image
|
|
143
|
+
*/
|
|
144
|
+
showQuickLinkIcons: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: true
|
|
147
|
+
},
|
|
148
|
+
/**
|
|
149
|
+
* activate if current number of each image should be displayed
|
|
150
|
+
*/
|
|
151
|
+
showCounter: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: false
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
* list of images to display (use slot must be set to false)
|
|
157
|
+
*/
|
|
158
|
+
slideshowItems: {
|
|
159
|
+
type: Array,
|
|
160
|
+
required: true
|
|
161
|
+
},
|
|
162
|
+
/**
|
|
163
|
+
* toggle slide-buttons-visibility
|
|
164
|
+
*/
|
|
165
|
+
showSlideButtons: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: false
|
|
168
|
+
},
|
|
169
|
+
/**
|
|
170
|
+
* properties for CmdSlideButton-component
|
|
171
|
+
*
|
|
172
|
+
* showSlideButtons-property must be activated
|
|
173
|
+
*
|
|
174
|
+
* @requiredForAccessibility: partial
|
|
175
|
+
*/
|
|
176
|
+
cmdSlideButtons: {
|
|
177
|
+
type: Object,
|
|
178
|
+
default() {
|
|
179
|
+
return {
|
|
180
|
+
next: {
|
|
181
|
+
next: {
|
|
182
|
+
"iconClass": "icon-chevron-one-stripe-right",
|
|
183
|
+
"tooltip": "Next"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
prev: {
|
|
187
|
+
prev: {
|
|
188
|
+
"type": "prev",
|
|
189
|
+
"iconClass": "icon-chevron-one-stripe-left",
|
|
190
|
+
"tooltip": "Previous"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
beforeUnmount() {
|
|
198
|
+
this.stopAutoplay()
|
|
199
|
+
},
|
|
200
|
+
methods: {
|
|
201
|
+
stopAutoplay() {
|
|
202
|
+
if (this.hnd !== null) {
|
|
203
|
+
window.clearInterval(this.hnd);
|
|
204
|
+
this.hnd = null;
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
itemProvider() {
|
|
208
|
+
return {
|
|
209
|
+
"image": {
|
|
210
|
+
"src": {
|
|
211
|
+
"large": "/media/images/slideshow-images/large/slide1.jpg",
|
|
212
|
+
"medium": "/media/images/slideshow-images/medium/slide1.jpg",
|
|
213
|
+
"small": "/media/images/slideshow-images/small/slide1.jpg"
|
|
214
|
+
},
|
|
215
|
+
"alt": "Alternative Text",
|
|
216
|
+
"tooltip": "Tooltip DE"
|
|
217
|
+
},
|
|
218
|
+
"figcaption": {
|
|
219
|
+
"text": "Figcaption DE",
|
|
220
|
+
"position": "bottom",
|
|
221
|
+
"textAlign": "center",
|
|
222
|
+
"show": true
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
onAddItem() {
|
|
227
|
+
this.editModeContext.content.addContent(
|
|
228
|
+
buildComponentPath(this, 'props', 'slideshowItems', -1),
|
|
229
|
+
this.itemProvider)
|
|
230
|
+
},
|
|
231
|
+
imageStructure() {
|
|
232
|
+
return {
|
|
233
|
+
itemProviderOverwrite: () => ({
|
|
234
|
+
"image": {
|
|
235
|
+
"src": {
|
|
236
|
+
"large": "/media/images/slideshow-images/large/slide1.jpg",
|
|
237
|
+
"medium": "/media/images/slideshow-images/medium/slide1.jpg",
|
|
238
|
+
"small": "/media/images/slideshow-images/small/slide1.jpg"
|
|
239
|
+
},
|
|
240
|
+
"tooltip": "Tooltip DE"
|
|
241
|
+
}
|
|
242
|
+
})
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
showPrevItem() {
|
|
246
|
+
// avoids slide-button to be clicked in edit-mode
|
|
247
|
+
if (this.slideshowItemEditing) {
|
|
248
|
+
return
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (this.useSlot) {
|
|
252
|
+
if (this.currentSlotItem > 0) {
|
|
253
|
+
this.currentSlotItem--
|
|
254
|
+
} else {
|
|
255
|
+
this.currentSlotItem = Object.keys(this.$slots).length - 1
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
if (this.index > 0) {
|
|
259
|
+
this.index--
|
|
260
|
+
} else {
|
|
261
|
+
this.index = this.slideshowItems.length - 1
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
showItem(i) {
|
|
265
|
+
if (!this.slideshowItemEditing && i >= 0 && i < this.slideshowItems.length) {
|
|
266
|
+
this.index = i;
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
showNextItem() {
|
|
270
|
+
// avoids slide-button to be clicked in edit-mode
|
|
271
|
+
if (this.slideshowItemEditing) {
|
|
272
|
+
return
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
if (this.useSlot) {
|
|
276
|
+
if (this.currentSlotItem < Object.keys(this.$slots).length - 1) {
|
|
277
|
+
this.currentSlotItem++
|
|
278
|
+
} else {
|
|
279
|
+
this.currentSlotItem = 0
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if (this.index < this.slideshowItems.length - 1) {
|
|
284
|
+
this.index++
|
|
285
|
+
} else {
|
|
286
|
+
this.index = 0
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
setupSlider() {
|
|
290
|
+
if (this.autoplay && this.hnd === null) {
|
|
291
|
+
this.hnd = window.setInterval(() => this.pause || this.showNextItem(), this.autoplayInterval);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
/* computed property to get current slide */
|
|
297
|
+
computed: {
|
|
298
|
+
tooltipForSlidebuttons() {
|
|
299
|
+
if (this.slideshowItemEditing) {
|
|
300
|
+
return {
|
|
301
|
+
title: "Not allowed while editing!"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return {}
|
|
305
|
+
},
|
|
306
|
+
/* computed property to get current slide */
|
|
307
|
+
currentItem() {
|
|
308
|
+
if (this.slideshowItems.length <= this.index) {
|
|
309
|
+
return null
|
|
310
|
+
}
|
|
311
|
+
return this.slideshowItems[this.index]
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
watch: {
|
|
315
|
+
slideshowItems: {
|
|
316
|
+
handler() {
|
|
317
|
+
this.index = 0
|
|
318
|
+
this.setupSlider()
|
|
319
|
+
},
|
|
320
|
+
immediate: true,
|
|
321
|
+
deep: true
|
|
322
|
+
},
|
|
323
|
+
autoplay() {
|
|
324
|
+
if(this.autoplay) {
|
|
325
|
+
this.setupSlider()
|
|
326
|
+
} else {
|
|
327
|
+
this.stopAutoplay()
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
autoplayInterval() {
|
|
331
|
+
if(this.autoplay) {
|
|
332
|
+
this.stopAutoplay()
|
|
333
|
+
this.setupSlider()
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
currentItem() {
|
|
337
|
+
// wait to nextTick to ensure ref is available
|
|
338
|
+
this.$nextTick(() => {
|
|
339
|
+
this.$refs.slideshowItemComponentWrapper?.addEditStateListener(editing => this.slideshowItemEditing = editing)
|
|
340
|
+
})
|
|
341
|
+
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
</script>
|
|
346
|
+
|
|
347
|
+
<style>
|
|
348
|
+
/* begin cmd-slideshow ---------------------------------------------------------------------------------------- */
|
|
349
|
+
.cmd-slideshow {
|
|
350
|
+
figure a, img {
|
|
351
|
+
display: block;
|
|
352
|
+
text-decoration: none;
|
|
353
|
+
margin: 0 auto;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
figcaption {
|
|
357
|
+
width: 100%;
|
|
358
|
+
display: block;
|
|
359
|
+
text-align: center;
|
|
360
|
+
bottom: 0;
|
|
361
|
+
padding: var(--default-padding);
|
|
362
|
+
line-height: 100%;
|
|
363
|
+
font-size: 3rem;
|
|
364
|
+
color: var(--primary-color-contrast-text);
|
|
365
|
+
background: var(--primary-color);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
&:has(figcaption) {
|
|
369
|
+
img {
|
|
370
|
+
border-bottom-left-radius: 0;
|
|
371
|
+
border-bottom-right-radius: 0;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
figcaption {
|
|
375
|
+
border-bottom-left-radius: var(--default-border-radius);
|
|
376
|
+
border-bottom-right-radius: var(--default-border-radius);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.inner-slideshow-wrapper {
|
|
381
|
+
display: flex;
|
|
382
|
+
justify-content: center;
|
|
383
|
+
|
|
384
|
+
> a:not(.button) {
|
|
385
|
+
display: block;
|
|
386
|
+
text-decoration: none;
|
|
387
|
+
|
|
388
|
+
figcaption {
|
|
389
|
+
border: var(--primary-border);
|
|
390
|
+
|
|
391
|
+
&:hover, &:active, &:focus {
|
|
392
|
+
background: var(--color-scheme-background);
|
|
393
|
+
color: var(--hyperlink-color);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
figure {
|
|
399
|
+
width: 100%; /* important to stretch figure with position: absolute over full width */
|
|
400
|
+
margin: 0;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.slot-wrapper {
|
|
404
|
+
padding: calc(var(--default-padding) * 5);
|
|
405
|
+
width: 100%;
|
|
406
|
+
min-height: 50rem;
|
|
407
|
+
background-repeat: no-repeat;
|
|
408
|
+
background-position: top center;
|
|
409
|
+
display: flex;
|
|
410
|
+
justify-content: center;
|
|
411
|
+
align-content: center;
|
|
412
|
+
|
|
413
|
+
.box {
|
|
414
|
+
align-self: flex-start;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.image-wrapper {
|
|
419
|
+
width: 100%;
|
|
420
|
+
min-width: 11.1rem; /* assure to be as wide as action-buttons in edit-mode */
|
|
421
|
+
min-height: 50rem;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
> ol {
|
|
425
|
+
display: flex;
|
|
426
|
+
margin: 0 auto;
|
|
427
|
+
position: absolute;
|
|
428
|
+
left: 5.5rem;
|
|
429
|
+
top: .5rem;
|
|
430
|
+
gap: calc(var(--default-gap) / 2);
|
|
431
|
+
|
|
432
|
+
li {
|
|
433
|
+
padding: .2rem;
|
|
434
|
+
list-style-type: none;
|
|
435
|
+
margin: 0;
|
|
436
|
+
border-radius: var(--full-circle);
|
|
437
|
+
background: var(--color-light-gray);
|
|
438
|
+
border: var(--default-border-reduced-opacity);
|
|
439
|
+
|
|
440
|
+
a {
|
|
441
|
+
display: block;
|
|
442
|
+
width: 1rem;
|
|
443
|
+
height: 1rem;
|
|
444
|
+
border-radius: var(--full-circle);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
&:hover, &:active, &:focus, &.active {
|
|
448
|
+
border-color: var(--hyperlink-color);
|
|
449
|
+
|
|
450
|
+
a {
|
|
451
|
+
background: var(--color-white);
|
|
452
|
+
transition: var(--default-transition);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
&.bottom {
|
|
458
|
+
position: relative;
|
|
459
|
+
justify-content: center;
|
|
460
|
+
left: unset;
|
|
461
|
+
top: unset;
|
|
462
|
+
|
|
463
|
+
li {
|
|
464
|
+
border-color: var(--primary-color);
|
|
465
|
+
|
|
466
|
+
&:hover, &:active, &:focus, &.active {
|
|
467
|
+
border-color: var(--primary-color);
|
|
468
|
+
background: var(--color-white);
|
|
469
|
+
|
|
470
|
+
a {
|
|
471
|
+
background: var(--primary-color);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/* vertical slideshow */
|
|
478
|
+
&.vertical {
|
|
479
|
+
flex-direction: column;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
> .item-counter {
|
|
484
|
+
position: absolute;
|
|
485
|
+
top: .5rem;
|
|
486
|
+
right: 5.5rem;
|
|
487
|
+
padding: 0 0.2rem;
|
|
488
|
+
border-radius: var(--default-border-radius);
|
|
489
|
+
background: var(--color-white-reduced-opacity);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.fade-enter-from, .fade-leave-to {
|
|
494
|
+
position: absolute;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.edit-mode .cmd-slideshow .image-wrapper.edit-items {
|
|
499
|
+
padding: 0;
|
|
500
|
+
margin-top: 2rem;
|
|
501
|
+
|
|
502
|
+
label.edit-mode input {
|
|
503
|
+
font-size: 3rem;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
</style>
|
|
507
|
+
|
|
508
|
+
<style lang="scss">
|
|
509
|
+
@import '../assets/styles/variables';
|
|
510
|
+
|
|
511
|
+
@media only screen and (max-width: $medium-max-width) {
|
|
512
|
+
.cmd-slideshow {
|
|
513
|
+
figcaption {
|
|
514
|
+
font-size: 2rem;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
/* end cmd-slideshow ------------------------------------------------------------------------------------------ */
|
|
519
|
+
</style>
|