client/posts: move submit buttons to top

This commit is contained in:
rr- 2016-09-10 09:57:20 +02:00
parent b829f89f1b
commit 2c283f3058
4 changed files with 17 additions and 10 deletions

View file

@ -5,6 +5,7 @@
width: 100% width: 100%
max-width: 40em max-width: 40em
margin: 0 auto margin: 0 auto
text-align: left
&.inactive &.inactive
input[type=submit] input[type=submit]
@ -17,13 +18,17 @@
padding: 2em padding: 2em
input[type=submit] input[type=submit]
float: left margin-top: 1em
.messages
margin-top: 1em
.uploadables-container .uploadables-container
margin: 2em 0
text-align: left
line-height: 200% line-height: 200%
li
margin: 0 0 1.2em 0
.uploadable .uploadable
.file .file
overflow: hidden overflow: hidden

View file

@ -139,7 +139,9 @@
input[type=submit], input[type=submit],
input[type=button], input[type=button],
button button
margin-top: 1em
width: 100% width: 100%
&:focus &:focus
border: 2px solid $text-color !important border: 2px solid $text-color !important
.messages
margin-top: 1em

View file

@ -1,5 +1,9 @@
<div class='edit-sidebar'> <div class='edit-sidebar'>
<form autocomplete='off'> <form autocomplete='off'>
<input type='submit' value='Save' class='submit'/>
<div class='messages'></div>
<% if (ctx.canEditPostSafety) { %> <% if (ctx.canEditPostSafety) { %>
<section class='safety'> <section class='safety'>
<label>Safety</label> <label>Safety</label>
@ -90,9 +94,5 @@
</ul> </ul>
</section> </section>
<% } %> <% } %>
<div class='messages'></div>
<input type='submit' value='Save' class='submit'/>
</form> </form>
</div> </div>

View file

@ -2,10 +2,10 @@
<form> <form>
<div class='dropper-container'></div> <div class='dropper-container'></div>
<ul class='uploadables-container'></ul> <input type='submit' value='Upload all' class='submit'/>
<div class='messages'></div> <div class='messages'></div>
<input type='submit' value='Upload all' class='submit'/> <ul class='uploadables-container'></ul>
</form> </form>
</div> </div>