diff options
| author | Henry Jameson <me@hjkos.com> | 2022-04-26 17:31:26 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-04-26 17:31:26 +0300 |
| commit | 079e289260bfdf0ac8804f43b09f0c14c5338f5d (patch) | |
| tree | 87401bbbfc4c4b106989e07b6b4dbd9848cccf89 /src/App.scss | |
| parent | a96367139ca1c5716dce738c0e24300fadaeafac (diff) | |
improvements and cleanup to input components
Diffstat (limited to 'src/App.scss')
| -rw-r--r-- | src/App.scss | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/App.scss b/src/App.scss index 3a0204d1..3ea31b97 100644 --- a/src/App.scss +++ b/src/App.scss @@ -3,6 +3,7 @@ :root { --navbar-height: 3.5rem; + --post-line-height: 1.4; } html { @@ -440,7 +441,7 @@ textarea, height: unset; } - --padding: 0.5em; + --_padding: 0.5em; border: none; border-radius: $fallback--inputRadius; @@ -458,10 +459,9 @@ textarea, box-sizing: border-box; display: inline-block; position: relative; - height: 2.4em; - line-height: 1.2; + line-height: 2; hyphens: none; - padding: var(--padding); + padding: 0 var(--_padding); &:disabled, &[disabled=disabled], @@ -563,6 +563,12 @@ textarea, } } +// Textareas should have stock line-height + vertical padding instead of huge line-height +textarea { + padding: var(--_padding); + line-height: var(--post-line-height); +} + option { color: $fallback--text; color: var(--text, $fallback--text); |
