PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.2.5
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.2.5
2.1.3 2.1.2 2.1.1 2.1.0 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 trunk 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 All 57 releases
darkify / public / css / switcher / around.css

around.css in Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) 1.2.5, at public/css/switcher/around.css

120 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .theme-toggle.theme-toggle--reversed .theme-toggle__around {
2 transform: scale(-1, 1);
3 }
4 .theme-toggle {
5 --theme-toggle__around--duration: 500ms;
6 }
7 .theme-toggle__around * {
8 transform-origin: center;
9 transition: transform calc(var(--theme-toggle__around--duration) * 0.6) ease;
10 }
11 .theme-toggle__around > g g circle {
12 transition-duration: calc(var(--theme-toggle__around--duration) * 0.2);
13 }
14 .theme-toggle__around > g g :nth-child(1) {
15 transition-delay: calc(var(--theme-toggle__around--duration) * 0.253);
16 }
17 .theme-toggle__around > g g :nth-child(2) {
18 transition-delay: calc(var(--theme-toggle__around--duration) * 0.348);
19 }
20 .theme-toggle__around > g g :nth-child(3) {
21 transition-delay: calc(var(--theme-toggle__around--duration) * 0.443);
22 }
23 .theme-toggle__around > g g :nth-child(4) {
24 transition-delay: calc(var(--theme-toggle__around--duration) * 0.538);
25 }
26 .theme-toggle__around > g g :nth-child(5) {
27 transition-delay: calc(var(--theme-toggle__around--duration) * 0.633);
28 }
29 .theme-toggle__around > g g :nth-child(6) {
30 transition-delay: calc(var(--theme-toggle__around--duration) * 0.728);
31 }
32 .theme-toggle__around > :first-child path {
33 transition-property: transform, d;
34 }
35 .theme-toggle input[type="checkbox"]:checked ~ .theme-toggle__around *,
36 .darkify_dark_mode_enabled .theme-toggle:not(label) .theme-toggle__around * {
37 transition-delay: 0s;
38 transition-duration: var(--theme-toggle__around--duration);
39 }
40 .theme-toggle
41 input[type="checkbox"]:checked
42 ~ .theme-toggle__around
43 > g
44 > circle,
45 .darkify_dark_mode_enabled .theme-toggle:not(label)
46 .theme-toggle__around
47 > g
48 > circle {
49 transform: scale(1.4);
50 }
51 .theme-toggle
52 input[type="checkbox"]:checked
53 ~ .theme-toggle__around
54 > g
55 g
56 circle,
57 .darkify_dark_mode_enabled .theme-toggle:not(label)
58 .theme-toggle__around
59 > g
60 g
61 circle {
62 transform: scale(0);
63 transition-duration: calc(var(--theme-toggle__around--duration) * 0.4);
64 }
65 .theme-toggle
66 input[type="checkbox"]:checked
67 ~ .theme-toggle__around
68 > :first-child,
69 .darkify_dark_mode_enabled .theme-toggle:not(label)
70 .theme-toggle__around
71 > :first-child {
72 transform: rotate(-90deg);
73 }
74 .theme-toggle
75 input[type="checkbox"]:checked
76 ~ .theme-toggle__around
77 > :first-child
78 path,
79 .darkify_dark_mode_enabled .theme-toggle:not(label)
80 .theme-toggle__around
81 > :first-child
82 path {
83 d: path("M-12-14h42v30a1 1 0 00-16 13H0Z");
84 }
85 @supports not (d: path("")) {
86 .theme-toggle
87 input[type="checkbox"]:checked
88 ~ .theme-toggle__around:first-child
89 path,
90 .darkify_dark_mode_enabled .theme-toggle:not(label)
91 .theme-toggle__around:first-child
92 path {
93 transform: translate3d(-12px, -14px, 0);
94 }
95 }
96 .theme-toggle {
97 border: none;
98 background: 0 0;
99 cursor: pointer;
100 }
101 .theme-toggle input[type="checkbox"] {
102 display: none;
103 }
104 .theme-toggle .theme-toggle-sr {
105 position: absolute;
106 width: 1px;
107 height: 1px;
108 padding: 0;
109 margin: -1px;
110 overflow: hidden;
111 clip: rect(0, 0, 0, 0);
112 white-space: nowrap;
113 border-width: 0;
114 }
115 @media (prefers-reduced-motion: reduce) {
116 .theme-toggle:not(.theme-toggle--force-motion) * {
117 transition: none !important;
118 }
119 }
120