1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-24 14:23:23 +01:00

Makes the new thread stuff be collapsed by default and you have to click on [New Thread] for it to expand

This commit is contained in:
Equus 2017-04-24 13:52:19 +02:00
parent 4e2ad66d48
commit a2efa13985
2 changed files with 32 additions and 1 deletions

View File

@ -80,7 +80,7 @@ header div.subtitle {
}
form {
margin-bottom: 4em;
margin-bottom: 3em;
}
form table {
@ -1217,3 +1217,28 @@ table.fileboard .intro a {
div.mix {
display: inline-block;
}
/* Collapsed post area */
#PostAreaToggle + span {
font-size: 22px;
font-weight: bold;
}
#PostAreaToggle + span > a > label {
cursor: pointer;
}
#PostAreaToggle + span + div {
display: none;
}
#PostAreaToggle:checked + span {
display: none;
}
#PostAreaToggle:checked + span + div {
display: block;
}
form[name="post"] {
margin-bottom: 0em;
text-align: center;
}
form[name="post"] > div {
margin-bottom: 1em;
}

View File

@ -1,5 +1,10 @@
<form name="post" onsubmit="return dopost(this);" enctype="multipart/form-data" action="{{ config.post_url }}" method="post">
{{ antibot.html() }}
{% if not id %}
<input type="checkbox" id="PostAreaToggle" class="hidden"/>
<span>[<a href="#" class="no-decoration" title="Start a new thread"><label for="PostAreaToggle">New Thread</label></a>]</span>
{% endif %}
<div>
{% if id %}<input type="hidden" name="thread" value="{{ id }}">{% endif %}
{{ antibot.html() }}
<input type="hidden" name="board" value="{{ board.uri }}">
@ -170,6 +175,7 @@
</table>
{{ antibot.html(true) }}
<input type="hidden" name="hash" value="{{ antibot.hash() }}">
</div>
</form>
<script type="text/javascript">{% raw %}