From 0932c3ad71df12b89b6ee08e4434c9fefed472c2 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Mon, 3 Nov 2025 13:45:51 +0100 Subject: [PATCH] chore(ui): remove unused css of id create-page-form (#9933) `create-page-form` is currently only referenced in CSS files. I've tried researching this with `git log -S 'create-page-form'` and here are the results: * 80701d45bbe333f1bdef4673fae43df131b2222f - first mention. Introduced `create-page-form` as a Less function/inclusion or something * 8e0a69f86a9e103d1d82d3c5000e01b4e2570a51 - added another usage of it in Less * 4465c58f4b1b7e1f9d5cc17fa4fcee352d572092 - seemingly added usage of it as of an actual ID to `gogs.css` (later renamed to `index.css`), still no use in templates * 045f14fbd0e3553521f5092cf839be363c74a090 - unrelated mention in minified bundle * 3d3faa26248e46ed00617caedab6670b89b4b504 - ditto + did one property change to it like if it actually changed anything * d9c67a8c903fa9927bad28f5fcb816f89f8200eb - removed built bundle * 202803fc69d21763a06d8d0f5a4c46509c18f6f1 - turned the strange Less thing into a proper pack of `#create-page-form` like if it was used, for some reason, duplicated the new code twice * ee9e83b230981437acf8c331e93a41cdc95af443 - removed some of the unused selectors by retiring the `.captcha-field` class, likely not knowing that nothing under `#create-page-form` is used Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9933 Reviewed-by: Gusted Co-authored-by: 0ko <0ko@noreply.codeberg.org> Co-committed-by: 0ko <0ko@noreply.codeberg.org> --- web_src/css/form.css | 41 ----------------------------------------- web_src/css/org.css | 41 ----------------------------------------- 2 files changed, 82 deletions(-) diff --git a/web_src/css/form.css b/web_src/css/form.css index 56c03e3a45..b335f27c07 100644 --- a/web_src/css/form.css +++ b/web_src/css/form.css @@ -286,47 +286,6 @@ input:-webkit-autofill:active, display: inline-block; } -#create-page-form form { - margin: auto; -} - -#create-page-form form .ui.message { - text-align: center; -} - -@media (min-width: 768px) { - #create-page-form form { - width: 800px !important; - } - #create-page-form form .header { - padding-left: 280px !important; - } - #create-page-form form .inline.field > label { - text-align: right; - width: 250px !important; - word-wrap: break-word; - } - #create-page-form form .help { - margin-left: 265px !important; - } - #create-page-form form .optional .title { - margin-left: 250px !important; - } - #create-page-form form .inline.field > input, - #create-page-form form .inline.field > textarea { - width: 50%; - } -} - -@media (max-width: 767.98px) { - #create-page-form form .optional .title { - margin-left: 15px; - } - #create-page-form form .inline.field > label { - display: block; - } -} - .m-captcha-style { width: 100%; height: 5em; diff --git a/web_src/css/org.css b/web_src/css/org.css index 05eb0c5476..024c2688f5 100644 --- a/web_src/css/org.css +++ b/web_src/css/org.css @@ -1,44 +1,3 @@ -#create-page-form form { - margin: auto; -} - -#create-page-form form .ui.message { - text-align: center; -} - -@media (min-width: 768px) { - #create-page-form form { - width: 800px !important; - } - #create-page-form form .header { - padding-left: 280px !important; - } - #create-page-form form .inline.field > label { - text-align: right; - width: 250px !important; - word-wrap: break-word; - } - #create-page-form form .help { - margin-left: 265px !important; - } - #create-page-form form .optional .title { - margin-left: 250px !important; - } - #create-page-form form .inline.field > input, - #create-page-form form .inline.field > textarea { - width: 50%; - } -} - -@media (max-width: 767.98px) { - #create-page-form form .optional .title { - margin-left: 15px; - } - #create-page-form form .inline.field > label { - display: block; - } -} - .organization .head .ui.header .ui.right { margin-top: 5px; }