Skip to content

Commit

Permalink
feat: v1.10.4 - 适配浏览器打印和导出pdf时的页面样式
Browse files Browse the repository at this point in the history
  • Loading branch information
xugaoyi committed Apr 9, 2022
1 parent b6ecfe0 commit b554f8f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"vuepress-plugin-one-click-copy": "^1.0.2",
"vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7",
"vuepress-theme-vdoing": "^1.10.3",
"vuepress-theme-vdoing": "^1.10.4",
"yamljs": "^0.3.0"
}
}
2 changes: 1 addition & 1 deletion vdoing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuepress-theme-vdoing",
"version": "1.10.3",
"version": "1.10.4",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": {
"name": "gaoyi(Evan) Xu"
Expand Down
7 changes: 7 additions & 0 deletions vdoing/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,10 @@ th, td
padding-left 0

@require 'mobile.styl'

// 打印时的样式
@media print
.navbar,.sidebar,.buttons
display: none
.page
padding-top: 0 !important

1 comment on commit b554f8f

@vercel
Copy link

@vercel vercel bot commented on b554f8f Apr 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.