Skip to content

Commit 1a13230

Browse files
authoredJul 12, 2022
Don't set color for code samples (#221)
* don't set color for code samples * docs(changeset): Fix code samples background color * update lockfile
1 parent 8a1db8a commit 1a13230

File tree

3 files changed

+1559
-1550
lines changed

3 files changed

+1559
-1550
lines changed
 

‎.changeset/forty-dryers-build.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'docusaurus-theme-redoc': patch
3+
---
4+
5+
Fix code samples background color

‎packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css

+6-2
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,18 @@ html[data-theme='dark']
131131
margin-bottom: 10px;
132132
}
133133

134-
/* Code Samples */
134+
/*
135+
* Code Samples
136+
* @see https://github.com/rohit-gohri/redocusaurus/issues/217
137+
*/
135138
html:not([data-theme='dark'])
136139
.redocusaurus
137140
div[id^='react-tabs']
138141
> div:nth-child(1)
139142
> pre:nth-child(2) {
140-
background-color: var(--ifm-background-color);
143+
background-color: transparent;
141144
}
145+
142146
/** https://github.com/rohit-gohri/redocusaurus/issues/45 */
143147
html:not([data-theme='dark']) .redocusaurus div[id^='react-tabs'] code {
144148
color: var(--ifm-color-emphasis-0);

0 commit comments

Comments
 (0)