Merged
Conversation
Cross-checked each selector against templates, Go source, JS/TS/Vue and options/ to confirm zero usages before removal. Also drops `-webkit-mask-*` prefixes where unprefixed equivalents are present (Safari 15.4+, March 2022). Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Removes unused Fomantic UI-derived CSS rules and trims legacy vendor-prefixed mask declarations where unprefixed equivalents exist.
Changes:
- Removed large sets of apparently-unused Fomantic UI selectors across component modules (grid/table/menu/message/etc).
- Deleted page-specific/org-specific legacy styling blocks that no longer have matching markup.
- Removed
-webkit-mask-*declarations in favor of standardmask-*properties.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| web_src/css/shared/settings.css | Removes prefixed -webkit-mask-* on toggle icon styling. |
| web_src/css/review.css | Removes prefixed -webkit-mask-* for review warning icon. |
| web_src/css/org.css | Removes legacy invite page #invite-box styling rules. |
| web_src/css/modules/table.css | Removes unused .ui.table width variants (7/9/12–16 wide). |
| web_src/css/modules/segment.css | Removes unused .ui.warning.segment rule. |
| web_src/css/modules/message.css | Removes unused attached/bottom/yellow/red variants; keeps warning/error/info/success. |
| web_src/css/modules/menu.css | Removes unused menu variants (center items, fluid tabular width tweak, etc). |
| web_src/css/modules/label.css | Removes unused olive/basic purple/basic grey label variants. |
| web_src/css/modules/input.css | Removes unused textarea/icon-input and circular/link icon positioning rules. |
| web_src/css/modules/header.css | Removes unused header label/attached/warning variants. |
| web_src/css/modules/grid.css | Removes unused grid column-count/relaxed/compact/centered-row-related rules. |
| web_src/css/modules/form.css | Removes unused slider checkbox spacing and grouped inline fields rules. |
| web_src/css/modules/comment.css | Removes unused nested comments/metadata styling from Fomantic comment module. |
| web_src/css/modules/codeeditor.css | Removes prefixed -webkit-mask-* from code editor close icon styling. |
| web_src/css/modules/checkbox.css | Removes prefixed -webkit-mask-* for checkbox/radio masked glyphs. |
| web_src/css/modules/card.css | Removes unused .ui.three.cards layout rules. |
| web_src/css/modules/button.css | Removes unused .btn.small font-size rule. |
| web_src/css/base.css | Removes prefixed -webkit-mask-* from native select arrow icon styling. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
lunny
approved these changes
Apr 24, 2026
denyskon
approved these changes
Apr 24, 2026
silverwind
added a commit
to mohammad-rj/gitea
that referenced
this pull request
Apr 24, 2026
* origin/main: (127 commits) Refactor pull request view (1) (go-gitea#37380) Improve AGENTS.md (go-gitea#37382) Remove dead CSS (go-gitea#37376) Add pr-review e2e test and speed up e2e tests (go-gitea#37345) Drop Fomantic tab, checkbox and form patches (go-gitea#37377) fix: dump with default zip type produces uncompressed zip (go-gitea#37401) Allow fast-forward-only merge when signed commits are required (go-gitea#37335) Introduce `ActionRunAttempt` to represent each execution of a run (go-gitea#37119) Move review request functions to a standalone file (go-gitea#37358) Fix repo init README EOL (go-gitea#37388) Fix org team assignee/reviewer lookups for team member permissions (go-gitea#37365) Remove external service dependencies in migration tests (go-gitea#36866) Extend issue context popup beyond markdown content (go-gitea#36908) fix: commit status reporting (go-gitea#37372) Support for Custom URI Schemes in OAuth2 Redirect URIs (go-gitea#37356) Fix cmd tests by mocking builtin paths (go-gitea#37369) chore: upgrade Go version in devcontainer image to 1.26 (go-gitea#37374) Fix button layout shift when collapsing file tree in editor (go-gitea#37363) Update `Block a user` form (go-gitea#37359) Remove IsValidExternalURL/IsAPIURL and use IsValidURL at call sites (go-gitea#37364) ... # Conflicts: # modules/eventsource/event.go # tests/e2e/events.test.ts
silverwind
added a commit
to TheFox0x7/gitea
that referenced
this pull request
Apr 24, 2026
* origin/main: feat(security): set X-Content-Type-Options: nosniff by default (go-gitea#37354) Refactor pull request view (1) (go-gitea#37380) Improve AGENTS.md (go-gitea#37382) Remove dead CSS (go-gitea#37376) Add pr-review e2e test and speed up e2e tests (go-gitea#37345) Drop Fomantic tab, checkbox and form patches (go-gitea#37377)
silverwind
added a commit
to silverwind/gitea
that referenced
this pull request
Apr 25, 2026
These selectors carry over from Fomantic and have no usage in templates, Vue, JS, or Go code. The previous dead-CSS pass (go-gitea#37376) kept .ui.warning.header as a symmetric pair, but neither variant is actually consumed. Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
silverwind
added a commit
to silverwind/gitea
that referenced
this pull request
Apr 25, 2026
Matches the intent of go-gitea#37376 (keep .ui.warning.header alongside .ui.error.header even though warning has no current usage). Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
silverwind
added a commit
to silverwind/gitea
that referenced
this pull request
Apr 25, 2026
* origin/main: (51 commits) Fix color regressions, add `priority` color (go-gitea#37417) [skip ci] Updated translations via Crowdin Stabilize e2e logout propagation test (go-gitea#37403) refactor: serve site manifest via `/assets/site-manifest.json` endpoint (go-gitea#37405) feat(security): set X-Content-Type-Options: nosniff by default (go-gitea#37354) Refactor pull request view (1) (go-gitea#37380) Improve AGENTS.md (go-gitea#37382) Remove dead CSS (go-gitea#37376) Add pr-review e2e test and speed up e2e tests (go-gitea#37345) Drop Fomantic tab, checkbox and form patches (go-gitea#37377) fix: dump with default zip type produces uncompressed zip (go-gitea#37401) Allow fast-forward-only merge when signed commits are required (go-gitea#37335) Introduce `ActionRunAttempt` to represent each execution of a run (go-gitea#37119) Move review request functions to a standalone file (go-gitea#37358) Fix repo init README EOL (go-gitea#37388) Fix org team assignee/reviewer lookups for team member permissions (go-gitea#37365) Remove external service dependencies in migration tests (go-gitea#36866) Extend issue context popup beyond markdown content (go-gitea#36908) fix: commit status reporting (go-gitea#37372) Support for Custom URI Schemes in OAuth2 Redirect URIs (go-gitea#37356) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes CSS rules that have zero usages across templates, Go source, JS/TS/Vue, and
options/. Each selector was cross-checked for runtime additions (Fomantic JS, library classes) before removal.A few rules with no current usages are kept as symmetric pairs of heavily-used classes likely to be needed:
.ui.bottom.attached.header/.ui.bottom.attached.message— pair with the widely-usedtop.attachedvariants.ui.warning.header/.ui.warning.segment— warning-themed variants of error-themed classes that are kept.btn.small— size variant alongside the kept.btn.tinyThis PR was written with the help of Claude Opus 4.7