details/summary tags instead of hacky hidden post form check css

merge-requests/208/head
fatchan 5 years ago
parent f7a5ce50dd
commit 54ff8b8c0e
  1. 7
      gulp/res/css/style.css
  2. 5
      views/includes/actionfooter.pug
  3. 6
      views/includes/actionfooter_globalmanage.pug
  4. 5
      views/includes/actionfooter_manage.pug
  5. 8
      views/includes/postform.pug
  6. 2
      views/pages/board.pug
  7. 1
      views/pages/thread.pug

@ -72,6 +72,7 @@ object {
.navbar { .navbar {
border-bottom: 1px solid #a9a9a9; border-bottom: 1px solid #a9a9a9;
background: #d6daf0;
} }
.catalog-tile-button { .catalog-tile-button {
@ -133,6 +134,7 @@ object {
} }
.mode { .mode {
margin-top: 1px;
background-color: red; background-color: red;
color: white; color: white;
font-weight: bold; font-weight: bold;
@ -211,7 +213,8 @@ td, th {
} }
.actions { .actions {
max-width: 100%; text-align: left;
max-width: 200px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin: 2px 0; margin: 2px 0;
@ -439,6 +442,7 @@ input textarea {
margin-top: auto; margin-top: auto;
line-height: 30px; line-height: 30px;
border-top: 1px solid #a9a9a9; border-top: 1px solid #a9a9a9;
background: #d6daf0;
} }
input[type="text"], input[type="submit"], input[type="password"], input[type="file"], textarea { input[type="text"], input[type="submit"], input[type="password"], input[type="file"], textarea {
@ -536,6 +540,7 @@ hr {
.catalog-tile { .catalog-tile {
overflow-y: hidden; overflow-y: hidden;
width: 48%;
} }
.table-body { .table-body {

@ -1,6 +1,5 @@
label.toggle-label Toggle Post Actions details.toggle-label
input.toggle(type='checkbox') summary Show Post Actions
.action-wrapper.togglable
.actions .actions
h4.no-m-p Actions: h4.no-m-p Actions:
label label

@ -1,6 +1,5 @@
label.toggle-label Toggle Post Actions details.toggle-label
input.toggle(type='checkbox') summary Show Post Actions
.action-wrapper.togglable
.actions .actions
h4.no-m-p Actions: h4.no-m-p Actions:
label label
@ -29,4 +28,3 @@ label.toggle-label Toggle Post Actions
label label
input#ban_reason(type='text', name='ban_reason', placeholder='ban reason' autocomplete='off') input#ban_reason(type='text', name='ban_reason', placeholder='ban reason' autocomplete='off')
input(type='submit', value='submit') input(type='submit', value='submit')

@ -1,6 +1,5 @@
label.toggle-label Toggle Post Actions details.toggle-label
input.toggle(type='checkbox') summary Show Post Actions
.action-wrapper.togglable
.actions .actions
h4.no-m-p Actions: h4.no-m-p Actions:
label label

@ -1,4 +1,6 @@
section.form-wrapper.flex-center.mv-10 section.form-wrapper.flex-center.mv-10
details.toggle-label
summary Show Post Form
form.form-post(action=`/forms/board/${board._id}/post`, enctype='multipart/form-data', method='POST') form.form-post(action=`/forms/board/${board._id}/post`, enctype='multipart/form-data', method='POST')
//input(type='hidden' name='_csrf' value=csrf) //input(type='hidden' name='_csrf' value=csrf)
input(type='hidden' name='thread' value=thread != null ? thread.postId : null) input(type='hidden' name='thread' value=thread != null ? thread.postId : null)
@ -40,7 +42,5 @@ section.form-wrapper.flex-center.mv-10
.postform-col .postform-col
img.captcha(src='/captcha' width=200 height=80) img.captcha(src='/captcha' width=200 height=80)
input#captcha(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6') input#captcha(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6')
if !thread input(type='submit', value=`New ${threads ? 'Thread' : 'Reply'}`)
input(type='submit', value='New Thread') //.mode Posting mode: #{threads ? 'Thread' : 'Reply'}
else
input(type='submit', value='Reply')

@ -7,7 +7,6 @@ block head
block content block content
include ../includes/boardheader.pug include ../includes/boardheader.pug
include ../includes/postform.pug include ../includes/postform.pug
.mode Posting mode: Thread
nav.pages#top nav.pages#top
include ../includes/pages.pug include ../includes/pages.pug
a(href='#bottom') [Bottom] a(href='#bottom') [Bottom]
@ -26,6 +25,7 @@ block content
+post(post, true) +post(post, true)
hr(size=1) hr(size=1)
nav.pages#bottom nav.pages#bottom
include ../includes/pages.pug
a(href='#top') [Top] a(href='#top') [Top]
| |
a(href=`/${board._id}/catalog.html`) [Catalog] a(href=`/${board._id}/catalog.html`) [Catalog]

@ -12,7 +12,6 @@ block head
block content block content
include ../includes/boardheader.pug include ../includes/boardheader.pug
include ../includes/postform.pug include ../includes/postform.pug
.mode Posting mode: Reply
nav.pages#top nav.pages#top
a(href='#bottom') [Bottom] a(href='#bottom') [Bottom]
| |

Loading…
Cancel
Save