File tree 4 files changed +7
-11
lines changed
src/librustdoc/html/static/css
4 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -1071,6 +1071,10 @@ pre.rust .doccomment {
1071
1071
color : var (--code-highlight-doc-comment-color );
1072
1072
}
1073
1073
1074
+ .rustdoc .source .example-wrap pre .rust a {
1075
+ background : var (--codeblock-link-background );
1076
+ }
1077
+
1074
1078
.example-wrap .compile_fail ,
1075
1079
.example-wrap .should_panic {
1076
1080
border-left : 2px solid var (--codeblock-error-color );
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ Original by Dempfi (https://github.com/dempfi/ayu)
88
88
--source-sidebar-background-selected : # 14191f ;
89
89
--source-sidebar-background-hover : # 14191f ;
90
90
--table-alt-row-background-color : # 191f26 ;
91
+ --codeblock-link-background : # 333 ;
91
92
}
92
93
93
94
h1 , h2 , h3 , h4 {
@@ -154,9 +155,6 @@ pre, .rustdoc.source .example-wrap {
154
155
.sidebar h3 a {
155
156
color : white;
156
157
}
157
- body .source .example-wrap pre .rust a {
158
- background : # 333 ;
159
- }
160
158
161
159
.result-name .primitive > i , .result-name .keyword > i {
162
160
color : # 788797 ;
Original file line number Diff line number Diff line change 83
83
--source-sidebar-background-selected : # 333 ;
84
84
--source-sidebar-background-hover : # 444 ;
85
85
--table-alt-row-background-color : # 2A2A2A ;
86
- }
87
-
88
- body .source .example-wrap pre .rust a {
89
- background : # 333 ;
86
+ --codeblock-link-background : # 333 ;
90
87
}
91
88
92
89
# titles > button : not (.selected ) {
Original file line number Diff line number Diff line change 80
80
--source-sidebar-background-selected : # fff ;
81
81
--source-sidebar-background-hover : # e0e0e0 ;
82
82
--table-alt-row-background-color : # F5F5F5 ;
83
- }
84
-
85
- body .source .example-wrap pre .rust a {
86
- background : # eee ;
83
+ --codeblock-link-background : # eee ;
87
84
}
88
85
89
86
# titles > button : not (.selected ) {
You can’t perform that action at this time.
0 commit comments