summaryrefslogtreecommitdiff
path: root/src/components/RuleSearch.module.scss
diff options
context:
space:
mode:
authorHaishan <[email protected]>2019-01-05 00:45:33 +0800
committerHaishan <[email protected]>2019-01-05 22:03:29 +0800
commit57b353387a18f372d2cf415bd6eb813f9474a351 (patch)
tree47485c7e51452779eaca075ea01222caadc35231 /src/components/RuleSearch.module.scss
parent79b9b1db1a5905e263460a2adb1d3e9845950c7a (diff)
feat(rules): support search
Diffstat (limited to 'src/components/RuleSearch.module.scss')
-rw-r--r--src/components/RuleSearch.module.scss44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/components/RuleSearch.module.scss b/src/components/RuleSearch.module.scss
new file mode 100644
index 0000000..31e6e36
--- /dev/null
+++ b/src/components/RuleSearch.module.scss
@@ -0,0 +1,44 @@
+.RuleSearch {
+ // width: 100%;
+ // padding: 0 40px;
+ // height: 40px;
+ padding: 0 40px 5px;
+ // height: 40px;
+}
+
+.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;
+}