-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix footer display following last rustdoc changes on the sidebar
- Loading branch information
1 parent
1dd2aee
commit b290aa2
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// FIXME: Use modules | ||
@import "rustdoc-common"; | ||
|
||
// This file is needed to overload the previous docs.rs style. It is added into crates generated | ||
// using rustdoc after https://github.com/rust-lang/rust/pull/92692 has been merged. | ||
|
||
#rustdoc_body_wrapper { | ||
padding: 0; | ||
|
||
.sidebar { | ||
margin-top: 0; | ||
top: $top-navbar-height; | ||
height: calc(100vh - $top-navbar-height); | ||
/* Since we use `overflow-wrap: anywhere;`, we never have the need for a X scrollbar... */ | ||
overflow-x: hidden; | ||
|
||
.sidebar-menu { | ||
top: $top-navbar-height; | ||
margin-bottom: $footer-height; | ||
} | ||
} | ||
|
||
main { | ||
padding-bottom: 50px; | ||
} | ||
} | ||
|
||
div.container-rustdoc { | ||
> .docs-rs-footer { | ||
bottom: 0; | ||
right: 0; | ||
left: 0; | ||
} | ||
} | ||
|
||
div.rustdoc { | ||
#sidebar-toggle { | ||
top: 0; | ||
} | ||
} |