Skip to content

Commit 0a6f70b

Browse files
authored
Merge pull request #6 from hiro-gj/fix/dark-mode-h1-h2-color
fix: プレビューのダークモード適用時における見出し(h1, h2)の文字色問題および印刷時の背景色不具合の修正
2 parents 218887c + 39ee0bd commit 0a6f70b

8 files changed

Lines changed: 2706 additions & 16 deletions

File tree

dist/kantanUpdate.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ktm-dev.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,13 @@
672672
background: transparent !important;
673673
background-color: transparent !important;
674674
}
675+
body.dark {
676+
background: var(--bg-preview) !important;
677+
background-color: var(--bg-preview) !important;
678+
color: var(--text) !important;
679+
-webkit-print-color-adjust: exact;
680+
print-color-adjust: exact;
681+
}
675682
#toolbar, #toolbar-toggle, #attach-section, #settings-panel {
676683
display:none !important;
677684
}
@@ -687,6 +694,13 @@
687694
background: transparent !important;
688695
background-color: transparent !important;
689696
}
697+
body.dark #previewer {
698+
background: var(--bg-preview) !important;
699+
background-color: var(--bg-preview) !important;
700+
color: var(--text) !important;
701+
-webkit-print-color-adjust: exact;
702+
print-color-adjust: exact;
703+
}
690704
}
691705
#drawArea {
692706
position:absolute;
@@ -902,12 +916,10 @@
902916
}
903917
h1 {
904918
font-size: 28px;
905-
color: black;
906919
}
907920
h2 {
908921
font-size: 24px;
909922
border-bottom: 1px solid #cccccc;
910-
color: black;
911923
}
912924
h3 {
913925
font-size: 18px;

dist/ktm-full.html

Lines changed: 1 addition & 3 deletions
Large diffs are not rendered by default.

dist/ktm-lite.html

Lines changed: 1 addition & 3 deletions
Large diffs are not rendered by default.

dist/ktm-std.html

Lines changed: 1 addition & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)