summaryrefslogtreecommitdiff
path: root/Pages/Component/Switch.razor.css
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-20 22:59:09 +1000
committerJake Mannens <jake@asger.xyz>2023-08-20 22:59:09 +1000
commitc29bdd4a9ec782411f57e3c798e1bb01ca7d417d (patch)
treefdb2046af3454a96a9733e156b9c86f538eea21c /Pages/Component/Switch.razor.css
parentdfff79815acc86c02dd94716098d409d3fe46ab7 (diff)
NSFW tagging and tag editing
Diffstat (limited to 'Pages/Component/Switch.razor.css')
-rw-r--r--Pages/Component/Switch.razor.css24
1 files changed, 24 insertions, 0 deletions
diff --git a/Pages/Component/Switch.razor.css b/Pages/Component/Switch.razor.css
new file mode 100644
index 0000000..076b5d1
--- /dev/null
+++ b/Pages/Component/Switch.razor.css
@@ -0,0 +1,24 @@
+div.switch-outer {
+ background: var(--col-switch-bg);
+ border-radius: 20px;
+ border: 1px solid var(--col-switch-fg);
+ 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;
+}