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;
padding: 5px;
max-width: 100%;
margin-bottom: -10px;
}
.pad-anchor:target .post-container {
.anchor:target + .post-container {
background-color: #d6bad0 !important;
border: 1px solid #ba9dbf !important;
}
.pad-anchor:before {
content: "";
display: block;
height: 15px;
.anchor {
height: 5px;
}
.post-container.op {

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

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

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

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

Loading…
Cancel
Save