implement layout previews
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
37ebcb74aa
commit
d5b2b43bf5
2 changed files with 22 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
||||||
<span class="theme-title" :style="{color:`${layout.complementaryColor}`}">
|
<span class="theme-title" :style="{color:`${layout.complementaryColor}`}">
|
||||||
{{ layout.displayName }}
|
{{ layout.displayName }}
|
||||||
</span>
|
</span>
|
||||||
|
<NuxtImg class="layout-preview" :src="layout.previewImageUrl"></NuxtImg>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -236,6 +237,27 @@ async function onTimeFormatClicked(index: number) {
|
||||||
filter: brightness(35%);
|
filter: brightness(35%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.layout-preview {
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
border: 0 solid var(--primary-color);
|
||||||
|
transform: translate(0, calc(var(--instance-size) / 2));
|
||||||
|
transition: all 250ms;
|
||||||
|
|
||||||
|
height: 0;
|
||||||
|
width: calc((height / 9) * 16);
|
||||||
|
max-height: 40dvh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-instance:hover .layout-preview {
|
||||||
|
border: .1em solid var(--primary-color);
|
||||||
|
filter: drop-shadow(0 0 .2em var(--secondary-color));
|
||||||
|
transform: translate(3.5em, -4em);
|
||||||
|
|
||||||
|
height: 40dvw;
|
||||||
|
}
|
||||||
|
|
||||||
.theme-title {
|
.theme-title {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 187 KiB |
Loading…
Add table
Add a link
Reference in a new issue