mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-12 00:22:59 +02:00
Clean up checkbox cursor styles (#37016)
1. Remove non-functional `label:enabled` selector (`:enabled` only works on [form controls](https://html.spec.whatwg.org/multipage/semantics-other.html#concept-element-disabled), not labels) 2. Remove `cursor: auto` which caused an I-beam text selection cursor on checkbox labels. The default browser styles work find and show regular cursor. 3. Remove `cursor: pointer` on checkbox itself, opinionated and not needed. Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
This commit is contained in:
parent
74c40d46ee
commit
17b802beae
@ -91,14 +91,7 @@ input[type="checkbox"]:indeterminate::before {
|
|||||||
height: var(--checkbox-size);
|
height: var(--checkbox-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.checkbox input[type="checkbox"]:enabled,
|
|
||||||
.ui.checkbox input[type="radio"]:enabled,
|
|
||||||
.ui.checkbox label:enabled {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui.checkbox label {
|
.ui.checkbox label {
|
||||||
cursor: auto;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user