pre {
padding: 14px;
}
+.type-decl pre {
+ overflow-x: auto;
+}
.source .content pre {
padding: 20px;
border-bottom-left-radius: 5px;
}
-.rustdoc:not(.source) .example-wrap > pre.rust {
+.rustdoc:not(.source) .example-wrap > pre:not(.line-number) {
width: 100%;
overflow-x: auto;
}
padding: 0 20px 20px 17px;;
}
+.item-info .stab {
+ display: table;
+}
.stab {
border-width: 1px;
border-style: solid;
display: none;
}
+ /* We do NOT hide this element so that alternative device readers still have this information
+ available. */
.sidebar-elems {
position: fixed;
z-index: 1;
- left: 0;
top: 45px;
bottom: 0;
+ width: 246px;
+ /* We move the sidebar to the left by its own width so it doesn't appear. */
+ left: -246px;
overflow-y: auto;
border-right: 1px solid;
- display: none;
}
.sidebar > .block.version {
width: calc(100% + 30px);
}
- .show-it {
- display: block;
- width: 246px;
+ .show-it, .sidebar-elems:focus-within {
+ z-index: 2;
+ left: 0;
}
.show-it > .block.items {