Skip to content

Commit

Permalink
Fix: Contact form not formatted properly when logged in, override inp…
Browse files Browse the repository at this point in the history
…ut field font-family and font-size
  • Loading branch information
vkleer committed Sep 24, 2022
1 parent 9b3d296 commit 72a0265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion home/templates/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{% csrf_token %}
<div class="login-container"">
{% if request.user.is_authenticated %}
<div class="col-md-6 pb-3">
<div class="col-md-12 pb-3">
<label for="name" class="sr-only">Name:</label>
<input type="text" id="name" name="contact-name" class="form-control" placeholder= "{{ user.username }}" disabled/>
</div>
Expand All @@ -39,6 +39,7 @@
{% else %}
<input type="email" id="email" name="contact-email" class="form-control" placeholder="E-mail address" required/>
{% endif %}
</div>
{% else %}
<div class="col-md-12 pb-3">
<label for="username" class="sr-only">Name:</label>
Expand Down
2 changes: 1 addition & 1 deletion static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ h1, h2, h3, h4, h5, h6 {
font-family: 'Montserrat', sans-serif;
}

p, ul, a, button, span {
p, ul, a, button, span, input {
font-family: 'Quicksand', sans-serif;
font-size: 1.05rem;
}
Expand Down

0 comments on commit 72a0265

Please sign in to comment.