Skip to content

Commit

Permalink
Fix invalid inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 11, 2016
1 parent 7d8e6dd commit 7cd8912
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/render.rs
Expand Up @@ -2258,8 +2258,8 @@ fn item_struct(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
if fields.peek().is_some() {
write!(w, "<h2 class='fields'>Fields</h2>")?;
for (field, ty) in fields {
write!(w, "<span id='{shortty}.{name}'><code>{name}: {ty}</code></span>
<span class='stab {stab}'></span>",
write!(w, "<span id='{shortty}.{name}' class='{shortty}'><code>{name}: {ty}</code>
</span><span class='stab {stab}'></span>",
shortty = ItemType::StructField,
stab = field.stability_class(),
name = field.name.as_ref().unwrap(),
Expand Down
4 changes: 4 additions & 0 deletions src/librustdoc/html/static/rustdoc.css
Expand Up @@ -659,6 +659,10 @@ span.since {
margin-bottom: 25px;
}

.variant, .structfield {
display: block;
}

:target > code {
background: #FDFFD3;
}
Expand Down

0 comments on commit 7cd8912

Please sign in to comment.