Skip to content

Commit

Permalink
Merge branch 'refs/heads/pr/scrollbar-color-002' into dev-local-202406
Browse files Browse the repository at this point in the history
* refs/heads/pr/scrollbar-color-002:
  chore: tweak scrollbar color with the dark theme
  • Loading branch information
bluelovers committed Jun 11, 2024
2 parents 5e16914 + b6fee9b commit aa36e20
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ div.gradio-image button[aria-label="Edit"] {

}


html:has(body.dark) {
/**
* The CSS variables --body-background-fill and --body-text-color are not apply to the HTML element with the dark theme
*/
/* scrollbar-color: var(--body-text-color) var(--body-background-fill) */
scrollbar-color: #f3f4f6 #0b0f19;
}

body {
background: var(--body-background-fill, #0b0f19);
}

.block.padded:not(.gradio-accordion) {
padding: 0 !important;
}
Expand Down

0 comments on commit aa36e20

Please sign in to comment.