Skip to content

Commit 29354dd

Browse files
Add style for trait aliases
1 parent 74e97f3 commit 29354dd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ pre {
9494
}
9595
.content .highlighted a, .content .highlighted span { color: #eee !important; }
9696
.content .highlighted.trait { background-color: #013191; }
97+
.content .highlighted.traitalias { background-color: #013191; }
9798
.content .highlighted.mod,
9899
.content .highlighted.externcrate { background-color: #afc6e4; }
99100
.content .highlighted.mod { background-color: #803a1b; }
@@ -128,6 +129,7 @@ pre {
128129
.content span.externcrate,
129130
.content span.mod, .content a.mod, .block a.current.mod { color: #bda000; }
130131
.content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
132+
.content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b397da; }
131133
.content span.fn, .content a.fn, .block a.current.fn,
132134
.content span.method, .content a.method, .block a.current.method,
133135
.content span.tymethod, .content a.tymethod, .block a.current.tymethod,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ pre {
9696
}
9797
.content .highlighted a, .content .highlighted span { color: #000 !important; }
9898
.content .highlighted.trait { background-color: #c7b6ff; }
99+
.content .highlighted.traitalias { background-color: #c7b6ff; }
99100
.content .highlighted.mod,
100101
.content .highlighted.externcrate { background-color: #afc6e4; }
101102
.content .highlighted.enum { background-color: #b4d1b9; }
@@ -128,6 +129,7 @@ pre {
128129
.content span.externcrate,
129130
.content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
130131
.content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
132+
.content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #6841f1; }
131133
.content span.fn, .content a.fn, .block a.current.fn,
132134
.content span.method, .content a.method, .block a.current.method,
133135
.content span.tymethod, .content a.tymethod, .block a.current.tymethod,

0 commit comments

Comments
 (0)