From 42f0046747607a294f74dc47c632a32665894d9f Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Thu, 4 Nov 2021 21:04:27 -0500 Subject: [PATCH] Move the langbar to be part of the navbar - TODO: dropdown --- assets/css/bobastyle.css | 29 ++++++++++------------- layouts/partials/top.html | 48 ++++++++++++++++++++------------------- 2 files changed, 37 insertions(+), 40 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 8f25359..fb67588 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -118,7 +118,7 @@ footer { /* Navbar formatting */ -.navbar, .langbar { +.topbar { display: flex; flex-wrap: nowrap; flex-direction: row; @@ -127,33 +127,28 @@ footer { margin-top: 5px; padding: 4px; align-items: flex-start; +} + +.navbar, .langpicker { + display: flex; +} + +.navbar { + flex-grow: 1; overflow: auto; } -.navbar-item, .langbar-item { - /*flex-grow: 1;*/ +.navbar a, .langpicker a { padding: 8px 12px; border-radius: 12px; } -/*.navbar-item:first-child, -.langbar-item:first-child { - border-top-left-radius: 8px; - border-bottom-left-radius: 8px; -} - -.navbar-item:last-child, -.langbar-item:last-child { - border-top-right-radius: 8px; - border-bottom-right-radius: 8px; -}*/ - -.navbar-item:hover, .langbar-item:hover { +.navbar-item:hover, .langpicker-item:hover { background-color: #444; text-decoration: none; } -.navbar-item.active, .langbar-item.active { +.topbar .active { font-weight: bold; } diff --git a/layouts/partials/top.html b/layouts/partials/top.html index 1fcc527..9131258 100644 --- a/layouts/partials/top.html +++ b/layouts/partials/top.html @@ -2,27 +2,29 @@ {{ .Site.Title | markdownify }} - - -{{ if .Site.IsMultiLingual }} - -{{ end }} +