]> git.ardis.lu - ardislu.dev/commitdiff
Align search icon vertically with <search> center instead of clear button center
authorArdis Lu <ardisglu@gmail.com>
Fri, 30 Aug 2024 06:41:25 +0000 (23:41 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 30 Aug 2024 06:41:25 +0000 (23:41 -0700)
The clear button is not a standard control anyway so it didn't make sense to align with it.

style.css

index c7b37cc3c1572b1c3db9fdfc4b63edd093a91aa8..2271f9216b384059a0759b5f95c77bf1ae804bfb 100644 (file)
--- a/style.css
+++ b/style.css
@@ -150,11 +150,10 @@ form > button {
   background: transparent;
   border: none;
   cursor: pointer;
-  padding: 0;
-  width: 20px;
+  padding: 4px;
+  width: 28px;
   position: absolute;
-  inset-inline-end: 4px;
-  inset-block-end: 0;
+  inset-inline-end: 0;
 }
 
 h1 {
This page took 0.042119 seconds and 4 git commands to generate.