mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-21 12:10:29 +00:00
enhance(ui): forced colors mode enhancements (#38991)
Improve various UI elements while in [forced color mode](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/forced-colors).
This commit is contained in:
@@ -224,6 +224,16 @@ progress::-moz-progress-bar {
|
||||
background-color: var(--color-accent);
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
progress {
|
||||
outline: 1px solid CanvasText;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
progress::-webkit-progress-value {
|
||||
background: CanvasText;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
caret-color: var(--color-caret);
|
||||
}
|
||||
|
||||
@@ -172,6 +172,29 @@ input[type="checkbox"]:indeterminate::before {
|
||||
background: var(--color-primary) !important;
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
input[type="checkbox"]:checked,
|
||||
input[type="checkbox"]:indeterminate {
|
||||
background: CanvasText;
|
||||
border-color: CanvasText;
|
||||
}
|
||||
input[type="checkbox"]:disabled:checked,
|
||||
input[type="checkbox"]:disabled:indeterminate {
|
||||
background: GrayText;
|
||||
border-color: GrayText;
|
||||
}
|
||||
input[type="radio"]:disabled:checked {
|
||||
border-color: GrayText;
|
||||
}
|
||||
.ui.toggle.checkbox label::before {
|
||||
outline: 1px solid CanvasText;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
.ui.toggle.checkbox label::after {
|
||||
background: CanvasText;
|
||||
}
|
||||
}
|
||||
|
||||
label.gt-checkbox {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -305,3 +305,10 @@ it can also be rendered as flex by adding flex-related classes (the general ".it
|
||||
filter: grayscale(0.5);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
.ui.label {
|
||||
outline: 1px solid CanvasText;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -720,6 +720,12 @@ td .commit-summary {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
.repository.branches .commit-divergence .bar {
|
||||
background: CanvasText;
|
||||
}
|
||||
}
|
||||
|
||||
.repository.commits .header .search input {
|
||||
font-weight: var(--font-weight-normal);
|
||||
padding: 5px 10px;
|
||||
|
||||
Reference in New Issue
Block a user