Skip to content

Commit

Permalink
Make login page responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed May 30, 2024
1 parent 124c362 commit 481cde0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions assets/css/_login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
height: 90vh;
}

.login .form-group {
width: 25vh;
@media (min-width: 540px) {
.login .form-group {
width: 250px;
}
}

@media (max-width: 540px) {
.login .form-group {
width: 100%;
}
}

.login input[type=submit] {
Expand Down
2 changes: 1 addition & 1 deletion views/login/login.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="top-alert">{{ error }}</div>
{% endif %}

<form action="" method="post" class="d-flex justify-content-center align-items-center flex-column login">
<form action="" method="post" class="d-flex justify-content-center align-items-center flex-column login m-2">
<div class="mb-2 form-group">
<label for="usernameInput" class="form-label">Username</label>
<input type="text" id="usernameInput" name="username" class="form-control" required autofocus value="{{ username|default }}" placeholder="Enter a username">
Expand Down

0 comments on commit 481cde0

Please sign in to comment.