fix: keep the proofreading forced-colours rules after the main forced-colours block #1397

This commit is contained in:
Linus Rath
2026-11-02 22:03:06 +01:00
parent 72117c8a71
commit 6990abff45
+13 -11
View File
@@ -279,17 +279,6 @@ html.dark[data-contrast="more"] {
--text-issue-style: #fcd34d;
--text-issue-other: #e5e7eb;
}
@media (forced-colors: active) {
.tiptap .text-issue {
text-decoration-color: CanvasText;
text-decoration-thickness: 2px;
}
.tiptap .text-issue-active {
forced-color-adjust: none;
background-color: Highlight;
color: HighlightText;
}
}
/* ---------- Reduced transparency ---------- */
@@ -517,3 +506,16 @@ html.dark[data-contrast="more"] {
:root[data-simple-mode="on"] [data-simple-hide] {
display: none !important;
}
/* Proofreading underlines in forced colours: one colour, so the line styles tell the kinds apart. */
@media (forced-colors: active) {
.tiptap .text-issue {
text-decoration-color: CanvasText;
text-decoration-thickness: 2px;
}
.tiptap .text-issue-active {
forced-color-adjust: none;
background-color: Highlight;
color: HighlightText;
}
}