Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuireu committed Sep 18, 2024
1 parent 1c840a0 commit 4f8d9b1
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 419 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/cloudflare": "^11.0.4",
"@astrojs/cloudflare": "^11.0.5",
"@astrojs/mdx": "^3.1.6",
"@astrojs/partytown": "^2.1.2",
"@astrojs/react": "^3.6.2",
Expand All @@ -55,8 +55,8 @@
"@fontsource/baskervville": "^5.1.0",
"@hookform/resolvers": "^3.9.0",
"@million/lint": "1.0.0-rc.84",
"algoliasearch": "^5.4.1",
"astro": "^4.15.6",
"algoliasearch": "^5.4.3",
"astro": "^4.15.7",
"clsx": "^2.1.1",
"contentful": "^10.15.1",
"firebase": "^10.13.1",
Expand Down Expand Up @@ -90,7 +90,7 @@
"@types/add": "^2.0.3",
"@types/markdown-it": "^14.1.2",
"@types/node": "^22.5.5",
"@types/react": "^18.3.6",
"@types/react": "^18.3.7",
"@types/react-dom": "^18.3.0",
"@types/three": "^0.168.0",
"conventional-changelog-atom": "^5.0.0",
Expand Down
25 changes: 12 additions & 13 deletions src/ui/modules/core/components/themeToggle/theme-toggle.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* stylelint-disable no-descending-specificity */
.theme-toggle_wrapper {
position: absolute;
right: 2rem;
Expand Down Expand Up @@ -44,37 +43,37 @@
transition-property: transform, d;
}

.--toggled.theme-toggle &,
.--is-dark.theme-toggle:not(.--untoggled) & {
.--is-toggled.theme-toggle &,
.--is-dark.theme-toggle:not(.--is-untoggled) & {
transition-delay: 0s;
transition-duration: var(--theme-toggle-animation-duration);
}

.--toggled.theme-toggle & > g > circle,
.--is-dark.theme-toggle:not(.--untoggled) & > g > circle {
.--is-toggled.theme-toggle & > g > circle,
.--is-dark.theme-toggle:not(.--is-untoggled) & > g > circle {
transform: scale(1.4);
}

.--is-dark.theme-toggle:not(.--untoggled) & > g > circle,
.--toggled.theme-toggle & > g g circle {
.--is-dark.theme-toggle:not(.--is-untoggled) & > g > circle,
.--is-toggled.theme-toggle & > g g circle {
transform: scale(0);
transition-delay: 0s;
transition-duration: calc(var(--theme-toggle-animation-duration) * 0.4);
}

.--toggled.theme-toggle & > *:first-child,
.--is-dark.theme-toggle:not(.--untoggled) & > *:first-child {
.---is-toggled.theme-toggle & > *:first-child,
.--is-dark.theme-toggle:not(.--is-untoggled) & > *:first-child {
rotate: -0.25turn;
}

.--toggled.theme-toggle & > *:first-child path,
.--is-dark.theme-toggle:not(.--untoggled) & > *:first-child path {
.--is-toggled.theme-toggle & > *:first-child path,
.--is-dark.theme-toggle:not(.--is-untoggled) & > *:first-child path {
d: path("M-12-14h42v30a1 1 0 00-16 13H0Z");
}

@supports not (d: path("")) {
.--toggled.theme-toggle & > *:first-child path,
.--is-dark.theme-toggle:not(.--untoggled) & > *:first-child path {
.--is-toggled.theme-toggle & > *:first-child path,
.--is-dark.theme-toggle:not(.--is-untoggled) & > *:first-child path {
transform: translate3d(-0.75rem, 1rem, 0);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export function initializeThemeSetter() {

THEME_INPUT.checked = isDarkMode;
TOGGLE.classList.toggle("dark", isDarkMode);
TOGGLE.classList.toggle("--toggled", isDarkMode);
TOGGLE.classList.toggle("--untoggled", !isDarkMode);
TOGGLE.classList.toggle("--is-toggled", isDarkMode);
TOGGLE.classList.toggle("--is-untoggled", !isDarkMode);
};

applyTheme({ theme: initialTheme, document });
Expand Down
Loading

0 comments on commit 4f8d9b1

Please sign in to comment.