adventskalender/2025/css/main.css aktualisiert
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
/* Bratonien Adventskalender 2025 - main.css */
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Bratonien2025";
|
font-family: "Bratonien2025";
|
||||||
src: url("../../shared/fonts/PinyonScript-Regular.ttf") format("truetype");
|
src: url("../../shared/fonts/PinyonScript-Regular.ttf") format("truetype");
|
||||||
@@ -6,7 +8,10 @@
|
|||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.door {
|
/* === Gemeinsame Basis für Türen & Flügel === */
|
||||||
|
|
||||||
|
.door,
|
||||||
|
.fluegel {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -23,13 +28,13 @@
|
|||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 0 10px color-mix(in srgb, var(--ci-gold) 40%, transparent),
|
0 0 10px color-mix(in srgb, var(--ci-gold) 40%, transparent),
|
||||||
inset 0 0 6px rgba(255,255,255,0.18);
|
inset 0 0 6px rgba(255, 255, 255, 0.18);
|
||||||
font-family: "Bratonien2025", cursive;
|
font-family: "Bratonien2025", cursive;
|
||||||
font-size: 2.3vw;
|
font-size: 2.3vw;
|
||||||
color: var(--ci-gold);
|
color: var(--ci-gold);
|
||||||
text-shadow:
|
text-shadow:
|
||||||
0 0 3px rgba(0,0,0,0.6),
|
0 0 3px rgba(0, 0, 0, 0.6),
|
||||||
0 0 8px rgba(0,0,0,0.4);
|
0 0 8px rgba(0, 0, 0, 0.4);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition:
|
transition:
|
||||||
transform 0.6s ease,
|
transform 0.6s ease,
|
||||||
@@ -37,8 +42,19 @@
|
|||||||
background 0.25s ease;
|
background 0.25s ease;
|
||||||
transform-style: preserve-3d;
|
transform-style: preserve-3d;
|
||||||
perspective: 800px;
|
perspective: 800px;
|
||||||
|
z-index: 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* === Türspezifisch === */
|
||||||
|
|
||||||
|
.door {
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.door.hinge-left { transform-origin: left center; }
|
||||||
|
.door.hinge-right { transform-origin: right center; }
|
||||||
|
.door.double { transform-origin: center; }
|
||||||
|
|
||||||
.door:hover,
|
.door:hover,
|
||||||
.door.hover-proxy {
|
.door.hover-proxy {
|
||||||
transform: scale(1.05);
|
transform: scale(1.05);
|
||||||
@@ -49,27 +65,18 @@
|
|||||||
);
|
);
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
||||||
inset 0 0 10px rgba(255,255,255,0.25);
|
inset 0 0 10px rgba(255, 255, 255, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.door.hinge-left { transform-origin: left center; }
|
.door.open.hinge-left { --door-rotation: -115deg; }
|
||||||
.door.hinge-right { transform-origin: right center; }
|
.door.open.hinge-right { --door-rotation: 115deg; }
|
||||||
.door.double { transform-origin: center; }
|
|
||||||
|
|
||||||
.door.open.hinge-left {
|
|
||||||
--door-rotation: -115deg;
|
|
||||||
transform: rotateY(var(--door-rotation));
|
|
||||||
box-shadow:
|
|
||||||
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
|
|
||||||
inset 0 0 10px rgba(255,255,255,0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.door.open.hinge-left,
|
||||||
.door.open.hinge-right {
|
.door.open.hinge-right {
|
||||||
--door-rotation: 115deg;
|
|
||||||
transform: rotateY(var(--door-rotation));
|
transform: rotateY(var(--door-rotation));
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
|
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
|
||||||
inset 0 0 10px rgba(255,255,255,0.2);
|
inset 0 0 10px rgba(255, 255, 255, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.door.open:hover,
|
.door.open:hover,
|
||||||
@@ -77,34 +84,66 @@
|
|||||||
transform: rotateY(var(--door-rotation)) scale(1.05);
|
transform: rotateY(var(--door-rotation)) scale(1.05);
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
||||||
inset 0 0 10px rgba(255,255,255,0.25);
|
inset 0 0 10px rgba(255, 255, 255, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.door.double {
|
/* === Flügeltüren === */
|
||||||
position: absolute;
|
|
||||||
display: flex;
|
.fluegel.left { transform-origin: left center; border-radius: 12px 0 0 12px; }
|
||||||
align-items: stretch;
|
.fluegel.right { transform-origin: right center; border-radius: 0 12px 12px 0; }
|
||||||
justify-content: space-between;
|
|
||||||
perspective: 800px;
|
.fluegel.left:hover,
|
||||||
border-radius: 12px;
|
.fluegel.hover-proxy.left {
|
||||||
overflow: visible;
|
transform: scale(1.05);
|
||||||
|
transform-origin: left center;
|
||||||
|
background: linear-gradient(
|
||||||
|
180deg,
|
||||||
|
color-mix(in srgb, var(--ci-gold) 20%, var(--ci-darkgreen)),
|
||||||
|
color-mix(in srgb, var(--ci-creamwhite) 15%, var(--ci-blue))
|
||||||
|
);
|
||||||
|
box-shadow:
|
||||||
|
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
||||||
|
inset 0 0 10px rgba(255, 255, 255, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.door.double .door-number {
|
.fluegel.right:hover,
|
||||||
position: absolute;
|
.fluegel.hover-proxy.right {
|
||||||
top: 50%;
|
transform: scale(1.05);
|
||||||
left: 50%;
|
transform-origin: right center;
|
||||||
transform: translate(-50%, -50%);
|
background: linear-gradient(
|
||||||
font-family: "Bratonien2025", cursive;
|
180deg,
|
||||||
font-size: 2.3vw;
|
color-mix(in srgb, var(--ci-gold) 20%, var(--ci-darkgreen)),
|
||||||
color: var(--ci-gold);
|
color-mix(in srgb, var(--ci-creamwhite) 15%, var(--ci-blue))
|
||||||
pointer-events: none;
|
);
|
||||||
z-index: 8;
|
box-shadow:
|
||||||
text-shadow:
|
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
||||||
0 0 3px rgba(0, 0, 0, 0.6),
|
inset 0 0 10px rgba(255, 255, 255, 0.25);
|
||||||
0 0 8px rgba(0, 0, 0, 0.4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fluegel.open.left { --fluegel-rotation: -115deg; }
|
||||||
|
.fluegel.open.right { --fluegel-rotation: 115deg; }
|
||||||
|
|
||||||
|
.fluegel.open.left {
|
||||||
|
transform: rotateY(var(--fluegel-rotation));
|
||||||
|
box-shadow:
|
||||||
|
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
|
||||||
|
inset 0 0 10px rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fluegel.open.right {
|
||||||
|
transform: rotateY(var(--fluegel-rotation));
|
||||||
|
box-shadow:
|
||||||
|
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
|
||||||
|
inset 0 0 10px rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fluegel.open.left:hover,
|
||||||
|
.fluegel.open.right:hover {
|
||||||
|
transform: rotateY(var(--fluegel-rotation)) scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* === Openfield === */
|
||||||
|
|
||||||
.openfield {
|
.openfield {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
@@ -157,7 +196,7 @@
|
|||||||
rgba(0, 0, 0, 0.12);
|
rgba(0, 0, 0, 0.12);
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
||||||
inset 0 0 10px rgba(255,255,255,0.25);
|
inset 0 0 10px rgba(255, 255, 255, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.door.open:hover + .openfield {
|
.door.open:hover + .openfield {
|
||||||
@@ -174,101 +213,3 @@
|
|||||||
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
||||||
inset 0 0 10px rgba(255, 255, 255, 0.25);
|
inset 0 0 10px rgba(255, 255, 255, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fluegel {
|
|
||||||
position: absolute;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
aspect-ratio: 1 / 1;
|
|
||||||
|
|
||||||
background: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
color-mix(in srgb, var(--ci-darkgreen) 35%, transparent),
|
|
||||||
color-mix(in srgb, var(--ci-blue) 35%, transparent)
|
|
||||||
);
|
|
||||||
backdrop-filter: blur(6px);
|
|
||||||
-webkit-backdrop-filter: blur(6px);
|
|
||||||
|
|
||||||
border: 2px solid var(--ci-gold);
|
|
||||||
box-shadow:
|
|
||||||
0 0 10px color-mix(in srgb, var(--ci-gold) 40%, transparent),
|
|
||||||
inset 0 0 6px rgba(255,255,255,0.18);
|
|
||||||
|
|
||||||
font-family: "Bratonien2025", cursive;
|
|
||||||
font-size: 2.3vw;
|
|
||||||
color: var(--ci-gold);
|
|
||||||
text-shadow:
|
|
||||||
0 0 3px rgba(0,0,0,0.6),
|
|
||||||
0 0 8px rgba(0,0,0,0.4);
|
|
||||||
|
|
||||||
cursor: pointer;
|
|
||||||
transition:
|
|
||||||
transform 0.6s ease,
|
|
||||||
box-shadow 0.3s ease,
|
|
||||||
background 0.25s ease;
|
|
||||||
|
|
||||||
transform-style: preserve-3d;
|
|
||||||
perspective: 800px;
|
|
||||||
z-index: 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Positionierung + Öffnung */
|
|
||||||
|
|
||||||
.fluegel.left {
|
|
||||||
transform-origin: left center;
|
|
||||||
border-top-left-radius: 12px;
|
|
||||||
border-bottom-left-radius: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fluegel.right {
|
|
||||||
transform-origin: right center;
|
|
||||||
border-top-right-radius: 12px;
|
|
||||||
border-bottom-right-radius: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fluegel.open.left {
|
|
||||||
transform: rotateY(-115deg);
|
|
||||||
box-shadow:
|
|
||||||
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
|
|
||||||
inset 0 0 10px rgba(255,255,255,0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.fluegel.open.right {
|
|
||||||
transform: rotateY(115deg);
|
|
||||||
box-shadow:
|
|
||||||
0 0 14px color-mix(in srgb, var(--ci-gold) 45%, transparent),
|
|
||||||
inset 0 0 10px rgba(255,255,255,0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hover */
|
|
||||||
|
|
||||||
.fluegel:hover,
|
|
||||||
.fluegel.hover-proxy {
|
|
||||||
transform: scale(1.05);
|
|
||||||
background: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
color-mix(in srgb, var(--ci-gold) 20%, var(--ci-darkgreen)),
|
|
||||||
color-mix(in srgb, var(--ci-creamwhite) 15%, var(--ci-blue))
|
|
||||||
);
|
|
||||||
box-shadow:
|
|
||||||
0 0 18px color-mix(in srgb, var(--ci-gold) 50%, transparent),
|
|
||||||
inset 0 0 10px rgba(255,255,255,0.25);
|
|
||||||
}
|
|
||||||
|
|
||||||
.fluegel.open.left:hover,
|
|
||||||
.fluegel.open.right:hover {
|
|
||||||
transform: rotateY(var(--fluegel-rotation)) scale(1.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Für konsistentes Verhalten */
|
|
||||||
.fluegel.open.left { --fluegel-rotation: -115deg; }
|
|
||||||
.fluegel.open.right { --fluegel-rotation: 115deg; }
|
|
||||||
|
|
||||||
.fluegel.hover-proxy.left {
|
|
||||||
transform-origin: left center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fluegel.hover-proxy.right {
|
|
||||||
transform-origin: right center;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user