Skip to content

Commit

Permalink
调整打印背景颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
cayxc committed Jan 16, 2025
1 parent bb70912 commit d53f090
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
10 changes: 3 additions & 7 deletions mdmdt-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -2074,6 +2074,7 @@ body.typora-export {
* ------------------------
*/
@media print {
:root,
html,
body,
body #write,
Expand All @@ -2082,7 +2083,6 @@ body.typora-export {
height: auto !important; /*解决浏览器打印只有一页问题*/
padding: 0 !important;
margin: 0 !important;
background: var(--bg-color);
width: 100% !important;
max-width: 100% !important;
border: none !important;
Expand Down Expand Up @@ -2140,7 +2140,7 @@ body.typora-export {
@page {
size: auto;
margin: 15mm !important;
background: var(--bg-color);
background: var(--bg-color) !important;
/*谷歌浏览器打印设置*/
@top-center {
content: '';
Expand All @@ -2151,8 +2151,4 @@ body.typora-export {
font-size: 9pt;
}
}

}



}
4 changes: 1 addition & 3 deletions mdmdt-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,6 @@ body.typora-export {
height: auto !important; /*解决浏览器打印只有一页问题*/
padding: 0 !important;
margin: 0 !important;
background: var(--bg-color);
width: 100% !important;
max-width: 100% !important;
border: none !important;
Expand Down Expand Up @@ -2130,7 +2129,7 @@ body.typora-export {
@page {
size: auto;
margin: 15mm !important;
background: var(--bg-color);
background: white !important;
/*谷歌浏览器打印设置*/
@top-center {
content: '';
Expand All @@ -2141,5 +2140,4 @@ body.typora-export {
font-size: 9pt;
}
}

}
5 changes: 2 additions & 3 deletions mdmdt.css
Original file line number Diff line number Diff line change
Expand Up @@ -2142,6 +2142,7 @@ body.typora-export {
* ------------------------
*/
@media print {
:root,
html,
body,
body #write,
Expand All @@ -2150,7 +2151,6 @@ body.typora-export {
height: auto !important; /*解决浏览器打印只有一页问题*/
padding: 0 !important;
margin: 0 !important;
background: var(--bg-color);
width: 100% !important;
max-width: 100% !important;
border: none !important;
Expand Down Expand Up @@ -2208,7 +2208,7 @@ body.typora-export {
@page {
size: auto;
margin: 15mm !important;
background: var(--bg-color);
background: white !important;
/*谷歌浏览器打印设置*/
@top-center {
content: '';
Expand All @@ -2219,5 +2219,4 @@ body.typora-export {
font-size: 9pt;
}
}

}

0 comments on commit d53f090

Please sign in to comment.