summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsebastian-sauer <sauer.sebastian@gmail.com>2021-09-25 08:45:55 +0200
committerGitHub <noreply@github.com>2021-09-25 14:45:55 +0800
commit6fb7fb6cfc4e5dd14caa13c5d2965a1e98efdcaf (patch)
tree93d700c426b7218c7650b0169583d3c597838201 /web_src
parentcbd5dc4dd6936862e57e9fa257879176c273d6e6 (diff)
downloadgitea-6fb7fb6cfc4e5dd14caa13c5d2965a1e98efdcaf.tar.gz
gitea-6fb7fb6cfc4e5dd14caa13c5d2965a1e98efdcaf.zip
Force color-adjust for markdown checkboxes (#17146)
this forces browsers to render background correctly Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/markup/content.less4
1 files changed, 4 insertions, 0 deletions
diff --git a/web_src/less/markup/content.less b/web_src/less/markup/content.less
index df87c21d8c..8d9858f0df 100644
--- a/web_src/less/markup/content.less
+++ b/web_src/less/markup/content.less
@@ -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 {