Skip to content

Commit

Permalink
doc: eliminate dead space in API section's sidebar
Browse files Browse the repository at this point in the history
This commit improves overall usability on desktop by removing the "dead"
(non-interactive) regions between links in the API section's navigation.
No visible changes have been made; this enhancement is purely tactile in
nature.

PR-URL: #33469
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
Alhadis authored and codebytere committed Jun 18, 2020
1 parent 95e7a80 commit 23cf39a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,50 @@ td > *:last-child {
margin: -2px 3px 0 0;
}

/* API reference sidebar */
@media only screen and (min-width: 1025px) {
.apidoc #column2 > .line {
pointer-events: none;
}
.apidoc #column2 > :first-child,
.apidoc #column2 > ul,
.apidoc #column2 > ul > li {
margin: 0;
padding: 0;
}
.apidoc #column2 > :first-child > a[href] {
border-radius: 0;
padding: 1.25rem 1.4375rem .625rem;
display: block;
}
.apidoc #column2 > ul > li > a[href] {
padding: .5rem 1.4375rem;
padding-right: 0;
display: block;
}
.apidoc #column2 > ul > :first-child > a[href] {
padding-top: .625rem;
}
.apidoc #column2 > ul > :last-child > a[href] {
padding-bottom: .625rem;
}
.apidoc #column2 > ul:first-of-type > :last-child > a[href] {
padding-bottom: 1rem;
}
.apidoc #column2 > ul:nth-of-type(2) > :first-child > a[href] {
padding-top: .875rem;
}
.apidoc #column2 > ul:nth-of-type(2) > :last-child > a[href] {
padding-bottom: .9375rem;
}
.apidoc #column2 > ul:last-of-type > :first-child > a[href] {
padding-top: 1rem;
}
.apidoc #column2 > ul:last-of-type > :last-child > a[href] {
padding-bottom: 1.75rem;
}
}

@media only screen and (max-width: 1024px) {
#content {
overflow: visible;
Expand Down

0 comments on commit 23cf39a

Please sign in to comment.