Skip to content

Commit d8a2618

Browse files
committed
auto merge of #17011 : nodakai/rust/rustdoc-stronger-crate, r=alexcrichton
If you browse to, say, http://doc.rust-lang.org/libc/types/os/common/posix01/struct.timeval.html , you will see the "location" window showing `libc::types::os::common::posix01`. The first element points to a crate and others point modules. This patch adds the bold attribute to the first (ie. crate) element so that it stands out more.
2 parents 6eabd85 + 9e82fc7 commit d8a2618

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/html/static/main.css

+2
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ nav.sub {
177177
color: #333;
178178
}
179179

180+
.location a:first-child { font-weight: bold; }
181+
180182
.block {
181183
padding: 0 10px;
182184
margin-bottom: 14px;

0 commit comments

Comments
 (0)