How can I add a print button to my application that prints the page with the original CSS styles? I am currently using window.print()
function and have a separate file called print.scss
with specific print styles.
@media print {
header {display:none;}
footer {display:none;}
button {visibility: hidden;}
}
The issue I am facing is that I want to retain the original styles from my main style files, of which there are many.
https://i.stack.imgur.com/OuoEK.png
https://i.stack.imgur.com/vJDS9.png
(Buttons have been intentionally removed for illustration purposes.)