From: Ardis Lu Date: Thu, 9 Nov 2023 05:06:20 +0000 (-0800) Subject: Simplify button CSS X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=4479f673168a09a50bd6c7f2c3508ee0c7acdef0;p=solc-metadata Simplify button CSS Attribute selector specificity is greater than pseudo-class --- diff --git a/index.html b/index.html index 1040d09..4c9520d 100644 --- a/index.html +++ b/index.html @@ -73,17 +73,14 @@ transition: filter 600ms; } - [data-submitting] button { - cursor: not-allowed; - border: 1px solid hsl(216deg 70% 75%); - } - :is(input, output, button):is(:hover, :focus-within) { filter: drop-shadow(0 0 2px hsl(216deg 70% 50%)); transition: filter 200ms; } - [data-submitting] button:is(:hover, :focus-within) { + [data-submitting] button { + cursor: not-allowed; + border: 1px solid hsl(216deg 70% 75%); filter: unset; transition: unset; }