Skip to content

Commit

Permalink
Vertically center descriptions of various input fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Multipacker committed May 4, 2024
1 parent 39da46a commit ab904d1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
7 changes: 6 additions & 1 deletion src/static/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
body{
body {
--header-back-color: #fa6601;
--header-fore-color: #ffffff;
}

.center-row {
display: flex;
align-items: center;
}
10 changes: 5 additions & 5 deletions src/templates/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<form method="post" enctype="multipart/form-data">
{{ form.hidden_tag() }}

<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-12 col-md-2">
{{ form.file.label}}

Expand Down Expand Up @@ -78,7 +78,7 @@ <h3 class="section">File</h3>
</div>


<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-12 col-md-2">
{{ form.desc.label }}
</div>
Expand All @@ -90,7 +90,7 @@ <h3 class="section">File</h3>
</div>
</div>

<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-12 col-md-2">
{{ form.start_date.label }}
</div>
Expand All @@ -102,7 +102,7 @@ <h3 class="section">File</h3>
</div>
</div>

<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-12 col-md-2">
{{ form.end_date.label }}
</div>
Expand All @@ -114,7 +114,7 @@ <h3 class="section">File</h3>
</div>
</div>

<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-12 col-md-2">
{{ form.priority.label }}
</div>
Expand Down
13 changes: 6 additions & 7 deletions src/templates/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<form method="post" enctype="multipart/form-data">
{{ form.hidden_tag() }}

<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-12 col-md-2">
{{ form.username.label }}
</div>
Expand All @@ -52,8 +52,7 @@
</div>
</div>


<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-12 col-md-2">
{{ form.password.label }}
</div>
Expand All @@ -65,7 +64,7 @@
</div>
</div>

<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-12 col-md-2">
{{ form.password2.label }}
</div>
Expand All @@ -77,7 +76,7 @@
</div>
</div>

<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-12 col-md-2">
{{ form.role.label }}
</div>
Expand All @@ -89,11 +88,11 @@
</div>
</div>

<div class="row responsive-label">
<div class="center-row row responsive-label">
<div class="col-sm-3 col-md-2">
{{ form.submit }}
</div>
</div>
</form>
</fieldset>
{% endblock %}
{% endblock %}

0 comments on commit ab904d1

Please sign in to comment.