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