Skip to content

Commit 1c3aedd

Browse files
Fix code blocks color in ayu theme
1 parent ac50a53 commit 1c3aedd

File tree

2 files changed

+3
-1
lines changed
  • src
    • librustdoc/html/static/css/themes
    • test/rustdoc-gui/src/test_docs

2 files changed

+3
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ h4 {
4040
.code-header {
4141
color: #e6e1cf;
4242
}
43-
pre > code {
43+
.docblock pre > code, pre > code {
4444
color: #e6e1cf;
4545
}
4646
span code {

src/test/rustdoc-gui/src/test_docs/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ use std::fmt;
2525
/// ```ignore (it's a test)
2626
/// Let's say I'm just some text will ya?
2727
/// ```
28+
///
29+
/// An inlined `code`!
2830
pub fn foo() {}
2931

3032
/// Just a normal struct.

0 commit comments

Comments
 (0)