Skip to content

Commit ef4b921

Browse files
committed
Restore colour to rustdoc, add colour to ffi functions and methods
1 parent b75b0f7 commit ef4b921

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/librustdoc/html/static/main.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ nav.sub {
229229
.content .highlighted.enum { background-color: #b4d1b9; }
230230
.content .highlighted.struct { background-color: #e7b1a0; }
231231
.content .highlighted.fn { background-color: #c6afb3; }
232+
.content .highlighted.method { background-color: #c6afb3; }
233+
.content .highlighted.ffi { background-color: #c6afb3; }
232234

233235
.docblock.short.nowrap {
234236
display: block;
@@ -336,11 +338,13 @@ a {
336338
p a { color: #4e8bca; }
337339
p a:hover { text-decoration: underline; }
338340

339-
.content span.trait, .block a.current.trait { color: #ed9603; }
340-
.content span.mod, .block a.current.mod { color: #4d76ae; }
341-
.content span.enum, .block a.current.enum { color: #5e9766; }
342-
.content span.struct, .block a.current.struct { color: #e53700; }
343-
.content span.fn, .block a.current.fn { color: #8c6067; }
341+
.content span.trait, .content a.trait, .block a.current.trait { color: #ed9603; }
342+
.content span.mod, .content a.mod, block a.current.mod { color: #4d76ae; }
343+
.content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
344+
.content span.struct, .content a.struct, .block a.current.struct { color: #e53700; }
345+
.content span.fn, .content a.fn, .block a.current.fn { color: #8c6067; }
346+
.content span.method, .content a.method, .block a.current.method { color: #8c6067; }
347+
.content span.ffi, .content a.ffi, .block a.current.ffi { color: #8c6067; }
344348
.content .fnname { color: #8c6067; }
345349

346350
.search-input {

0 commit comments

Comments
 (0)