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> </label>
</div> </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> <script>
var pyRCV2version = 'GITVERSION'; var pyRCV2version = 'GITVERSION';

View File

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