adventskalender/shared/style.css aktualisiert

This commit is contained in:
2025-11-02 22:00:06 +00:00
parent fa8d307121
commit 4caed151c4

View File

@@ -7,7 +7,7 @@
--ci-creamwhite: #f7f3e8; --ci-creamwhite: #f7f3e8;
} }
/* === Reset & Grundlayout === */ /* === Reset & Grundstruktur === */
*, *,
*::before, *::before,
*::after { *::after {
@@ -23,47 +23,46 @@ html, body {
font-family: sans-serif; font-family: sans-serif;
color: var(--ci-creamwhite); color: var(--ci-creamwhite);
background: linear-gradient(180deg, var(--ci-darkgreen), var(--ci-blue)); background: linear-gradient(180deg, var(--ci-darkgreen), var(--ci-blue));
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover; background-size: cover;
background-repeat: no-repeat;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
/* === Hauptbereich === */ /* === Hauptbereich === */
main { main {
flex: 1 1 auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; height: 100%;
width: 100%;
} }
/* === Überschrift oben === */ /* === Überschrift === */
main > h1 { main > h1 {
flex: 0 0 auto; flex: 0 0 auto;
margin: 1rem 0; font-size: 1.8rem;
font-size: 2rem;
text-align: center; text-align: center;
margin: 0.5rem 0;
padding: 0 1rem;
} }
/* === Bildcontainer passt sich an === */ /* === Bildcontainer === */
.kalenderbild { .kalenderbild {
flex: 1 1 auto; flex: 1 1 auto;
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
justify-content: center;
overflow: hidden; overflow: hidden;
padding: 0.5rem;
} }
/* === Bild passt sich dem verfügbaren Platz an === */ /* === Bild selbst === */
.kalenderbild img { .kalenderbild img {
max-width: 90%; display: block;
max-height: 90%; max-width: 100%;
width: auto; max-height: calc(100dvh - 3rem); /* Platz für h1 */
height: auto; height: auto;
aspect-ratio: 16 / 9; width: auto;
border: 4px solid var(--ci-gold); border: 4px solid var(--ci-gold);
border-radius: 12px; border-radius: 12px;
object-fit: contain;
display: block;
} }