about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-29 15:15:40 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-29 15:15:40 +0200
commit27ff258826d560d3c57554153bc9dcfdb6712bc9 (patch)
tree51b140ec4d1e4c50aac29782816ec98471ba0763 /src/librustdoc/html
parent66c83ffca1512ed76f9445ec7f7280f768ef71c4 (diff)
downloadrust-27ff258826d560d3c57554153bc9dcfdb6712bc9.tar.gz
rust-27ff258826d560d3c57554153bc9dcfdb6712bc9.zip
Fix height for the source sidebar in mobile mode
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 5d0756d30fb..3b0d9844e5a 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1772,9 +1772,11 @@ details.rustdoc-toggle[open] > summary.hideme::after {
 	/* The source view uses a different design for the sidebar toggle, and doesn't have a topbar,
 	   so don't bump down the main content or the sidebar. */
 	.source main,
-	.source .sidebar {
+	.rustdoc.source .sidebar {
 		top: 0;
 		padding: 0;
+		height: 100vh;
+		border: 0;
 	}
 
 	.sidebar.shown,