padded anchors were too big and didnt look good for threads

merge-requests/208/head
fatchan 5 years ago
parent 1ead7e26c3
commit ab7086dd59
  1. 9
      gulp/res/css/style.css
  2. 2
      views/mixins/post.pug
  3. 2
      views/pages/board.pug
  4. 2
      views/pages/catalog.pug
  5. 2
      views/pages/thread.pug

@ -416,18 +416,15 @@ input textarea {
box-sizing: border-box; box-sizing: border-box;
padding: 5px; padding: 5px;
max-width: 100%; max-width: 100%;
margin-bottom: -10px;
} }
.pad-anchor:target .post-container { .anchor:target + .post-container {
background-color: #d6bad0 !important; background-color: #d6bad0 !important;
border: 1px solid #ba9dbf !important; border: 1px solid #ba9dbf !important;
} }
.pad-anchor:before { .anchor {
content: ""; height: 5px;
display: block;
height: 15px;
} }
.post-container.op { .post-container.op {

@ -1,5 +1,5 @@
mixin post(post, truncate, manage=false, globalmanage=false) mixin post(post, truncate, manage=false, globalmanage=false)
.pad-anchor(id=post.postId) .anchor(id=post.postId)
article(class='post-container '+(post.thread ? '' : 'op')) article(class='post-container '+(post.thread ? '' : 'op'))
- const postURL = `/${post.board}/thread/${post.thread || post.postId}.html#${post.postId}`; - const postURL = `/${post.board}/thread/${post.thread || post.postId}.html#${post.postId}`;
header.post-info header.post-info

@ -10,7 +10,7 @@ block content
include ../includes/postform.pug include ../includes/postform.pug
br br
include ../includes/stickynav.pug include ../includes/stickynav.pug
.pad-anchor#top .anchor#top
nav.pages nav.pages
include ../includes/pages.pug include ../includes/pages.pug
a(href=`/${board._id}/catalog.html`) [Catalog] a(href=`/${board._id}/catalog.html`) [Catalog]

@ -10,7 +10,7 @@ block content
include ../includes/postform.pug include ../includes/postform.pug
br br
include ../includes/stickynav.pug include ../includes/stickynav.pug
.pad-anchor#top .anchor#top
nav.pages nav.pages
a(href=`/${board._id}/index.html`) [Return] a(href=`/${board._id}/index.html`) [Return]
hr(size=1) hr(size=1)

@ -21,7 +21,7 @@ block content
include ../includes/postform.pug include ../includes/postform.pug
br br
include ../includes/stickynav.pug include ../includes/stickynav.pug
.pad-anchor#top .anchor#top
nav.pages nav.pages
a(href=`/${board._id}/index.html`) [Return] a(href=`/${board._id}/index.html`) [Return]
| |

Loading…
Cancel
Save