Move scrollbar on the <main> element rather than only on the code block to improve UX

This commit is contained in:
Guillaume Gomez 2023-04-04 16:35:36 +02:00
parent 1767585509
commit 6f9b988578

View File

@ -392,6 +392,7 @@ img {
overflow-x: hidden;
/* The sidebar is by default hidden */
overflow-y: hidden;
z-index: 1;
}
.sidebar, .mobile-topbar, .sidebar-menu-toggle,
@ -535,6 +536,9 @@ ul.block, .block li {
.rustdoc .example-wrap > pre {
margin: 0;
flex-grow: 1;
}
.rustdoc:not(.source) .example-wrap > pre {
overflow: auto hidden;
}