From 2be8fef9cbae9aa78cc34a608c204570600bb5b8 Mon Sep 17 00:00:00 2001 From: razonyang Date: Sat, 12 Oct 2024 19:51:09 +0800 Subject: [PATCH] style: tweak active docs nav item border color --- assets/main/scss/docs/index.scss | 6 +++++- layouts/partials/docs/nav.html | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/main/scss/docs/index.scss b/assets/main/scss/docs/index.scss index 1e6c279c..2a8c57b9 100644 --- a/assets/main/scss/docs/index.scss +++ b/assets/main/scss/docs/index.scss @@ -36,7 +36,7 @@ } .docs-nav-title-icon { - margin-left: -1.5rem; + margin-left: -.5rem; } .docs-sidebar { @@ -50,3 +50,7 @@ } } } + +.docs-nav-active-item { + margin-left: -.58rem; +} diff --git a/layouts/partials/docs/nav.html b/layouts/partials/docs/nav.html index 726adb50..45bda899 100644 --- a/layouts/partials/docs/nav.html +++ b/layouts/partials/docs/nav.html @@ -27,21 +27,21 @@ {{- $active = true -}} {{- end -}}
  • -
    + -
    +
    {{ template "walk-nav" (dict "section" . "page" $page) }}
  • {{- else -}} -