From 9077451d1ed69cb04018769d85eb02828bee8fac Mon Sep 17 00:00:00 2001 From: nevfy Date: Sun, 4 Feb 2024 22:48:27 +0400 Subject: [PATCH] feat: move docsy overrides to a separate file --- assets/scss/_styles_project.scss | 34 +-------------- assets/scss/docsy_overrides.scss | 74 ++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 33 deletions(-) create mode 100644 assets/scss/docsy_overrides.scss diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index 0ca446c..5276f65 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -1,32 +1,4 @@ -.td-navbar { - background: $dark; - min-height: 5rem; - .navbar-brand__name { - display: none; - } - .nav-link { - color: $secondary !important; - font-weight: 600; - } - .nav-link:hover, .nav-link.active{ - background-color: #616161; - color: white; - border-radius: 5px; - } -} - -.td-breadcrumbs__single { - visibility: hidden; -} - -.td-navbar .td-navbar-nav-scroll { - height: unset !important; - margin-top: unset !important; -} - -.td-navbar .td-navbar-nav-scroll .nav-link { - padding: .5rem 1.5rem; -} +@import "docsy_overrides"; .sp-footer a.nav-link span { width: 2rem; @@ -40,10 +12,6 @@ margin: auto; } -.td-navbar .td-navbar-nav-scroll .navbar-nav { - padding-bottom: 0 !important; -} - .nav-item { margin-right: .5rem !important; } diff --git a/assets/scss/docsy_overrides.scss b/assets/scss/docsy_overrides.scss new file mode 100644 index 0000000..85820d2 --- /dev/null +++ b/assets/scss/docsy_overrides.scss @@ -0,0 +1,74 @@ +.td-navbar { + background: $dark; + min-height: 5rem; + .navbar-brand__name { + display: none; + } + .nav-link { + color: $secondary !important; + font-weight: 600; + } + .nav-link:hover, .nav-link.active{ + background-color: #616161; + color: white; + border-radius: 5px; + } + .td-navbar-nav-scroll { + height: unset !important; + margin-top: unset !important; + } + .td-navbar-nav-scroll .nav-link { + padding: .5rem 1.5rem; + } + .td-navbar-nav-scroll .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: #616161 !important; + font-weight: 400; +} + +ul.ul-2>.td-sidebar-nav__section-title a:hover { + color: $blue !important; +} + +.td-toc ul { + margin-top: 1rem; + } + + .td-toc li { + display: block; + padding-bottom: .5rem; + } + + .td-toc a{ + display: inline !important; + } + + .tab-content .tab-pane { + border: 1px solid rgba(0, 0, 0, 0.125) !important; + border-radius: 0px .25rem .25rem .25rem; + } + + .nav-tabs { + border: none !important; + } + + .nav-tabs a:not(.active).nav-link:hover { + background-color: #0d6efd11; + } + + .td-content ul li, .td-content ol li { + margin-bottom: unset !important; + } + + .tab-content div { + transition: none; + } \ No newline at end of file