Skip to content

Commit

Permalink
[docs] Minor doc CSS fixes after mdBook updated to 0.4.43
Browse files Browse the repository at this point in the history
This commit updates a couple of minor properties in our custom CSS files
to ensure that content is rendering properly after updating mdBook to
0.4.43. This includes using the scrollbar colour instead of the icon
colour for the sidebar resize navigation element (as our icon colour is
white, which matches the page background), and ensuring the new `label`
type resize indicator (previously a `button`) renders in line with the
other buttons by displaying it flexibly justified so that it appears
vertically centered.

Signed-off-by: Alex Jones <[email protected]>
  • Loading branch information
AlexJones0 committed Jan 9, 2025
1 parent 437e299 commit 9a1c75f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/book-theme/css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ html.sidebar-visible #menu-bar {
line-height: var(--menu-bar-height);
cursor: pointer;
transition: color 0.5s;
display: inline-flex;
flex-direction: column;
justify-content: center;
}
@media only screen and (max-width: 420px) {
#menu-bar i, #menu-bar .icon-button {
Expand Down Expand Up @@ -495,7 +498,7 @@ html:not(.sidebar-resizing) .sidebar {
.sidebar-resize-handle .sidebar-resize-indicator {
width: 100%;
height: 12px;
background-color: var(--icons);
background-color: var(--scrollbar);
margin-inline-start: var(--sidebar-resize-indicator-space);
}

Expand Down

0 comments on commit 9a1c75f

Please sign in to comment.