Skip to content

Commit 7ce7fe7

Browse files
Add background-color on clickable definitions in source code
1 parent 3b5df01 commit 7ce7fe7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/librustdoc/html/static/css/themes/ayu.css

+3
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ nav.main .separator {
216216
a {
217217
color: #c5c5c5;
218218
}
219+
body.source .example-wrap pre.rust a {
220+
background: #c5c5c5;
221+
}
219222

220223
.docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
221224
.docblock-short a:not(.srclink):not(.test-arrow), .item-info a,

src/librustdoc/html/static/css/themes/dark.css

+3
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ nav.main .separator {
177177
a {
178178
color: #ddd;
179179
}
180+
body.source .example-wrap pre.rust a {
181+
background: #333;
182+
}
180183

181184
.docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
182185
.docblock-short a:not(.srclink):not(.test-arrow), .item-info a,

src/librustdoc/html/static/css/themes/light.css

+3
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ nav.main .separator {
172172
a {
173173
color: #000;
174174
}
175+
body.source .example-wrap pre.rust a {
176+
background: #eee;
177+
}
175178

176179
.docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
177180
.docblock-short a:not(.srclink):not(.test-arrow), .item-info a,

0 commit comments

Comments
 (0)