- commit
- 66fc1ffb90098c3a09798103870fe6af30c8c07f
- parent
- b09b4523fd2694919e78abcc03fcbd69110bf197
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-04-04 21:04
avoid placeholder selector
Diffstat
| M | sass/form.scss | 10 | ++++++---- |
1 files changed, 6 insertions, 4 deletions
diff --git a/sass/form.scss b/sass/form.scss
@@ -2,7 +2,12 @@ label {
2 2 display: block;
3 3 }
4 4
5 -1 %inputBase {
-1 5 input,
-1 6 textarea,
-1 7 select,
-1 8 .button,
-1 9 button,
-1 10 input[type="file"]::file-selector-button {
6 11 border: 1px solid $color-border;
7 12 padding-block: 0.3em;
8 13 padding-inline: 0.75em;
@@ -14,7 +19,6 @@ label {
14 19 input,
15 20 textarea,
16 21 select {
17 -1 @extend %inputBase;
18 22 background: $color-bg;
19 23 color: $color-fg;
20 24
@@ -50,7 +54,6 @@ textarea {
50 54 button,
51 55 [type=button],
52 56 [type=submit] {
53 -1 @extend %inputBase;
54 57 text-decoration: none;
55 58 display: inline-block;
56 59 cursor: pointer;
@@ -73,7 +76,6 @@ button,
73 76 }
74 77
75 78 input[type="file"]::file-selector-button {
76 -1 @extend %inputBase;
77 79 background: $color-bg-tint;
78 80 color: $color-fg;
79 81 border: 0;