about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-06 17:51:24 +0000
committerbors <bors@rust-lang.org>2014-09-06 17:51:24 +0000
commitd8a26184dc103025e7ad457ffd8deb391019dbfe (patch)
tree6bd20981a58b16aa529ba5a49d8ce6f6efcef610 /src/librustdoc/html
parent6eabd85265e18b47942dac7cf3f258e38d9d9f2e (diff)
parent9e82fc7ef9b6c8a344dd27583990b02a661af78c (diff)
downloadrust-d8a26184dc103025e7ad457ffd8deb391019dbfe.tar.gz
rust-d8a26184dc103025e7ad457ffd8deb391019dbfe.zip
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.
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/static/main.css2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css
index 6a7fc907c0b..27d54f8ec9d 100644
--- a/src/librustdoc/html/static/main.css
+++ b/src/librustdoc/html/static/main.css
@@ -177,6 +177,8 @@ nav.sub {
     color: #333;
 }
 
+.location a:first-child { font-weight: bold; }
+
 .block {
     padding: 0 10px;
     margin-bottom: 14px;