From c971faeb205dce1b21aa4caf11de996d6f515409 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 20 Mar 2023 18:37:47 -0500 Subject: [PATCH] Clean up navbar structure --- assets/css/bobastyle.css | 20 ++++++-------------- layouts/_default/baseof.html | 4 +--- layouts/partials/top.html | 28 +++++++++++++--------------- 3 files changed, 20 insertions(+), 32 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index d9553b2..ddd8e0f 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -383,25 +383,17 @@ h1 svg.icon { /* Navbar formatting {{{ */ -.topbar { - display: flex; - flex-wrap: nowrap; - flex-direction: row; - background-color: var(--background-1); - color: var(--text-1); - border-radius: 8px; - margin-top: 5px; - padding: 4px; - align-items: flex-start; -} - .navbar { display: flex; flex-grow: 1; overflow: auto; + background-color: var(--background-1); + border-radius: 8px; + margin-top: 5px; + padding: 4px; } -.navbar a { +.navbar-item { padding: 8px 12px; border-radius: 12px; white-space: nowrap; @@ -412,7 +404,7 @@ h1 svg.icon { text-decoration: none; } -.topbar .active { +.navbar-item.active { font-weight: bold; } diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 671286e..4dabd0f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -10,9 +10,7 @@ -
- {{ partial "top.html" . }} -
+ {{ partial "top.html" . }} {{ if not .IsHome }} {{ partial "breadcrumb.html" . }} diff --git a/layouts/partials/top.html b/layouts/partials/top.html index fca6c12..8a2d9cf 100644 --- a/layouts/partials/top.html +++ b/layouts/partials/top.html @@ -4,20 +4,18 @@ -
-
+ {{ .Name }} + {{ end }} +