adventskalender/shared/style.css aktualisiert
This commit is contained in:
@@ -17,33 +17,41 @@
|
|||||||
html, body {
|
html, body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100vw;
|
|
||||||
height: 100dvh;
|
height: 100dvh;
|
||||||
|
overflow: hidden;
|
||||||
|
font-family: sans-serif;
|
||||||
|
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-repeat: no-repeat;
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
overflow: hidden;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Kalenderbild: Bild + Rahmen === */
|
/* === Hauptüberschrift === */
|
||||||
|
main > h1 {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
margin: 1rem 0;
|
||||||
|
font-size: 2rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* === Kalenderbildbereich === */
|
||||||
.kalenderbild {
|
.kalenderbild {
|
||||||
width: 100vw;
|
flex: 1 1 auto;
|
||||||
height: 100dvh;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* === Bild selbst === */
|
||||||
.kalenderbild img {
|
.kalenderbild img {
|
||||||
display: block;
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
aspect-ratio: 16 / 9;
|
aspect-ratio: 16 / 9;
|
||||||
/* Abstand für Rahmen oben + unten einberechnet */
|
display: block;
|
||||||
max-height: calc(100dvh - 8px);
|
|
||||||
max-width: calc(100vw - 8px);
|
|
||||||
border: 4px solid var(--ci-gold);
|
border: 4px solid var(--ci-gold);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
|||||||
Reference in New Issue
Block a user