Fix lockscreen for different screen sizes

This commit is contained in:
Leon 2025-04-21 18:17:21 +02:00
parent 1e4ebc2a3c
commit d44900435f

View File

@ -1,19 +1,19 @@
#clock { #clock {
font-size: 120px; font-size: 120px;
font-weight: 100; font-weight: 100;
color: #fff; color: #fff;
text-align: center; text-align: center;
bottom: 10%; bottom: 10%;
right: 5%; right: 5%; /* Verschiebt die Flexbox weiter nach links */
z-index: 900010; z-index: 900010;
position: absolute; position: absolute;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
width: 40%;
width: 30%; margin: 0 auto; /* Stellt sicher, dass die Box zentriert bleibt */
} }
#time { #time {
@ -32,18 +32,18 @@ flex-wrap: wrap;
/* HTML: <div class="loader"></div> */ /* HTML: <div class="loader"></div> */
.loader { .loader {
height: 200px; height: 200px;
aspect-ratio: 2/3; aspect-ratio: 2/3;
--c:no-repeat linear-gradient(#fff 0 0); --c:no-repeat linear-gradient(#fff 0 0);
background: var(--c), var(--c), var(--c), var(--c); background: var(--c), var(--c), var(--c), var(--c);
background-size: 50% 33.4%; background-size: 50% 33.4%;
animation: l8 1.5s infinite linear; animation: l8 1.5s infinite linear;
} }
@keyframes l8 { @keyframes l8 {
0%, 0%,
5% {background-position:0 25%,100% 25%,0 75%,100% 75%} 5% {background-position:0 25%,100% 25%,0 75%,100% 75%}
33% {background-position:0 50%,100% 0,0 100%,100% 50%} 33% {background-position:0 50%,100% 0,0 100%,100% 50%}
66% {background-position:0 50%,0 0,100% 100%,100% 50%} 66% {background-position:0 50%,0 0,100% 100%,100% 50%}
95%, 95%,
100% {background-position:0 75%,0 25%,100% 75%,100% 25%} 100% {background-position:0 75%,0 25%,100% 75%,100% 25%}
} }