diff options
| author | Haishan <[email protected]> | 2019-04-14 22:56:14 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-04-14 22:56:14 +0800 |
| commit | 7dac1d44c7b13184e4a1cbdb4113df2bb8db9d7e (patch) | |
| tree | 44ca70a51497d5e0dddadaca384ee20541a157fe /src/components/Input.module.css | |
| parent | 4a4f58c88a857d222fbd21749bfd7019eaee8659 (diff) | |
refactor: replace sass with postcss
Diffstat (limited to 'src/components/Input.module.css')
| -rw-r--r-- | src/components/Input.module.css | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/Input.module.css b/src/components/Input.module.css new file mode 100644 index 0000000..a39c064 --- /dev/null +++ b/src/components/Input.module.css @@ -0,0 +1,25 @@ +.input { + -webkit-appearance: none; + background-color: var(--color-input-bg); + background-image: none; + border-radius: 4px; + 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; + transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); + width: 100%; + &:focus { + border-color: var(--color-focus-blue); + } +} + +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} |
