summaryrefslogtreecommitdiff
path: root/src/components/ToggleSwitch.module.css
diff options
context:
space:
mode:
authorHaishan <[email protected]>2021-06-06 00:32:24 +0800
committerHaishan <[email protected]>2021-06-06 00:33:22 +0800
commit5ff2f89afb71fd2976c487692ec73085241e09c7 (patch)
treefe7a53d8839b1406e4ff31a2fa8a543669c7693f /src/components/ToggleSwitch.module.css
parent25dbe5eff483bfdceec677b13ad4ec905c5fe566 (diff)
Stop use postcss-nested postcss-extend-rule
Diffstat (limited to 'src/components/ToggleSwitch.module.css')
-rw-r--r--src/components/ToggleSwitch.module.css39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/components/ToggleSwitch.module.css b/src/components/ToggleSwitch.module.css
deleted file mode 100644
index 4b1388c..0000000
--- a/src/components/ToggleSwitch.module.css
+++ /dev/null
@@ -1,39 +0,0 @@
-.ToggleSwitch {
- user-select: none;
- border-radius: 4px;
- border: 1px solid #525252;
- color: var(--color-text);
- background: var(--color-toggle-bg);
- display: flex;
- position: relative;
- outline: none;
-
- &:focus {
- border-color: var(--color-focus-blue);
- }
-
- input {
- position: absolute;
- left: 0;
- opacity: 0;
- }
-
- label {
- z-index: 2;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 10px 0;
- cursor: pointer;
- }
-}
-
-.slider {
- z-index: 1;
- position: absolute;
- display: block;
- left: 0;
- height: 100%;
- transition: left 0.2s ease-out;
- background: var(--color-toggle-selected);
-}