Skip to content

Commit 64d6178

Browse files
committed
rustdoc: A quick CSS tweak for stability and source links.
this makes a source link much more visible (and link-like), and makes a stability index more consistent for the top-level headings and the method signature. this should be better than nothing, but further adjustments and/or redesigns are welcomed.
1 parent bad1dab commit 64d6178

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/librustdoc/html/static/main.css

+10-4
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,11 @@ nav.sub {
219219

220220
.content .source-link {
221221
float: right;
222-
font-size: 23px;
222+
font-size: 90%;
223+
font-weight: 400;
224+
border-radius: 3px;
225+
padding: 2px 10px;
226+
background-color: #ddd;
223227
}
224228

225229
.content table {
@@ -361,9 +365,11 @@ a {
361365
}
362366

363367
.stability {
364-
border-left: 6px solid #000;
365-
border-radius: 3px;
366-
padding: 2px 10px;
368+
font-size: 90%;
369+
font-weight: 400;
370+
font-style: italic;
371+
border-bottom: 2px solid #000;
372+
padding: 2px 5px;
367373
text-transform: lowercase;
368374
margin-left: 10px;
369375
}

0 commit comments

Comments
 (0)