summaryrefslogtreecommitdiff
path: root/Server.Client/Pages/Component/Switch.razor.css
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-05-22 00:52:16 +1000
committerJake Mannens <jake@asger.xyz>2026-05-23 22:22:55 +1000
commit12eaa5814ef20b0910e8d64a753378b6f6797989 (patch)
tree062cf477c29054e0f089cb80f0cd79a9f3b7ccd9 /Server.Client/Pages/Component/Switch.razor.css
parent6de5d7f5364fe1d54703da6d6b7cb08ea26e939f (diff)
Initial commitwasm-initial
Diffstat (limited to 'Server.Client/Pages/Component/Switch.razor.css')
-rw-r--r--Server.Client/Pages/Component/Switch.razor.css25
1 files changed, 25 insertions, 0 deletions
diff --git a/Server.Client/Pages/Component/Switch.razor.css b/Server.Client/Pages/Component/Switch.razor.css
new file mode 100644
index 0000000..6b1f5d5
--- /dev/null
+++ b/Server.Client/Pages/Component/Switch.razor.css
@@ -0,0 +1,25 @@
+div.switch-outer {
+ background: var(--col-switch-bg);
+ border-radius: 20px;
+ border: 1px solid var(--col-switch-fg);
+ cursor: pointer;
+ height: 20px;
+ transition: background 0.1s linear;
+ width: 40px;
+}
+
+div.switch-inner {
+ background: var(--col-switch-fg);
+ border-radius: 20px;
+ height: 20px;
+ transition: margin-left 0.1s linear;
+ width: 20px;
+}
+
+input:checked + div.switch-outer {
+ background: var(--col-switch-bg-hl);
+}
+
+input:checked + div.switch-outer > div.switch-inner {
+ margin-left: 20px;
+}