Skip to content

Commit

Permalink
Improve readability of documentation navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicDin committed Jun 30, 2023
1 parent 85f3a16 commit 5ddea21
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion docs/theme/assets/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,35 @@


/*
* SIDEBAR (mobile)
* SIDEBAR
*/

/* Large screens only */
@media (min-width:1220px) {
/* Left navigation - first non-section title (main title) */
li.md-nav__item:not(.md-nav__item--section) > label.md-nav__link {
height: 0;
}

/* Left navigation - section */
.md-sidebar.md-sidebar--primary .md-nav__item .md-nav__item--section {
margin-bottom: 2rem;
}

/* Left navigation - section (level 2) */
.md-sidebar.md-sidebar--primary nav.md-nav[data-md-level="2"] {
border-left-width: 1px;
border-left-style: solid;
border-left-color: var(--md-default-fg-color--lighter);
margin-left: .1rem;
}

/* Left navigation - section (level 2) - links */
.md-sidebar.md-sidebar--primary nav.md-nav[data-md-level="2"] .md-nav__item a.md-nav__link {
padding-left: .5rem;
}
}

.md-sidebar.md-sidebar--primary .md-nav.md-nav--primary .md-nav__source {
color: var(--md-text-color);
background-color: var(--md-primary-fg-color--transparent)
Expand Down

0 comments on commit 5ddea21

Please sign in to comment.