Skip to content

Commit

Permalink
Add night version of the output scrollbar (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko authored Sep 21, 2022
1 parent 04a5886 commit 578de37
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/css/content/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@

.content-inner pre code::-webkit-scrollbar-thumb {
border-radius: 0.25rem;
background-color: var(--gray300);
background-color: var(--codeScrollThumb);
}

.content-inner pre code::-webkit-scrollbar-track {
background-color: var(--gray100);
background-color: var(--codeScrollBackground);
}

.content-inner pre code::-webkit-scrollbar-corner {
background-color: var(--gray100);
background-color: var(--codeScrollBackground);
}

.content-inner pre code.output {
Expand Down
2 changes: 2 additions & 0 deletions assets/css/custom-props/theme-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ body.dark {
--codeBorder: var(--gray700);
--inlineCodeBackground: var(--gray50);
--inlineCodeBorder: var(--gray100);
--codeScrollThumb: var(--gray500);
--codeScrollBackground: var(--codeBorder);

--bottomActionsBtnBorder: var(--white-opacity-10);
--bottomActionsBtnSubheader: var(--main);
Expand Down
2 changes: 2 additions & 0 deletions assets/css/custom-props/theme-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
--codeBorder: var(--gray100);
--inlineCodeBackground: var(--codeBackground);
--inlineCodeBorder: var(--codeBorder);
--codeScrollThumb: var(--gray300);
--codeScrollBackground: var(--codeBorder);

--bottomActionsBtnBorder: var(--black-opacity-10);
--bottomActionsBtnSubheader: var(--main-darkened-10);
Expand Down

0 comments on commit 578de37

Please sign in to comment.