Skip to content

Commit 9c332a7

Browse files
committed
DOC-13347 fix unreadable inline example
Our highlightjs style breaks redocly inline examples, so we ensure it is ignored. Q: should we instead disable highlightjs for these pages?
1 parent b5f8b38 commit 9c332a7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/css/base.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pre {
6969
code {
7070
background-color: var(--color-brand-peach);
7171
word-spacing: -0.125em;
72-
color: var(--color-brand-gray1);
72+
color: red; /* var(--color-brand-gray1); */
7373
}
7474

7575
/* special case inside redocly div to avoid overwriting redocly managed code colours */
@@ -78,6 +78,11 @@ code {
7878
color: inherit;
7979
}
8080

81+
#redoc .hljs-comment,
82+
#redoc .hljs-meta {
83+
color: inherit;
84+
}
85+
8186
a code {
8287
color: var(--color-link);
8388
background-color: transparent;

src/css/doc.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@
114114
visibility: visible;
115115
}
116116

117+
.three-column-row h1:hover a.anchor,
118+
.three-column-row h2:hover a.anchor,
119+
.three-column-row h3:hover a.anchor,
120+
.three-column-row h4:hover a.anchor,
121+
.three-column-row h5:hover a.anchor,
122+
.three-column-row h6:hover a.anchor {
123+
visibility: hidden;
124+
}
125+
117126
.doc i.fa {
118127
font-style: normal;
119128
}

0 commit comments

Comments
 (0)