Skip to content

Commit b554f8f

Browse files
committed
feat: v1.10.4 - 适配浏览器打印和导出pdf时的页面样式
1 parent b6ecfe0 commit b554f8f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"vuepress-plugin-one-click-copy": "^1.0.2",
2525
"vuepress-plugin-thirdparty-search": "^1.0.2",
2626
"vuepress-plugin-zooming": "^1.1.7",
27-
"vuepress-theme-vdoing": "^1.10.3",
27+
"vuepress-theme-vdoing": "^1.10.4",
2828
"yamljs": "^0.3.0"
2929
}
3030
}

vdoing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-vdoing",
3-
"version": "1.10.3",
3+
"version": "1.10.4",
44
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
55
"author": {
66
"name": "gaoyi(Evan) Xu"

vdoing/styles/index.styl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,3 +301,10 @@ th, td
301301
padding-left 0
302302

303303
@require 'mobile.styl'
304+
305+
// 打印时的样式
306+
@media print
307+
.navbar,.sidebar,.buttons
308+
display: none
309+
.page
310+
padding-top: 0 !important

0 commit comments

Comments
 (0)