feat: move docsy overrides to a separate file

This commit is contained in:
nevfy 2024-02-04 22:48:27 +04:00
parent 082e0c37be
commit 9077451d1e
2 changed files with 75 additions and 33 deletions

View file

@ -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;
}

View file

@ -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;
}