Browse Source

[CONFIG] Replaced form theme used since it was too opinionated.

experimental
Eliseu Amaro 3 days ago
parent
commit
d9c0a72e36
Signed by: eli <mail@eliseuama.ro> GPG Key ID: 96DA09D4B97BC2D5
3 changed files with 8 additions and 16 deletions
  1. +1
    -1
      config/packages/twig.yaml
  2. +5
    -12
      public/assets/default_theme/css/widgets/sections.css
  3. +2
    -3
      templates/security/login.html.twig

+ 1
- 1
config/packages/twig.yaml View File

@@ -1,2 +1,2 @@
twig:
form_themes: ['bootstrap_3_layout.html.twig']
form_themes: ['tailwind_2_layout.html.twig']

+ 5
- 12
public/assets/default_theme/css/widgets/sections.css View File

@@ -120,34 +120,27 @@
font-size: 1.62rem;
}

.form-group {
div[class^="mb-"] {
display: flex;
flex-direction: column;
flex-basis: border-box;
margin-bottom: var(--smaller);
}

.form-group:last-of-type {
div[class^="mb-"]:last-of-type {
margin-bottom: unset;
}

.form-group textarea {
div[class^="mb-"] textarea {
height: 7rem;
max-height: 100%;
}

.help-block {
margin-bottom: 6px;
}

.help-text {
.alert,.alert-danger {
display: inline-block;
font-style: italic;
font-size: 1rem;
margin-bottom: 6px;
}

.help-block>.list-unstyled,.alert,.alert-danger {
display: inline-block;
border: solid 2px #ff6347;
background-color: #FF634733;
border-radius: .6rem;


+ 2
- 3
templates/security/login.html.twig View File

@@ -37,14 +37,13 @@

{% else %}

{# TODO: Login can be done with email, so the element id's should reflect that #}
<div class="form-group">
<div class="mb-3">
<label class="section-form-label" for="inputNicknameOrEmail">{{ "Nickname or Email" | trans }}</label>
<input type="text" value="{{ last_login_id }}" name="nickname_or_email" id="inputNicknameOrEmail"
class="form-control" required autofocus>
<p class="help-text">{{ "Your nickname or email address." | trans }}</p>
</div>
<div class="form-group">
<div class="mb-3">
<label class="section-form-label" for="inputPassword">{{ "Password" | trans }}</label>
<input type="password" name="password" id="inputPassword" class="form-control" required>
<p class="help-text">{{ "Your account's password." | trans }}</p>


Loading…
Cancel
Save