From 55df8d6f26e63c9fbfd774de3e10011b121c3c4d Mon Sep 17 00:00:00 2001 From: nevfy Date: Thu, 9 May 2024 19:38:30 +0300 Subject: [PATCH] fix: remove td-navbar and td-breadcrumb overrrides --- .../google/docsy/assets/scss/_nav.scss | 19 +++++++--- .../docsy/layouts/partials/breadcrumb.html | 2 +- .../google/docsy/layouts/partials/navbar.html | 6 +--- assets/scss/_variables_project.scss | 2 ++ assets/scss/docsy_overrides.scss | 35 ------------------- 5 files changed, 19 insertions(+), 45 deletions(-) diff --git a/_vendor/github.com/google/docsy/assets/scss/_nav.scss b/_vendor/github.com/google/docsy/assets/scss/_nav.scss index ceb87a6..72799a6 100644 --- a/_vendor/github.com/google/docsy/assets/scss/_nav.scss +++ b/_vendor/github.com/google/docsy/assets/scss/_nav.scss @@ -25,10 +25,10 @@ @extend .navbar; @extend .navbar-expand; - background: $primary; - min-height: 4rem; + background: $dark; + min-height: 5rem; margin: 0; - z-index: 32; + z-index: 15; .navbar-brand { text-transform: none; @@ -47,11 +47,23 @@ .navbar-nav { padding-top: $spacer * 0.5; white-space: nowrap; + padding-bottom: 0 !important; } .nav-link { text-transform: none; + color: $secondary !important; font-weight: $font-weight-bold; + border-radius: 5px; + padding: .5rem 1.5rem !important; + margin-top: unset !important; + &:hover { + background-color: #61616144; + transition: background-color 0.2s ease-in-out; + } + &.nav-link.active { + background-color: #616161; + } } // For .td-search__input styling, see _search.scss @@ -77,7 +89,6 @@ @include media-breakpoint-down(lg) { .td-navbar-nav-scroll { max-width: 100%; - height: 2.5rem; overflow: hidden; font-size: 0.9rem; } diff --git a/_vendor/github.com/google/docsy/layouts/partials/breadcrumb.html b/_vendor/github.com/google/docsy/layouts/partials/breadcrumb.html index d01224a..ac51d3a 100644 --- a/_vendor/github.com/google/docsy/layouts/partials/breadcrumb.html +++ b/_vendor/github.com/google/docsy/layouts/partials/breadcrumb.html @@ -3,7 +3,7 @@ {{ $isSingle = .IsHome -}} {{ end -}} \ No newline at end of file + diff --git a/assets/scss/_variables_project.scss b/assets/scss/_variables_project.scss index 642d12f..2a1cf93 100644 --- a/assets/scss/_variables_project.scss +++ b/assets/scss/_variables_project.scss @@ -18,6 +18,8 @@ $google_font_family: "Montserrat:300,300i,400,400i,500,500i,600,700,700i"; $font-family-sans-serif: "Montserrat", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; +$font-weight-bold: 600; + $navbar-dark-color: rgba($secondary, 0.8) !default; $navbar-dark-hover-color: rgba($secondary, 1) !default; $navbar-dark-active-color: $secondary !default; diff --git a/assets/scss/docsy_overrides.scss b/assets/scss/docsy_overrides.scss index 34ea411..f691de3 100644 --- a/assets/scss/docsy_overrides.scss +++ b/assets/scss/docsy_overrides.scss @@ -1,38 +1,3 @@ -.td-navbar { - background: $dark; - min-height: 5rem; - z-index: 15; - .navbar-brand__name { - display: none; - } - .nav-link { - color: $secondary !important; - font-weight: 600; - border-radius: 5px; - &:hover { - background-color: #61616144; - transition: background-color 0.2s ease-in-out; - } - &.nav-link.active { - background-color: #616161; - } - } - .td-navbar-nav-scroll { - height: unset !important; - margin-top: unset !important; - .nav-link { - padding: .5rem 1.5rem; - } - .navbar-nav { - padding-bottom: 0 !important; - } - } -} - -.td-breadcrumbs__single { - visibility: hidden; -} - .td-sidebar-nav .td-sidebar-link__page, ul.ul-2>.td-sidebar-nav__section-title a { color: $gray !important;