Skip to content

Commit 8b8d044

Browse files
Fix ugly hover in sidebar
1 parent 56733bc commit 8b8d044

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

src/librustdoc/html/static/rustdoc.css

+22-8
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,19 @@ nav.sub {
181181
overflow: auto;
182182
}
183183

184-
.sidebar .current {
184+
.sidebar .block > ul > li {
185185
margin-right: -20px;
186186
}
187187

188-
.content, nav { max-width: 960px; }
188+
.content, nav {
189+
max-width: 960px;
190+
}
189191

190192
/* Everything else */
191193

192-
.js-only, .hidden { display: none !important; }
194+
.js-only, .hidden {
195+
display: none !important;
196+
}
193197

194198
.sidebar img {
195199
margin: 20px auto;
@@ -218,7 +222,9 @@ nav.sub {
218222
border: none;
219223
}
220224

221-
.location a:first-child { font-weight: 500; }
225+
.location a:first-child {
226+
font-weight: 500;
227+
}
222228

223229
.block {
224230
padding: 0;
@@ -299,7 +305,9 @@ nav.sub {
299305
-ms-user-select: none;
300306
user-select: none;
301307
}
302-
.line-numbers span { cursor: pointer; }
308+
.line-numbers span {
309+
cursor: pointer;
310+
}
303311

304312
.docblock-short p {
305313
display: inline;
@@ -317,7 +325,9 @@ nav.sub {
317325
text-overflow: ellipsis;
318326
margin: 0;
319327
}
320-
.docblock-short code { white-space: nowrap; }
328+
.docblock-short code {
329+
white-space: nowrap;
330+
}
321331

322332
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
323333
border-bottom: 1px solid;
@@ -384,7 +394,9 @@ h4 > code, h3 > code, .invisible > code {
384394
display: inline-block;
385395
}
386396

387-
#main { position: relative; }
397+
#main {
398+
position: relative;
399+
}
388400
#main > .since {
389401
top: inherit;
390402
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -428,7 +440,9 @@ h4 > code, h3 > code, .invisible > code {
428440
padding: 0;
429441
}
430442

431-
.content .item-list li { margin-bottom: 1em; }
443+
.content .item-list li {
444+
margin-bottom: 1em;
445+
}
432446

433447
.content .multi-column {
434448
-moz-column-count: 5;

0 commit comments

Comments
 (0)