From 9a18019d9ddcde3a5b742156fa83814bd35aa434 Mon Sep 17 00:00:00 2001 From: hunicus <93150691+hunicus@users.noreply.github.com> Date: Thu, 16 Dec 2021 13:20:30 -0500 Subject: [PATCH] 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). --- frontend/src/app/components/docs/api-docs.component.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/app/components/docs/api-docs.component.scss b/frontend/src/app/components/docs/api-docs.component.scss index 98222e8f8..dd5f11808 100644 --- a/frontend/src/app/components/docs/api-docs.component.scss +++ b/frontend/src/app/components/docs/api-docs.component.scss @@ -124,6 +124,14 @@ li.nav-item { float: right; } +.endpoint-container:before { + display: block; + content: " "; + height: 1px; + margin-top: -1px; + visibility: hidden; +} + .endpoint-container .section-header { display: block; background-color: #2d3348;