Skip to content

Commit 566a36e

Browse files
flurmboBrian Vaughn
authored andcommitted
media query to hide header on print (#2409)
* media query to hide header on print * add media query to hide footer on print
1 parent 454f44e commit 566a36e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/components/LayoutFooter/Footer.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
3131
[media.size('sidebarFixed')]: {
3232
paddingTop: 40,
3333
},
34+
'@media print': {
35+
display: 'none',
36+
},
3437
}}>
3538
<Container>
3639
<div

src/components/LayoutHeader/Header.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ const Header = ({location}: {location: Location}) => (
2929
width: '100%',
3030
top: 0,
3131
left: 0,
32+
'@media print': {
33+
display: 'none',
34+
},
3235
}}>
3336
<Container>
3437
<div

0 commit comments

Comments
 (0)