Skip to content

Commit

Permalink
Fix: Better global names and add support for firefox scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
SlyBouhafs committed Nov 20, 2020
1 parent 6a9ac5c commit 2ff3fb0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions resources/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
--ls-page-inline-code-color: var(--ls-primary-text-color);
--ls-page-inline-code-bg-color: #01222a;

--ls-scrollbar-color: #001F27;
--ls-scrollbar-forground-color: #001F27;
--ls-scrollbar-background-color: var(--ls-primary-background-color);
--ls-scrollbar-thumb-hover-color: #b4b4b466;

--ls-head-text-color: var(--ls-link-text-color);
Expand Down Expand Up @@ -82,6 +83,10 @@
--ls-page-inline-code-color: var(--ls-primary-text-color);
--ls-page-inline-code-bg-color: #eeeeee;

--ls-scrollbar-forground-color: var(--ls-primary-text-color)
--ls-scrollbar-background-color: var(--ls-primary-background-color);
--ls-scrollbar-thumb-hover-color: var(--ls-secondary-text-color);

--ls-head-text-color: var(--ls-link-text-color);
--ls-icon-color: #6b7280;
--ls-search-icon-color: var(--ls-icon-color);
Expand Down Expand Up @@ -724,7 +729,7 @@ dt {
}

:root {
scrollbar-color: #0079D3 #2E3645 !important;
scrollbar-color: var(--ls-scrollbar-forground-color) var(--ls-scrollbar-background-color) !important;
scrollbar-width: thin !important;
}

Expand All @@ -747,13 +752,13 @@ blockquote {
}

.dark-theme ::-webkit-scrollbar, .dark-theme ::-webkit-scrollbar-track-piece {
background-color: var(--ls-scrollbar-color);
background-color: var(--ls-scrollbar-background-color);
border: 4px solid;
border-color: var(--ls-scrollbar-color);
border-color: var(--ls-scrollbar-background-color);
}

.dark-theme ::-webkit-scrollbar-thumb {
background-color: var(--ls-secondary-background-color);
background-color: var(--ls-scrollbar-forground-color);
background-clip: padding-box;
min-height: 28px;
}
Expand Down

0 comments on commit 2ff3fb0

Please sign in to comment.