Skip to content

Commit

Permalink
fixed code samples background (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ignatov-parc committed Sep 12, 2024
1 parent 29696f8 commit 5ccf25a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@ html[data-theme='dark']
}

/* Fixes https://github.com/rohit-gohri/redocusaurus/issues/306 */
html[data-theme='dark']
.redocusaurus
html[data-theme='dark']
.redocusaurus
div[id^='tag']
button:has(span):has(.operation-type) {
background-color: var(--ifm-color-gray-800);
}

html[data-theme='dark']
.redocusaurus
div[id^='tag']
html[data-theme='dark']
.redocusaurus
div[id^='tag']
button + div {
background-color: var(--ifm-color-emphasis-0);
}
Expand All @@ -146,20 +146,22 @@ html[data-theme='dark']
margin-bottom: 10px;
}

/*
/*
* Code Samples
* @see https://github.com/rohit-gohri/redocusaurus/issues/217
*/
html:not([data-theme='dark'])
.redocusaurus
div[id^='react-tabs']
> div:nth-child(1)
> pre:nth-child(2) {
[role='tabpanel']
pre {
background-color: transparent;
}

/** https://github.com/rohit-gohri/redocusaurus/issues/45 */
html:not([data-theme='dark']) .redocusaurus div[id^='react-tabs'] code {
html:not([data-theme='dark'])
.redocusaurus
[role='tabpanel']
code {
color: var(--ifm-color-emphasis-0);
}

Expand Down

0 comments on commit 5ccf25a

Please sign in to comment.