mirror of
1
Fork 0

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
1 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,8 @@
opacity: 1 !important; // override fomantic on edit preview
pointer-events: auto !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,
@ -204,6 +206,8 @@
content: "";
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 {