Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Form Support. #189

Merged
merged 1 commit into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 13 additions & 1 deletion css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,18 @@ span.sm:not(.heading) {
flex-direction: column;
}

.flex-form {
display: flex;
flex-direction: column;
}

@media screen and (min-width: 768px) {
.flex-form {
flex: 1;
margin: 0.5rem;
}
}

@media screen and (max-width: 400px) {
.row {
flex-direction: column;
Expand Down Expand Up @@ -308,7 +320,7 @@ sup.\~critical, .text-critical {
padding-left: 0px;
}

.block {
.block {
display: block;
}

Expand Down
12 changes: 6 additions & 6 deletions html/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@ <h1 class="text-center text-2xl mb-2">{{ .discordPIN }}</h1>
</div>
</div>
</span>
</div>
</div>
<div id="notification-box"></div>
<div class="page-container">
<div class="card dark:~d_neutral @low">
<div class="row baseline">
<span class="col heading">
<span class="flex-form heading mr-5">
{{ if .passwordReset }}
{{ .strings.passwordReset }}
{{ else }}
{{ .strings.createAccountHeader }}
{{ end }}
</span>
<span class="col subheading">
<span class="flex-form subheading">
{{ if .passwordReset }}
{{ .strings.enterYourPassword }}
{{ else }}
Expand All @@ -102,7 +102,7 @@ <h1 class="text-center text-2xl mb-2">{{ .discordPIN }}</h1>
</span>
</div>
<div class="row">
<div class="col">
<div class="flex-form">
{{ if .userExpiry }}
<aside class="col aside sm ~warning" id="user-expiry-message"></aside>
{{ end }}
Expand All @@ -112,7 +112,7 @@ <h1 class="text-center text-2xl mb-2">{{ .discordPIN }}</h1>
{{ .strings.username }}
<input type="text" class="input ~neutral @high mt-2 mb-4" placeholder="{{ .strings.username }}" id="create-username" aria-label="{{ .strings.username }}">
</label>

<label class="label supra" for="create-email">{{ .strings.emailAddress }}</label>
<input type="email" class="input ~neutral @high mt-2 mb-4" placeholder="{{ .strings.emailAddress }}" id="create-email" aria-label="{{ .strings.emailAddress }}" value="{{ .email }}">
{{ if .telegramEnabled }}
Expand Down Expand Up @@ -149,7 +149,7 @@ <h1 class="text-center text-2xl mb-2">{{ .discordPIN }}</h1>
{{ end }}
<label class="label supra" for="create-password">{{ .strings.password }}</label>
<input type="password" class="input ~neutral @high mt-2 mb-4" placeholder="{{ .strings.password }}" id="create-password" aria-label="{{ .strings.password }}">

<label class="label supra" for="create-reenter-password">{{ .strings.reEnterPassword }}</label>
<input type="password" class="input ~neutral @high mt-2 mb-4" placeholder="{{ .strings.password }}" id="create-reenter-password" aria-label="{{ .strings.reEnterPassword }}">
<label>
Expand Down