We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3259fa commit 8966c52Copy full SHA for 8966c52
templates/style/rustdoc.scss
@@ -29,8 +29,9 @@ body.blur {
29
30
// rustdoc overrides
31
div.rustdoc {
32
+ $padding-x: 15px;
33
font-family: $font-family-serif;
- padding: 10px 15px 20px 15px;
34
+ padding: 10px $padding-x 20px;
35
position: relative;
36
37
@media (max-width: 700px) {
@@ -47,8 +48,13 @@ div.rustdoc {
47
48
}
49
50
51
+ margin-left: -2 * $padding-x; // offset the additional padding added by the parent containers
52
+ width: calc(100% + #{4 * $padding-x});
53
+
54
&.mobile {
55
top: $top-navbar-height;
56
+ margin-left: 0; // since the sidebar is now fixed position, remove the padding workaround
57
+ width: 100%;
58
59
.sidebar-elems.show-it {
60
top: 45px + $top-navbar-height;
0 commit comments