Make forum anchors more pleasant

This commit is contained in:
Ben Visness 2021-08-30 18:57:44 -05:00
parent 5247afcfc6
commit 1ac867fded
3 changed files with 11 additions and 2 deletions

View File

@ -8529,6 +8529,10 @@ input[type=submit] {
.badge.staff::before {
content: 'Staff'; }
.postid a {
margin-top: -5rem;
padding-top: 5rem; }
.contents div.code {
max-width: 100%;
max-height: 20em;

View File

@ -116,6 +116,11 @@
}
}
.postid a {
margin-top: -5rem;
padding-top: 5rem;
}
.contents {
div.code {
@extend .b--dimmer;

View File

@ -58,9 +58,9 @@
<div class="fl w-100 w-75-l pv3 pa3-l">
<div class="w-100 flex-l flex-row-reverse-l">
<div class="inline-flex flex-row-reverse pl3-l pb3 items-center">
<span class="postid">
<div class="postid">
<a name="{{ .ID }}" href="{{ .Url }}">#{{ .ID }}</a>
</span>
</div>
{{ if $.User }}
<div class="flex pr3">
{{ if or (eq .Author.ID $.User.ID) $.User.IsStaff }}