提交 2040daee 编写于 作者: W Wesley Wiser

Make the rustdoc sidebar white on `src` pages

Fixes #40724
上级 07a34293
......@@ -54,7 +54,7 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
{favicon}
{in_header}
</head>
<body class="rustdoc">
<body class="rustdoc {css_class}">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
......@@ -80,7 +80,7 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
</form>
</nav>
<section id='main' class="content {css_class}">{content}</section>
<section id='main' class="content">{content}</section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
......
......@@ -141,7 +141,7 @@ pre {
padding: 14px;
}
.source pre {
.source .content pre {
padding: 20px;
}
......@@ -149,7 +149,7 @@ img {
max-width: 100%;
}
.content.source {
.source .content {
margin-top: 50px;
max-width: none;
overflow: visible;
......@@ -231,7 +231,7 @@ nav.sub {
padding: 15px 0;
}
.content.source pre.rust {
.source .content pre.rust {
white-space: pre;
overflow: auto;
padding-left: 0;
......
......@@ -45,6 +45,10 @@ pre {
background-color: #fff;
}
.source .sidebar {
background-color: #fff;
}
.sidebar .location {
border-color: #000;
background-color: #fff;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册