]> source.dussan.org Git - gitea.git/commitdiff
Reduce checkbox size to 15px (#30346)
authorsilverwind <me@silverwind.io>
Tue, 9 Apr 2024 03:09:43 +0000 (05:09 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Apr 2024 03:09:43 +0000 (03:09 +0000)
16 seems to big, 14 too small. Let's do 15. Alignment:

<img width="181" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/f2988611-dee2-492e-a18f-dc5ab3a1cd6c">

web_src/css/base.css
web_src/css/modules/checkbox.css

index 44dc83e6f3703af2ee2cd924091be9546c24f2c7..02bc1b72202e870b8450166df7daaaaaad129236 100644 (file)
@@ -23,7 +23,7 @@
   --height-loading: 16rem;
   --min-height-textarea: 132px; /* padding + 6 lines + border = calc(1.57142em + 6lh + 2px), but lh is not fully supported */
   --tab-size: 4;
-  --checkbox-size: 16px; /* height and width of checkbox and radio inputs */
+  --checkbox-size: 15px; /* height and width of checkbox and radio inputs */
   --page-spacing: 16px; /* space between page elements */
 }
 
index 9238e0b3f331652e145365010b785dc8ea7ede9e..d3e45714a4dd468405b9902c1680d0c50b713425 100644 (file)
@@ -20,7 +20,7 @@ input[type="radio"] {
 .ui.checkbox input[type="checkbox"],
 .ui.checkbox input[type="radio"] {
   position: absolute;
-  top: 0;
+  top: 1px;
   left: 0;
   width: var(--checkbox-size);
   height: var(--checkbox-size);