ux: Better responsive design (not great yet)

This commit is contained in:
selfhoster selfhoster 2026-09-21 16:20:55 +02:00
commit a2653c9e77
2 changed files with 83 additions and 28 deletions

View file

@ -2,54 +2,109 @@ body {
margin: 0;
}
#logo {
display: block;
max-height: 5rem;
max-width: 5rem;
height: auto;
width: auto;
margin: 0 auto;
}
#center {
#login-screen {
width: 100vw;
height: 100vh;
/* width: 100%; */
/* height: 100%; */
display: flex;
justify-content: center;
align-items: space-around;
flex-direction: column;
max-width: 250px;
margin: auto;
}
#login-form {
max-width: 200px;
#logo {
display: block;
width: auto;
margin: 0 auto;
}
#login-line {
.login-line {
margin-top: 1rem;
display: flex;
justify-content: center;
font-size: 2rem;
text-align: center;
height: 2.5rem;
align-items: center;
gap: 0.5rem;
}
#login-line > img {
width: 1.75rem;
height: auto;
}
#login-line > input {
.login-line > input {
border-color: rgba(31, 41, 55, 0.2);
border-radius: 8px;
padding: 0.5rem 1rem;
}
@media screen and (max-width: 1407px) {
#login-screen {
font-size: 24pt;
gap: 2rem;
}
#logo {
max-width: 25%;
height: auto;
}
.login-line {
height: 5rem;
}
.login-line > img {
height: 3rem;
width: auto;
}
.login-line > input {
width: 40%;
height: 4rem;
border-radius: 20px;
}
.login-line > input::placeholder {
font-size: 3rem;
}
.login-line-input {
/* Center the middle of the input relative to the logo. Is that a good idea? */
margin-right: 3rem;
}
#submit-login {
font-size: 2rem;
}
}
@media screen and (min-width: 1408px) {
#login-screen {
max-width: 250px;
}
#logo {
max-height: 5rem;
max-width: 5rem;
height: auto;
}
.login-line {
height: 2.5rem;
}
.login-line > img {
width: 1.75rem;
height: auto;
}
.login-line > input {
border-radius: 8px;
}
.login-line-input {
/* Center the middle of the input relative to the logo. Is that a good idea? */
margin-right: 1.75rem;
}
}
#submit-login {
width: 100%;
background-color: rgb(87, 13, 248);
cursor: pointer;
box-sizing: border-box;