Style tweaks

This commit is contained in:
MatthiasSaihttam 2020-10-05 13:22:12 -04:00
parent da5c08eeba
commit 602a5cb3e1
2 changed files with 16 additions and 10 deletions

View File

@ -11,6 +11,10 @@ textarea.thought {
font-family: inherit;
}
.thought.extended_text {
resize: vertical;
}
#post-button {
border-radius: 0;
background: none;
@ -22,4 +26,4 @@ textarea.thought {
color: var(--text-color);
cursor: pointer;
float: right;
}
}

View File

@ -15,16 +15,18 @@
<body>
<header><a href="/" class="text" style="border: none">Thoughts</a> <span class="text">Post</span></header>
<form action="{% url 'post'%}" method="post">
{% csrf_token %}
<textarea name="text" id="text" class="thought"></textarea>
<hr class="thought-end">
<textarea name="extended_text" id="extended_text" class="thought"></textarea>
<hr class="thought-end">
<input type="hidden" name="timezone_offset" id="timezone_offset">
<section class=".main-wrap">
<form action="{% url 'post'%}" method="post">
{% csrf_token %}
<textarea name="text" id="text" class="thought" rows="3"></textarea>
<hr class="thought-end">
<textarea name="extended_text" id="extended_text" class="thought" rows="4"></textarea>
<hr class="thought-end">
<input type="hidden" name="timezone_offset" id="timezone_offset">
<input type="submit" id="post-button" value="Submit">
</form>
<input type="submit" id="post-button" value="Submit">
</form>
</section>
<script>
const textEl = document.getElementById("text");