mfbs

CSS microframework
git clone https://git.ce9e.org/mfbs.git

commit
07a19d4bdebc0c3da87d167212260def55f1f7e0
parent
18a735dc40bdf3d72b86dfda89392c599cc11829
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-12-13 11:03
rm support for input[type="button"] and input[type="submit"]

use <button type=""> instead

Diffstat

M css/form.css 18 ++++--------------

1 files changed, 4 insertions, 14 deletions


diff --git a/css/form.css b/css/form.css

@@ -41,9 +41,7 @@ textarea {
   41    41 }
   42    42 
   43    43 .button,
   44    -1 button,
   45    -1 [type=button],
   46    -1 [type=submit] {
   -1    44 button {
   47    45     --btn-color: var(--color-link);
   48    46     --btn-focus: var(--color-link-focus);
   49    47     --btn-contrast: var(--color-bg);
@@ -61,25 +59,17 @@ button,
   61    59 .button:hover,
   62    60 .button:focus-visible,
   63    61 button:hover,
   64    -1 button:focus-visible,
   65    -1 [type=button]:hover,
   66    -1 [type=button]:focus-visible,
   67    -1 [type=submit]:hover,
   68    -1 [type=submit]:focus-visible {
   -1    62 button:focus-visible {
   69    63     --btn-internal: color-mix(in oklch, var(--btn-color), var(--btn-focus));
   70    64     color: var(--btn-contrast);
   71    65 }
   72    66 .button:active,
   73    -1 button:active,
   74    -1 [type=button]:active,
   75    -1 [type=submit]:active {
   -1    67 button:active {
   76    68     --btn-internal: var(--btn-focus);
   77    69     color: var(--btn-contrast);
   78    70 }
   79    71 .button:disabled,
   80    -1 button:disabled,
   81    -1 [type=button]:disabled,
   82    -1 [type=submit]:disabled {
   -1    72 button:disabled {
   83    73     border-color: var(--btn-bg);
   84    74     background: var(--btn-bg);
   85    75     color: var(--btn-fg);