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/Search.module.css | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/components/Search.module.css (limited to 'src/components/Search.module.css') diff --git a/src/components/Search.module.css b/src/components/Search.module.css new file mode 100644 index 0000000..657c741 --- /dev/null +++ b/src/components/Search.module.css @@ -0,0 +1,40 @@ +.RuleSearch { + padding: 0 40px 5px; +} + +.RuleSearchContainer { + position: relative; + height: 40px; +} + +.inputWrapper { + position: absolute; + top: 50%; + transform: translateY(-50%); + left: 0; + width: 100%; +} + +.input { + -webkit-appearance: none; + background-color: var(--color-input-bg); + background-image: none; + border-radius: 20px; + border: 1px solid var(--color-input-border); + box-sizing: border-box; + color: #c1c1c1; + display: inline-block; + font-size: inherit; + height: 40px; + outline: none; + padding: 0 15px 0 35px; + transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); + width: 100%; +} + +.iconWrapper { + position: absolute; + top: 50%; + transform: translateY(-50%); + left: 10px; +} -- cgit v1.3.1