From: Ardis Lu Date: Sat, 29 Oct 2022 06:30:53 +0000 (-0700) Subject: Simplify focus selector X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=e5ea568f5662a0786bfb0156aece07028d319d38;p=google-forms-frontend Simplify focus selector --- diff --git a/index.html b/index.html index 67ec15e..0da7694 100644 --- a/index.html +++ b/index.html @@ -107,8 +107,7 @@ transition: transform 150ms; } - div:has(input:focus)::before, - div:has(textarea:focus)::before { + div:focus-within::before { transform: scaleY(1); transition: transform 400ms; } @@ -131,8 +130,7 @@ font-weight: 300; } - div:has(input:focus) aside, - div:has(textarea:focus) aside { + div:focus-within aside { font-weight: 500; } }