Rollup merge of #88111 - GuillaumeGomez:background-color-jump-to-def, r=jhpratt
Add background-color on clickable definitions in source code Someone suggested to add a decoration on clickable elements in the source code pages:    The idea is to not disturb the reading while telling the reader "you can click on this one", which is why it's not a text decoration. What do you think `@rust-lang/rustdoc` ? r? `@Nemo157`
This commit is contained in:
commit
75c6a9190d
@ -216,6 +216,9 @@ nav.main .separator {
|
||||
a {
|
||||
color: #c5c5c5;
|
||||
}
|
||||
body.source .example-wrap pre.rust a {
|
||||
background: #c5c5c5;
|
||||
}
|
||||
|
||||
.docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
|
||||
.docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
|
||||
|
@ -177,6 +177,9 @@ nav.main .separator {
|
||||
a {
|
||||
color: #ddd;
|
||||
}
|
||||
body.source .example-wrap pre.rust a {
|
||||
background: #333;
|
||||
}
|
||||
|
||||
.docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
|
||||
.docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
|
||||
|
@ -172,6 +172,9 @@ nav.main .separator {
|
||||
a {
|
||||
color: #000;
|
||||
}
|
||||
body.source .example-wrap pre.rust a {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
|
||||
.docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
|
||||
|
Loading…
x
Reference in New Issue
Block a user