diff options
| author | Haishan <[email protected]> | 2019-11-17 17:31:59 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-11-17 17:31:59 +0800 |
| commit | c28ff93b67a3da5cbff0d2ffeddfc16fd1dd3438 (patch) | |
| tree | 0c3d6fd0964ffcb00078e4fda52ecd03e39b4dce /src/components/Button.module.css | |
| parent | 0df74757914123d55b2a627efc7bda62fc9fd458 (diff) | |
refactor: improve UI for small screens
Diffstat (limited to 'src/components/Button.module.css')
| -rw-r--r-- | src/components/Button.module.css | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/Button.module.css b/src/components/Button.module.css index f0ab4e1..8fb6a92 100644 --- a/src/components/Button.module.css +++ b/src/components/Button.module.css @@ -5,7 +5,6 @@ background: var(--color-btn-bg); border: 1px solid #555; border-radius: 100px; - padding: 6px 12px; user-select: none; &:focus { border-color: var(--color-focus-blue); @@ -14,9 +13,15 @@ background: #387cec; border: 1px solid #387cec; color: #fff; - /* background: darken(#555, 3%); */ } &:active { transform: scale(0.97); } + + font-size: 0.85em; + padding: 5px 8px; + @media (--breakpoint-not-small) { + font-size: 1em; + padding: 6px 12px; + } } |
