Skip to content

Commit

Permalink
fix: restored background color when print
Browse files Browse the repository at this point in the history
  • Loading branch information
nass600 committed May 29, 2024
1 parent b72d7cb commit 04b55b8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/MainDocument.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const config = useConfigStore()
}
.main-document {
background-color: red;
width: var(--page-width);
line-height: 1.4;
display: flex;
Expand Down Expand Up @@ -147,10 +148,7 @@ const config = useConfigStore()
flex: 0 0 var(--sidebar-width);
width: var(--sidebar-width);
font-size: calc(var(--c-font-size-base-sidebar) * var(--screen-multiplier));
// & a {
// color: var(--color-text);
// }
-webkit-print-color-adjust: exact !important;
& p {
font-size: calc(var(--c-font-size-base) * 1.3);
Expand All @@ -166,6 +164,7 @@ const config = useConfigStore()
flex: 1;
background-color: var(--color-background);
color: var(--color-text);
-webkit-print-color-adjust: exact !important;
}
a {
Expand Down

0 comments on commit 04b55b8

Please sign in to comment.