Force color-adjust for markdown checkboxes (#17146)

this forces browsers to render background correctly

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
sebastian-sauer 2021-09-25 08:45:55 +02:00 committed by GitHub
parent cbd5dc4dd6
commit 6fb7fb6cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,6 +181,8 @@
opacity: 1 !important; // override fomantic on edit preview opacity: 1 !important; // override fomantic on edit preview
pointer-events: auto !important; // override fomantic on edit preview pointer-events: auto !important; // override fomantic on edit preview
vertical-align: middle !important; // override fomantic on edit preview vertical-align: middle !important; // override fomantic on edit preview
-webkit-print-color-adjust: exact;
color-adjust: exact;
} }
input[type="checkbox"]:not([disabled]):hover, input[type="checkbox"]:not([disabled]):hover,
@ -204,6 +206,8 @@
content: ""; content: "";
mask-image: var(--checkbox-mask-checked); mask-image: var(--checkbox-mask-checked);
-webkit-mask-image: var(--checkbox-mask-checked); -webkit-mask-image: var(--checkbox-mask-checked);
-webkit-print-color-adjust: exact;
color-adjust: exact;
} }
input[type="checkbox"]:indeterminate::after { input[type="checkbox"]:indeterminate::after {