diff options
| author | Larvan2 <[email protected]> | 2026-03-15 15:01:57 +0800 |
|---|---|---|
| committer | Larvan2 <[email protected]> | 2026-03-15 15:01:57 +0800 |
| commit | 0e420859f5f7011ba124c965d8319bf3bf4c5fe3 (patch) | |
| tree | 2fc344b757e119ebae6e0b6243121fddba61603c /src/components/shared/TextFitler.module.scss | |
| parent | 17c4d2855ffb6914fcbece27367bafdd27a4c182 (diff) | |
refactor: reorganize code
Diffstat (limited to 'src/components/shared/TextFitler.module.scss')
| -rw-r--r-- | src/components/shared/TextFitler.module.scss | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/components/shared/TextFitler.module.scss b/src/components/shared/TextFitler.module.scss index bd437b6..3977aad 100644 --- a/src/components/shared/TextFitler.module.scss +++ b/src/components/shared/TextFitler.module.scss @@ -1,19 +1,28 @@ .input { -webkit-appearance: none; + appearance: none; background-color: var(--color-input-bg); background-image: none; border-radius: 8px; - border: 1px solid var(--color-input-border); + border: 1px solid transparent; box-sizing: border-box; - color: var(--color-text-secondary); + color: var(--color-text); display: inline-block; - font-size: inherit; + font-size: 0.95em; outline: none; - padding: 8px 15px; - transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); + padding: 0 16px; + transition: all 0.2s ease; width: 100%; - height: 36px; + height: 40px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); + + &::placeholder { + color: var(--color-text-secondary); + opacity: 0.6; + } + &:focus { - border: 1px solid var(--color-focus-blue); + border-color: var(--color-focus-blue); + box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15); } } |
