Add :before element for space before anchors

@angular-router's `scrollOffset` property seems to be
global, so it might mess up something else, and it also
wasn't taking effect when navigating directly to an
anchor anyway (i.e. from browser's address bar).
This commit is contained in:
hunicus 2021-12-16 13:20:30 -05:00
parent 6723d5ba34
commit 019d1e4f12

View File

@ -124,6 +124,14 @@ li.nav-item {
float: right; float: right;
} }
.endpoint-container:before {
display: block;
content: " ";
height: 1px;
margin-top: -1px;
visibility: hidden;
}
.endpoint-container .section-header { .endpoint-container .section-header {
display: block; display: block;
background-color: #2d3348; background-color: #2d3348;