Commit a78e86ae authored by Mark Otto's avatar Mark Otto
Browse files

more minimal sidebar nav

parent 2fd19296
7 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23178Spinner,!22716Docs redesign,!17021v4
Showing with 16 additions and 17 deletions
+16 -17
......@@ -64,8 +64,7 @@
}
.bd-links {
margin-right: -15px;
margin-left: -15px;
margin: 1rem -15px;
// Override collapse behaviors
@include media-breakpoint-up(md) {
......@@ -75,8 +74,10 @@
.bd-search {
position: relative; // To contain the Algolia search
padding-top: 1rem;
padding-bottom: 1rem;
padding: 1rem 15px;
margin-right: -15px;
margin-left: -15px;
border-bottom: 1px solid rgba(0,0,0,.05);
.form-control:focus {
border-color: $bd-purple-bright;
......@@ -95,27 +96,26 @@
.bd-toc-link {
display: block;
padding: .75rem 1.5rem;
padding: .25rem 1.5rem;
font-weight: 500;
color: $gray;
color: rgba(0,0,0,.65);
&:hover {
color: $brand-primary;
color: rgba(0,0,0,.85);
text-decoration: none;
background-color: rgba(0,0,0,.01);
}
}
.bd-toc-item {
border-bottom: 1px solid rgba(0,0,0,.05);
&.active {
margin-bottom: 1rem;
&:first-child {
border-top: 1px solid rgba(0,0,0,.05);
}
&:not(:first-child) {
margin-top: 1rem;
}
&.active {
> .bd-toc-link {
color: $gray-dark;
color: rgba(0,0,0,.85);
&:hover {
background-color: transparent;
......@@ -124,7 +124,6 @@
> .bd-sidenav {
display: block;
padding-bottom: .75rem;
}
}
}
......@@ -138,7 +137,7 @@
}
.bd-sidebar .nav > li > a:hover {
color: $brand-primary;
color: rgba(0,0,0,.85);
text-decoration: none;
background-color: transparent;
}
......@@ -146,6 +145,6 @@
.bd-sidebar .nav > .active > a,
.bd-sidebar .nav > .active:hover > a {
font-weight: 500;
color: $gray-dark;
color: rgba(0,0,0,.85);
background-color: transparent;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment