| 1 |
.theme-toggle.theme-toggle--reversed .theme-toggle__inner-moon { |
| 2 |
transform: scale(-1, 1); |
| 3 |
} |
| 4 |
.theme-toggle { |
| 5 |
--theme-toggle__inner-moon--duration: 500ms; |
| 6 |
} |
| 7 |
.theme-toggle__inner-moon path { |
| 8 |
transform-origin: center; |
| 9 |
transition: transform var(--theme-toggle__inner-moon--duration) |
| 10 |
cubic-bezier(0, 0, 0.15, 1.25); |
| 11 |
} |
| 12 |
.theme-toggle__inner-moon circle { |
| 13 |
transition: transform calc(var(--theme-toggle__inner-moon--duration) / 1.5) |
| 14 |
cubic-bezier(0.4, 0, 0.2, 1); |
| 15 |
} |
| 16 |
.theme-toggle input[type="checkbox"]:checked ~ .theme-toggle__inner-moon path, |
| 17 |
.darkify_dark_mode_enabled .theme-toggle:not(label) .theme-toggle__inner-moon path { |
| 18 |
transform: rotate(180deg); |
| 19 |
} |
| 20 |
.theme-toggle input[type="checkbox"]:checked ~ .theme-toggle__inner-moon circle, |
| 21 |
.darkify_dark_mode_enabled .theme-toggle:not(label) |
| 22 |
.theme-toggle__inner-moon |
| 23 |
circle { |
| 24 |
transform: translate3d(15%, 0, 0); |
| 25 |
} |
| 26 |
.theme-toggle { |
| 27 |
border: none; |
| 28 |
background: 0 0; |
| 29 |
cursor: pointer; |
| 30 |
} |
| 31 |
.theme-toggle input[type="checkbox"] { |
| 32 |
display: none; |
| 33 |
} |
| 34 |
.theme-toggle .theme-toggle-sr { |
| 35 |
position: absolute; |
| 36 |
width: 1px; |
| 37 |
height: 1px; |
| 38 |
padding: 0; |
| 39 |
margin: -1px; |
| 40 |
overflow: hidden; |
| 41 |
clip: rect(0, 0, 0, 0); |
| 42 |
white-space: nowrap; |
| 43 |
border-width: 0; |
| 44 |
} |
| 45 |
@media (prefers-reduced-motion: reduce) { |
| 46 |
.theme-toggle:not(.theme-toggle--force-motion) * { |
| 47 |
transition: none !important; |
| 48 |
} |
| 49 |
} |
| 50 |
|