Skip to content

Commit

Permalink
fix: tweak header and pager in print view (#241)
Browse files Browse the repository at this point in the history
* fix: hide header and pager in print view

* fix: remvoe the weird top padding on the first page in print style

* fix: remvoe all top padding of .Main in print style

* fix: unset `position: fixed` for header in print style

* fix: hide search bar in print style
  • Loading branch information
华晨 authored and egoist committed Jun 14, 2019
1 parent 021f43c commit 71fc2b0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export default {
z-index: 33;
border-bottom: 1px solid var(--border-color);
background: var(--header-background);
@media print {
position: static;
}
}
.Wrap {
Expand Down
4 changes: 4 additions & 0 deletions src/components/PrevNextLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export default {
margin-top: 40px;
padding-top: 30px;
border-top: 1px solid var(--border-color);
@media print {
display: none;
}
}
.prev-link {
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/search/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ export default {
display: block;
}
}
@media print {
display: none;
}
}
.search-input-wrapper {
Expand Down
1 change: 1 addition & 0 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export default {
@media print {
padding-left: 0;
padding-top: 30px;
}
}
Expand Down

0 comments on commit 71fc2b0

Please sign in to comment.