Skip to content

Commit

Permalink
Rollup merge of #47951 - GuillaumeGomez:sidebar-hover, r=QuietMisdrea…
Browse files Browse the repository at this point in the history
…vus Fix ugly hover in sidebar In the sidebar, the elements under `Structs`, `Enums`... have an ugly hover if they're not selected. This fixes it. r? @QuietMisdreavus
  • Loading branch information
kennytm committed Feb 2, 2018
2 parents 9d995d2 + 8b8d044 commit 8d1586d
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,19 @@ nav.sub {
overflow: auto;
}

.sidebar .current {
.sidebar .block > ul > li {
margin-right: -20px;
}

.content, nav { max-width: 960px; }
.content, nav {
max-width: 960px;
}

/* Everything else */

.js-only, .hidden { display: none !important; }
.js-only, .hidden {
display: none !important;
}

.sidebar img {
margin: 20px auto;
Expand Down Expand Up @@ -218,7 +222,9 @@ nav.sub {
border: none;
}

.location a:first-child { font-weight: 500; }
.location a:first-child {
font-weight: 500;
}

.block {
padding: 0;
Expand Down Expand Up @@ -299,7 +305,9 @@ nav.sub {
-ms-user-select: none;
user-select: none;
}
.line-numbers span { cursor: pointer; }
.line-numbers span {
cursor: pointer;
}

.docblock-short p {
display: inline;
Expand All @@ -317,7 +325,9 @@ nav.sub {
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 @@ -384,7 +394,9 @@ h4 > code, h3 > code, .invisible > code {
display: inline-block;
}

#main { position: relative; }
#main {
position: relative;
}
#main > .since {
top: inherit;
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
Expand Down Expand Up @@ -428,7 +440,9 @@ h4 > code, h3 > code, .invisible > code {
padding: 0;
}

.content .item-list li { margin-bottom: 1em; }
.content .item-list li {
margin-bottom: 1em;
}

.content .multi-column {
-moz-column-count: 5;
Expand Down

0 comments on commit 8d1586d

Please sign in to comment.