Skip to content
Code-Schnipsel Gruppen Projekte
Commit c88f5ccd erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

feat(WallpaperText): use image element as background image

Übergeordneter 497e5f14
Branches next-3.x
Keine zugehörigen Tags gefunden
2 Merge Requests!11Update 'next-3.x' with latest changes from 'main',!10fix(WallpaperTextArrow): consider if the brick is not first on the page
.wallpaperText {
height: 100%;
background-color: var(--qui-wallpaperText-bgColor, #eee);
background-position: var(--qui-wallpaperText-bgPos, center);
background-size: cover;
position: relative;
background-image: var(--qui-wallpaperText-bgImage, none);
}
.wallpaperText__imageWrapper {
position: absolute;
inset: 0;
z-index: 0;
}
.wallpaperText__image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: var(--qui-wallpaperText-bgPos, center);
}
.wallpaperText-container {
......@@ -16,6 +28,8 @@
justify-content: var(--qui-wallpaperText-contentPos, flex-start);
min-height: var(--qui-wallpaperText-minHeight, initial);
color: var(--qui-wallpaperText-fontColor, inherit);
position: relative;
z-index: 1;
}
.wallpaperText-container-content{
......@@ -23,12 +37,15 @@
max-width: 100%;
}
.wallpaperText.fixed {
background-attachment: fixed;
/* image fixed */
.wallpaperText.fixed .wallpaperText__imageWrapper {
clip-path: inset(100px 200px 50px 20px);
}
@media screen and (max-width: 1024px) {
.wallpaperText.fixed {
background-attachment: initial;
}
}
\ No newline at end of file
.wallpaperText.fixed picture {
position: fixed;
top: 0;
display: block;
width: 100%;
height: 100%;
}
......@@ -6,10 +6,12 @@
--qui-wallpaperText-minHeight: {$this->getAttribute('minHeight')};
--qui-wallpaperText-contentMaxWidth: {$this->getAttribute('contentMaxWidth')}px;
--qui-wallpaperText-fontColor: {$this->getAttribute('fontColor')};
{if $imageBackground}
--qui-wallpaperText-bgImage: url('{image src=$imageBackground onlysrc='true'}');
{/if}
">
{if $imageBackground}
<div class="wallpaperText__imageWrapper">
{image src=$imageBackground width=4000 class="wallpaperText__image"}
</div>
{/if}
<div class="wallpaperText-container grid-container">
<div class="wallpaperText-container-content">
{if $this->getAttribute('showTitle') && $this->getAttribute('frontendTitle')}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren