Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 71fc2b0

Browse files
华晨egoist
authored andcommitted
fix: tweak header and pager in print view (#241)
* 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
1 parent 021f43c commit 71fc2b0

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

src/components/Header.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ export default {
8181
z-index: 33;
8282
border-bottom: 1px solid var(--border-color);
8383
background: var(--header-background);
84+
85+
@media print {
86+
position: static;
87+
}
8488
}
8589
8690
.Wrap {

src/components/PrevNextLinks.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export default {
6060
margin-top: 40px;
6161
padding-top: 30px;
6262
border-top: 1px solid var(--border-color);
63+
64+
@media print {
65+
display: none;
66+
}
6367
}
6468
6569
.prev-link {

src/plugins/search/SearchBar.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ export default {
111111
display: block;
112112
}
113113
}
114+
115+
@media print {
116+
display: none;
117+
}
114118
}
115119
116120
.search-input-wrapper {

src/views/Home.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export default {
195195
196196
@media print {
197197
padding-left: 0;
198+
padding-top: 30px;
198199
}
199200
}
200201

0 commit comments

Comments
 (0)