/help/: Reduce margin-top for closer anchoring.

This lowers the amount of margin in the :before hack that we use
to put padding before anchored elements from 40px to 30px on <h1>
tags and 10px on everything else, which seems to be plenty.

Fixes: #7069.
This commit is contained in:
Brock Whittaker 2017-10-18 16:17:16 -07:00
parent ec3b2072ce
commit 6f77887b4d
1 changed files with 12 additions and 2 deletions

View File

@ -187,11 +187,21 @@ body {
.markdown h4[id]:before {
display: block;
content: " ";
margin-top: -40px;
height: 40px;
visibility: hidden;
}
.markdown h1[id]:before {
margin-top: -30px;
height: 30px;
}
.markdown h2[id]:before,
.markdown h3[id]:before,
.markdown h4[id]:before {
margin-top: -10px;
height: 10px;
}
.markdown ul,
.markdown ol {
margin-left: 30px;