made css to make icons vanish when printing

This commit is contained in:
Pagwin 2024-11-30 01:31:20 -05:00
parent 4eedb1faa0
commit eb27d6c289
No known key found for this signature in database
GPG key ID: 81137023740CA260
2 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,5 @@
@media print {
* {
display: none;
}
}

View file

@ -3,9 +3,10 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 455.731 455.731" xml:space="preserve">
<style>
@layer color-import, futureproof;
@layer import-color, base, print;
@import url("/static/css/icon-colors.css") layer(import-color);
@layer futureproof{
@import url("/static/css/icon-print.css") layer(print);
@layer base{
.box {
fill: var(--background-color);
}

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB