From 7dac1d44c7b13184e4a1cbdb4113df2bb8db9d7e Mon Sep 17 00:00:00 2001 From: Haishan Date: Sun, 14 Apr 2019 22:56:14 +0800 Subject: refactor: replace sass with postcss --- src/components/ToggleSwitch.module.scss | 34 --------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/components/ToggleSwitch.module.scss (limited to 'src/components/ToggleSwitch.module.scss') diff --git a/src/components/ToggleSwitch.module.scss b/src/components/ToggleSwitch.module.scss deleted file mode 100644 index 78a2b41..0000000 --- a/src/components/ToggleSwitch.module.scss +++ /dev/null @@ -1,34 +0,0 @@ -.ToggleSwitch { - user-select: none; - border: 1px solid #525252; - color: var(--color-text); - background: var(--color-toggle-bg); - display: flex; - position: relative; - - input { - position: absolute; - left: 0; - opacity: 0; - } - - label { - flex: 1; - 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); -} -- cgit v1.3.1