| 1 |
.theme-toggle.theme-toggle--reversed .theme-toggle__classic { |
| 2 |
transform: scale(-1, 1); |
| 3 |
} |
| 4 |
.theme-toggle { |
| 5 |
--theme-toggle__classic--duration: 500ms; |
| 6 |
} |
| 7 |
.theme-toggle__classic path { |
| 8 |
transition-timing-function: cubic-bezier(0, 0, 0.15, 1.25); |
| 9 |
transform-origin: center; |
| 10 |
transition-duration: calc(var(--theme-toggle__classic--duration) * 0.8); |
| 11 |
} |
| 12 |
.theme-toggle__classic g path { |
| 13 |
transition-property: opacity, transform; |
| 14 |
transition-delay: calc(var(--theme-toggle__classic--duration) * 0.2); |
| 15 |
} |
| 16 |
.theme-toggle__classic :first-child path { |
| 17 |
transition-property: transform, d; |
| 18 |
} |
| 19 |
.theme-toggle input[type="checkbox"]:checked ~ .theme-toggle__classic g path, |
| 20 |
.darkify_dark_mode_enabled .theme-toggle:not(label) .theme-toggle__classic g path { |
| 21 |
transform: scale(0.5) rotate(45deg); |
| 22 |
opacity: 0; |
| 23 |
transition-delay: 0s; |
| 24 |
} |
| 25 |
.theme-toggle |
| 26 |
input[type="checkbox"]:checked |
| 27 |
~ .theme-toggle__classic |
| 28 |
:first-child |
| 29 |
path, |
| 30 |
.darkify_dark_mode_enabled .theme-toggle:not(label) |
| 31 |
.theme-toggle__classic |
| 32 |
:first-child |
| 33 |
path { |
| 34 |
d: path("M-12 5h30a1 1 0 0 0 9 13v24h-39Z"); |
| 35 |
transition-delay: calc(var(--theme-toggle__classic--duration) * 0.2); |
| 36 |
} |
| 37 |
@supports not (d: path("")) { |
| 38 |
.theme-toggle |
| 39 |
input[type="checkbox"]:checked |
| 40 |
~ .theme-toggle__classic |
| 41 |
:first-child |
| 42 |
path, |
| 43 |
.darkify_dark_mode_enabled .theme-toggle:not(label) |
| 44 |
.theme-toggle__classic |
| 45 |
:first-child |
| 46 |
path { |
| 47 |
transform: translate3d(-12px, 10px, 0); |
| 48 |
} |
| 49 |
} |
| 50 |
.theme-toggle { |
| 51 |
border: none; |
| 52 |
background: 0 0; |
| 53 |
cursor: pointer; |
| 54 |
} |
| 55 |
.theme-toggle input[type="checkbox"] { |
| 56 |
display: none; |
| 57 |
} |
| 58 |
.theme-toggle .theme-toggle-sr { |
| 59 |
position: absolute; |
| 60 |
width: 1px; |
| 61 |
height: 1px; |
| 62 |
padding: 0; |
| 63 |
margin: -1px; |
| 64 |
overflow: hidden; |
| 65 |
clip: rect(0, 0, 0, 0); |
| 66 |
white-space: nowrap; |
| 67 |
border-width: 0; |
| 68 |
} |
| 69 |
@media (prefers-reduced-motion: reduce) { |
| 70 |
.theme-toggle:not(.theme-toggle--force-motion) * { |
| 71 |
transition: none !important; |
| 72 |
} |
| 73 |
} |
| 74 |
|