PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 2.1.2
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v2.1.2
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 / src / assets / css / switcher / expand.css

expand.css in Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) 2.1.2, at src/assets/css/switcher/expand.css

89 lines 2.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__expand {
2 transform: scale(-1, 1);
3 }
4 .theme-toggle {
5 --theme-toggle__expand--duration: 500ms;
6 }
7 .theme-toggle__expand g circle,
8 .theme-toggle__expand g path {
9 transform-origin: center;
10 transition: transform calc(var(--theme-toggle__expand--duration) * 0.65)
11 cubic-bezier(0, 0, 0, 1.25)
12 calc(var(--theme-toggle__expand--duration) * 0.35);
13 }
14 .theme-toggle__expand :first-child path {
15 transition-property: transform, d;
16 transition-duration: calc(var(--theme-toggle__expand--duration) * 0.6);
17 transition-timing-function: cubic-bezier(0, 0, 0.5, 1);
18 }
19 .theme-toggle input[type="checkbox"]:checked ~ .theme-toggle__expand g circle,
20 .darkify_dark_mode_enabled
21 .theme-toggle:not(label)
22 .theme-toggle__expand
23 g
24 circle {
25 transform: scale(1.4);
26 transition-delay: 0s;
27 }
28 .theme-toggle input[type="checkbox"]:checked ~ .theme-toggle__expand g path,
29 .darkify_dark_mode_enabled
30 .theme-toggle:not(label)
31 .theme-toggle__expand
32 g
33 path {
34 transform: scale(0.75);
35 transition-delay: 0s;
36 }
37 .theme-toggle
38 input[type="checkbox"]:checked
39 ~ .theme-toggle__expand
40 :first-child
41 path,
42 .darkify_dark_mode_enabled
43 .theme-toggle:not(label)
44 .theme-toggle__expand
45 :first-child
46 path {
47 d: path("M-9 3h25a1 1 0 0017 13v30H0Z");
48 transition-delay: calc(var(--theme-toggle__expand--duration) * 0.4);
49 transition-timing-function: cubic-bezier(0, 0, 0, 1.25);
50 }
51 @supports not (d: path("")) {
52 .theme-toggle
53 input[type="checkbox"]:checked
54 ~ .theme-toggle__expand
55 :first-child
56 path,
57 .darkify_dark_mode_enabled
58 .theme-toggle:not(label)
59 .theme-toggle__expand
60 :first-child
61 path {
62 transform: translate3d(-9px, 14px, 0);
63 }
64 }
65 .theme-toggle {
66 border: none;
67 background: 0 0;
68 cursor: pointer;
69 }
70 .theme-toggle input[type="checkbox"] {
71 display: none;
72 }
73 .theme-toggle .theme-toggle-sr {
74 position: absolute;
75 width: 1px;
76 height: 1px;
77 padding: 0;
78 margin: -1px;
79 overflow: hidden;
80 clip: rect(0, 0, 0, 0);
81 white-space: nowrap;
82 border-width: 0;
83 }
84 @media (prefers-reduced-motion: reduce) {
85 .theme-toggle:not(.theme-toggle--force-motion) * {
86 transition: none !important;
87 }
88 }
89