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

Merge pull request #1 from Equus2/master

Pull request
This commit is contained in:
fallenPineapple 2017-04-24 22:17:57 -04:00 committed by GitHub
commit b04d6a4298
2 changed files with 33 additions and 2 deletions

View File

@ -80,7 +80,7 @@ header div.subtitle {
}
form {
margin-bottom: 4em;
margin-bottom: 3em;
}
form table {
@ -540,7 +540,7 @@ table.mod.config-editor input[type="text"] {
width: 98%;
}
.desktop-style div.boardlist:nth-child(1) {
.desktop-style div.boardlist:not(.bottom) {
position: fixed;
top: 0;
left: 0;
@ -1207,3 +1207,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 %}