client/general: ditch tabular forms
This commit is contained in:
parent
797e5d4244
commit
d91352a3b0
|
@ -9,14 +9,14 @@ form
|
||||||
margin: 0
|
margin: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
li
|
li
|
||||||
margin-top: 0.5em
|
margin-top: 1.2em
|
||||||
label
|
label
|
||||||
display: block
|
display: block
|
||||||
padding: 0.5em 0
|
padding: 0.3em 0
|
||||||
.input
|
.input
|
||||||
margin-bottom: 1em
|
margin-bottom: 1em
|
||||||
.buttons
|
.buttons
|
||||||
margin-top: 1em
|
margin-top: 1.5em
|
||||||
.input li:first-child label:not(.radio):not(.checkbox):not(.file-dropper),
|
.input li:first-child label:not(.radio):not(.checkbox):not(.file-dropper),
|
||||||
.input li:first-child
|
.input li:first-child
|
||||||
padding-top: 0
|
padding-top: 0
|
||||||
|
@ -28,22 +28,6 @@ form
|
||||||
font-size: 80%
|
font-size: 80%
|
||||||
line-height: 120%
|
line-height: 120%
|
||||||
|
|
||||||
form.tabular
|
|
||||||
ul
|
|
||||||
display: table
|
|
||||||
table-layout: fixed
|
|
||||||
width: 100%
|
|
||||||
li
|
|
||||||
display: table-row
|
|
||||||
label:not(.radio):not(.checkbox):not(.file-dropper)
|
|
||||||
box-sizing: border-box
|
|
||||||
display: table-cell
|
|
||||||
width: 33%
|
|
||||||
text-align: right
|
|
||||||
padding-right: 1em
|
|
||||||
.messages, .buttons
|
|
||||||
margin-left: 33%
|
|
||||||
|
|
||||||
form.horizontal
|
form.horizontal
|
||||||
display: inline-block
|
display: inline-block
|
||||||
margin-bottom: 1em
|
margin-bottom: 1em
|
||||||
|
|
|
@ -58,15 +58,8 @@
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
line-height: 130%
|
line-height: 130%
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
form
|
.messages, form
|
||||||
width: 100%
|
width: 100%
|
||||||
label:not(.radio):not(.checkbox):not(.file-dropper)
|
|
||||||
width: 7em
|
|
||||||
.messages, .buttons
|
|
||||||
margin-left: 7em
|
|
||||||
.tag-delete
|
|
||||||
.messages, .buttons
|
|
||||||
margin-left: 0 !important
|
|
||||||
.tag-edit
|
.tag-edit
|
||||||
textarea
|
textarea
|
||||||
height: 10em
|
height: 10em
|
||||||
|
|
|
@ -49,18 +49,19 @@
|
||||||
#user-edit
|
#user-edit
|
||||||
form
|
form
|
||||||
width: 100%
|
width: 100%
|
||||||
display: flex
|
.avatar
|
||||||
.left
|
#avatar-content
|
||||||
|
float: right
|
||||||
width: 65%
|
width: 65%
|
||||||
.right
|
margin-top: .5em
|
||||||
width: 35%
|
#avatar-radio
|
||||||
margin-left: 1em
|
float: left
|
||||||
.file-dropper-holder
|
width: 30%
|
||||||
position: relative
|
&:after
|
||||||
.file-dropper
|
content: ' '
|
||||||
position: absolute
|
display: block
|
||||||
left: 0
|
height: 1px
|
||||||
right: 0
|
clear: both
|
||||||
|
|
||||||
#user-delete form
|
#user-delete form
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
<p>For extra <s>paranoia</s> safety, only tags that are unused can be deleted.</p>
|
<p>For extra <s>paranoia</s> safety, only tags that are unused can be deleted.</p>
|
||||||
<p>Check <a href='/posts/query=<%- encodeURIComponent(ctx.tag.names[0]) %>'>which posts</a> are tagged with <%- ctx.tag.names[0] %>.</p>
|
<p>Check <a href='/posts/query=<%- encodeURIComponent(ctx.tag.names[0]) %>'>which posts</a> are tagged with <%- ctx.tag.names[0] %>.</p>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<div class='input'>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<%= ctx.makeCheckbox({id: 'confirm-deletion', name: 'confirm-deletion', required: true, text: 'I confirm that I want to delete this tag.'}) %>
|
<%= ctx.makeCheckbox({id: 'confirm-deletion', name: 'confirm-deletion', required: true, text: 'I confirm that I want to delete this tag.'}) %>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
<div class='messages'></div>
|
<div class='messages'></div>
|
||||||
|
|
||||||
<div class='buttons'>
|
<div class='buttons'>
|
||||||
<input type='submit' value='Delete tag'/>
|
<input type='submit' value='Delete tag'/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<div class='content-wrapper tag-edit'>
|
<div class='content-wrapper tag-edit'>
|
||||||
<form class='tabular'>
|
<form>
|
||||||
<div class='input'>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li class='names'>
|
<li class='names'>
|
||||||
<% if (ctx.canEditNames) { %>
|
<% if (ctx.canEditNames) { %>
|
||||||
|
@ -46,9 +45,10 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
<% if (ctx.canEditAnything) { %>
|
<% if (ctx.canEditAnything) { %>
|
||||||
<div class='messages'></div>
|
<div class='messages'></div>
|
||||||
|
|
||||||
<div class='buttons'>
|
<div class='buttons'>
|
||||||
<input type='submit' class='save' value='Save changes'>
|
<input type='submit' class='save' value='Save changes'>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
<div class='tag-merge'>
|
<div class='tag-merge'>
|
||||||
<form class='tabular'>
|
<form>
|
||||||
<p>Proceeding will remove this tag and retag its posts with the tag
|
<p>Proceeding will remove this tag and retag its posts with the tag
|
||||||
specified below. Aliases, suggestions and implications are discarded
|
specified below. Aliases, suggestions and implications are discarded
|
||||||
and need to be handled manually.</p>
|
and need to be handled manually.</p>
|
||||||
<div class='input'>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li class='target'>
|
<li class='target'>
|
||||||
<%= ctx.makeTextInput({required: true, text: 'Target tag', pattern: ctx.tagNamePattern}) %>
|
<%= ctx.makeTextInput({required: true, text: 'Target tag', pattern: ctx.tagNamePattern}) %>
|
||||||
</li>
|
</li>
|
||||||
<li class='confirm'>
|
<li class='confirm'>
|
||||||
<label></label>
|
|
||||||
<%= ctx.makeCheckbox({required: true, text: 'I confirm that I want to merge this tag.'}) %>
|
<%= ctx.makeCheckbox({required: true, text: 'I confirm that I want to merge this tag.'}) %>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
<div class='messages'></div>
|
<div class='messages'></div>
|
||||||
|
|
||||||
<div class='buttons'>
|
<div class='buttons'>
|
||||||
<input type='submit' value='Merge tag'/>
|
<input type='submit' value='Merge tag'/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
<div id='user-edit'>
|
<div id='user-edit'>
|
||||||
<form class='tabular'>
|
<form>
|
||||||
<div class='left'>
|
|
||||||
<div class='input'>
|
|
||||||
<ul>
|
<ul>
|
||||||
<% if (ctx.canEditName) { %>
|
<% if (ctx.canEditName) { %>
|
||||||
<li>
|
<li>
|
||||||
|
@ -26,26 +24,23 @@
|
||||||
<%= ctx.makeSelect({text: 'Rank', id: 'user-rank', name: 'rank', keyValues: ctx.ranks, selectedKey: ctx.user.rank}) %>
|
<%= ctx.makeSelect({text: 'Rank', id: 'user-rank', name: 'rank', keyValues: ctx.ranks, selectedKey: ctx.user.rank}) %>
|
||||||
</li>
|
</li>
|
||||||
<% } %>
|
<% } %>
|
||||||
</ul>
|
|
||||||
|
<% if (ctx.canEditAvatar) { %>
|
||||||
|
<li class='avatar'>
|
||||||
|
<label>Avatar</label>
|
||||||
|
<div id='avatar-content'></div>
|
||||||
|
<div id='avatar-radio'>
|
||||||
|
<%= ctx.makeRadio({text: 'Gravatar', id: 'gravatar-radio', name: 'avatar-style', value: 'gravatar', selectedValue: ctx.user.avatarStyle}) %>
|
||||||
|
<%= ctx.makeRadio({text: 'Manual avatar', id: 'avatar-radio', name: 'avatar-style', value: 'manual', selectedValue: ctx.user.avatarStyle}) %>
|
||||||
</div>
|
</div>
|
||||||
|
</li>
|
||||||
|
<% } %>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<div class='messages'></div>
|
<div class='messages'></div>
|
||||||
|
|
||||||
<div class='buttons'>
|
<div class='buttons'>
|
||||||
<input type='submit' value='Save settings'/>
|
<input type='submit' value='Save settings'/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<% if (ctx.canEditAvatar) { %>
|
|
||||||
<div class='right'>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<%= ctx.makeRadio({text: 'Gravatar', id: 'gravatar-radio', name: 'avatar-style', value: 'gravatar', selectedValue: ctx.user.avatarStyle}) %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= ctx.makeRadio({text: 'Manual avatar', id: 'avatar-radio', name: 'avatar-style', value: 'manual', selectedValue: ctx.user.avatarStyle}) %>
|
|
||||||
<div id='avatar-content'></div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<% } %>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue