Update CSS

Also hide advanced options pane when attempting to print from main page
This commit is contained in:
RunasSudo 2021-01-18 01:54:35 +11:00
parent f6cc873d05
commit ad35b63d8f
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 10 additions and 3 deletions

View File

@ -233,7 +233,7 @@
</label>
</div>
<div id="printWarning" style="display: none;">Printing directly from this page is not supported. Use the ‘Print result’ button to generate a printer-friendly report.</div>
<div id="printWarning">Printing directly from this page is not supported. Use the ‘Print result’ button to generate a printer-friendly report.</div>
<script>
var pyRCV2version = 'GITVERSION';

View File

@ -88,15 +88,22 @@ tr.info td {
-webkit-print-color-adjust: exact;
}
/* Print stylesheet */
#printWarning {
display: none;
}
@media print {
body.interactive > * {
display: none;
}
#printPane {
#divAdvancedOptions, #printPane {
/* Override inline style */
display: none !important;
}
#printWarning {
display: block !important;
display: block;
}
}