Force color-adjust for markdown checkboxes (#17146)

this forces browsers to render background correctly

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
tokarchuk/v1.17
sebastian-sauer 3 years ago committed by GitHub
parent cbd5dc4dd6
commit 6fb7fb6cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      web_src/less/markup/content.less

@ -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 {

Loading…
Cancel
Save