Skip to content

Commit

Permalink
cleanup css vars
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Apr 9, 2024
1 parent 07a2d98 commit 1eda770
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 0 additions & 6 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
*/
--site-primary-hue-saturation: 167 68%;
--site-primary-hue-saturation-light: 167 56%; /* do we really need this extra one? */
--site-color-favorite-background: #f6fdfd;
--site-color-tooltip: #fff;
--site-color-tooltip-background: #353738;
--site-color-checkbox-checked-bg: hsl(167deg 56% 73% / 25%);
--site-color-feedback-background: #f0f8ff;
--docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 10%);
/* Use a darker color to ensure contrast, ideally we don't need important */
Expand All @@ -27,8 +23,6 @@

html[data-theme='dark'] {
--site-color-feedback-background: #2a2929;
--site-color-favorite-background: #1d1e1e;
--site-color-checkbox-checked-bg: hsl(167deg 56% 73% / 10%);
--docusaurus-highlighted-code-line-bg: rgb(66 66 66 / 35%);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
.showcaseFavorite {
padding-top: 2rem;
padding-bottom: 2rem;
background-color: var(--site-color-favorite-background);
background-color: #f6fdfd;
}

html[data-theme='dark'] .showcaseFavorite {
background-color: #1d1e1e;
}

.headingFavorites {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ input:focus-visible + .checkboxLabel {

input:checked + .checkboxLabel {
opacity: 0.9;
background-color: var(--site-color-checkbox-checked-bg);
background-color: hsl(167deg 56% 73% / 25%);
border: 2px solid var(--ifm-color-primary-darkest);
}

input:checked + .checkboxLabel:hover {
opacity: 0.75;
box-shadow: 0 0 2px 1px var(--ifm-color-primary-dark);
}

html[data-theme='dark'] input:checked + .checkboxLabel {
background-color: hsl(167deg 56% 73% / 10%);
}

0 comments on commit 1eda770

Please sign in to comment.