| 1 |
.theme-toggle.theme-toggle--reversed .theme-toggle__within { |
| 2 |
transform: scale(-1, 1); |
| 3 |
} |
| 4 |
.theme-toggle { |
| 5 |
--theme-toggle__within--duration: 500ms; |
| 6 |
} |
| 7 |
.theme-toggle__within * { |
| 8 |
transform-origin: center; |
| 9 |
transition: transform calc(var(--theme-toggle__within--duration)) |
| 10 |
cubic-bezier(0, 0, 0, 1.25); |
| 11 |
} |
| 12 |
.theme-toggle |
| 13 |
input[type="checkbox"]:checked |
| 14 |
~ .theme-toggle__within |
| 15 |
.theme-toggle__within__circle, |
| 16 |
.darkify_dark_mode_enabled |
| 17 |
.theme-toggle:not(label) |
| 18 |
.theme-toggle__within |
| 19 |
.theme-toggle__within__circle { |
| 20 |
transform: scale(1.5); |
| 21 |
} |
| 22 |
.theme-toggle |
| 23 |
input[type="checkbox"]:checked |
| 24 |
~ .theme-toggle__within |
| 25 |
.theme-toggle__within__inner, |
| 26 |
.darkify_dark_mode_enabled |
| 27 |
.theme-toggle:not(label) |
| 28 |
.theme-toggle__within |
| 29 |
.theme-toggle__within__inner { |
| 30 |
transform: translate3d(3px, -3px, 0) scale(1.2); |
| 31 |
} |
| 32 |
.theme-toggle input[type="checkbox"]:checked ~ .theme-toggle__within g path, |
| 33 |
.darkify_dark_mode_enabled |
| 34 |
.theme-toggle:not(label) |
| 35 |
.theme-toggle__within |
| 36 |
g |
| 37 |
path { |
| 38 |
transform: scale(0.65); |
| 39 |
} |
| 40 |
.theme-toggle { |
| 41 |
border: none; |
| 42 |
background: 0 0; |
| 43 |
cursor: pointer; |
| 44 |
} |
| 45 |
.theme-toggle input[type="checkbox"] { |
| 46 |
display: none; |
| 47 |
} |
| 48 |
.theme-toggle .theme-toggle-sr { |
| 49 |
position: absolute; |
| 50 |
width: 1px; |
| 51 |
height: 1px; |
| 52 |
padding: 0; |
| 53 |
margin: -1px; |
| 54 |
overflow: hidden; |
| 55 |
clip: rect(0, 0, 0, 0); |
| 56 |
white-space: nowrap; |
| 57 |
border-width: 0; |
| 58 |
} |
| 59 |
@media (prefers-reduced-motion: reduce) { |
| 60 |
.theme-toggle:not(.theme-toggle--force-motion) * { |
| 61 |
transition: none !important; |
| 62 |
} |
| 63 |
} |
| 64 |
|