Skip to content

Commit

Permalink
Auto merge of #36293 - liigo:docblock-short, r=steveklabnik
Browse files Browse the repository at this point in the history
  • Loading branch information
bors authored Sep 14, 2016
2 parents 5bdf79b + 26d5f99 commit 6ffdda1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,7 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
<tr class='{stab} module-item'>
<td><a class='{class}' href='{href}'
title='{title}'>{name}</a></td>
<td class='docblock short'>
<td class='docblock-short'>
{stab_docs} {docs}
</td>
</tr>",
Expand Down
14 changes: 7 additions & 7 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ code, pre {
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
white-space: pre-wrap;
}
.docblock code {
.docblock code, .docblock-short code {
border-radius: 3px;
padding: 0 0.2em;
}
.docblock pre code {
.docblock pre code, .docblock-short pre code {
padding: 0;
}
pre {
Expand Down Expand Up @@ -239,23 +239,23 @@ nav.sub {
}
.line-numbers span { cursor: pointer; }

.docblock.short p {
.docblock-short p {
display: inline;
}

.docblock.short.nowrap {
.docblock-short.nowrap {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.docblock.short p {
.docblock-short p {
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
}
.docblock.short code { white-space: nowrap; }
.docblock-short code { white-space: nowrap; }

.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
border-bottom: 1px solid;
Expand Down Expand Up @@ -409,7 +409,7 @@ a {
background: transparent;
}

.docblock a:hover, .stability a {
.docblock a:hover, .docblock-short a:hover, .stability a {
text-decoration: underline;
}

Expand Down
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ div.stability > em > code {
background-color: initial;
}

.docblock code {
.docblock code, .docblock-short code {
background-color: #F5F5F5;
}
pre {
Expand Down Expand Up @@ -113,7 +113,7 @@ a {
color: #000;
}

.docblock a, .stability a {
.docblock a, .docblock-short a, .stability a {
color: #3873AD;
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc/issue-32374.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#![unstable(feature="test", issue = "32374")]

// @has issue_32374/index.html '//*[@class="docblock short"]' \
// @has issue_32374/index.html '//*[@class="docblock-short"]' \
// '[Deprecated] [Unstable]'

// @has issue_32374/struct.T.html '//*[@class="stab deprecated"]' \
Expand Down

0 comments on commit 6ffdda1

Please sign in to comment.