Remove dead CSS by silverwind · Pull Request #37376 · go-gitea/gitea · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove dead Fomantic UI CSS and pre-2023 vendor prefixes
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>
  • Loading branch information
silverwind and claude committed Apr 22, 2026
commit ddad67e4df6018b58a6fc123a5faaf559df0703f
2 changes: 0 additions & 2 deletions web_src/css/base.css
4 changes: 0 additions & 4 deletions web_src/css/modules/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,6 @@ a.btn:hover {
font-size: 12px;
}

.btn.small {
font-size: 13px;
}

/* By default, Fomantic UI doesn't support "bordered" buttons group, but Gitea would like to use it.
And the default buttons always have borders now (not the same as Fomantic UI's default buttons, see above).
It needs some tricks to tweak the left/right borders with active state */
Expand Down
11 changes: 0 additions & 11 deletions web_src/css/modules/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,3 @@ a.ui.card:hover {
color: var(--color-text);
border-top-color: var(--color-secondary-light-1) !important;
}

.ui.three.cards {
margin-left: -1em;
margin-right: -1em;
}

.ui.three.cards > .card {
width: calc(33.33333333333333% - 2em);
margin-left: 1em;
margin-right: 1em;
}
6 changes: 0 additions & 6 deletions web_src/css/modules/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ input[type="checkbox"]::before {
height: var(--checkbox-size);
clip-path: inset(var(--checkbox-size) 0 0 0);
mask-image: var(--checkbox-mask-checked);
-webkit-mask-image: var(--checkbox-mask-checked);
mask-size: 75%;
-webkit-mask-size: 75%;
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-position: center;
-webkit-mask-position: center;
}

input[type="checkbox"]:checked,
Expand All @@ -67,9 +63,7 @@ input[type="radio"]:disabled:checked {
input[type="checkbox"]:indeterminate::before {
clip-path: inset(0);
mask-image: var(--checkbox-mask-indeterminate);
-webkit-mask-image: var(--checkbox-mask-indeterminate);
mask-size: 75%;
-webkit-mask-size: 75%;
}

.ui.checkbox {
Expand Down
2 changes: 0 additions & 2 deletions web_src/css/modules/codeeditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@
background-color: currentcolor;
mask-image: var(--octicon-x);
mask-size: cover;
-webkit-mask-image: var(--octicon-x);
-webkit-mask-size: cover;
border-radius: var(--border-radius);
}

Expand Down
32 changes: 0 additions & 32 deletions web_src/css/modules/comment.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,45 +32,13 @@
padding-top: 0;
}

.ui.comments .comment > .comments {
margin: 0 0 0.5em 0.5em;
padding: 1em 0 1em 1em;
}

.ui.comments .comment > .comments::before {
position: absolute;
top: 0;
left: 0;
}

.ui.comments .comment > .comments .comment {
border: none;
border-top: none;
background: none;
}

.ui.comments .comment > .content {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
}

.ui.comments .comment .metadata {
display: inline-block;
margin-left: 0.5em;
font-size: 0.875em;
}

.ui.comments .comment .metadata > * {
display: inline-block;
margin: 0 0.5em 0 0;
}

.ui.comments .comment .metadata > :last-child {
margin-right: 0;
}

.ui.comments .comment .text {
margin: 0.25em 0 0.5em;
font-size: 1em;
Expand Down
12 changes: 1 addition & 11 deletions web_src/css/modules/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,12 @@ textarea:focus,
.ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) .ui.toggle.checkbox {
margin-top: 2.21428571em;
}
.ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) .ui.slider.checkbox {
margin-top: 2.61428571em;
}
.ui.ui.form .field .fields .field:not(:only-child) .ui.checkbox {
margin-top: 0.6em;
}
.ui.ui.form .field .fields .field:not(:only-child) .ui.toggle.checkbox {
margin-top: 0.5em;
}
.ui.ui.form .field .fields .field:not(:only-child) .ui.slider.checkbox {
margin-top: 0.7em;
}

.ui.form .field > .selection.dropdown {
min-width: 14em; /* matches the default min width */
Expand Down Expand Up @@ -289,15 +283,11 @@ textarea:focus,
font-weight: var(--font-weight-medium);
text-transform: none;
}
.ui.form .grouped.fields .field,
.ui.form .grouped.inline.fields .field {
.ui.form .grouped.fields .field {
display: block;
margin: 0.5em 0;
padding: 0;
}
.ui.form .grouped.inline.fields .ui.checkbox {
margin-bottom: 0.4em;
}

.ui.form .fields {
display: flex;
Expand Down
166 changes: 2 additions & 164 deletions web_src/css/modules/grid.css
Loading