better print format for arkhamdb
arkhamdb.com/deck/view/ by nilesjohnson
Details
Authornilesjohnson
LicenseNo License
Categoryarkhamdb.com
Created
Updated
Size2.3 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
- print description
- print class icons
- black text for card names
Source code
/* ==UserStyle==
@name arkhamdb.com/deck/view/
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document url-prefix("https://arkhamdb.com/deck/view/") {
/* Insert code here... */
@media print {
#deck {page-break-after: always;}
.hidden-print {
display: block !important;
}
#btn-group-deck {
display: none;
}
.hidden-print > div,
.hidden-print > p,
.hidden-print > table{
display: none;
}
.hidden-print > div.panel-default {
display: block;
}
.hidden-print > div.panel-default > .panel-heading {
display: none;
}
h5 {
font-weight: bold;
text-decoration: underline;
}
.icon, .icon-asset {
all: unset !important;
width: 16px !important;
height: 16px !important;
background-repeat: no-repeat !important;
display: inline-block !important;
/* print background images */
-webkit-print-color-adjust: exact !important; /* Chrome, Safari 6 – 15.3, Edge */
color-adjust: exact !important; /* Firefox 48 – 96 */
print-color-adjust: exact !important; /* Firefox 97+, Safari 15.4+ */
}
.icon-guardian {
background-image: url("/bundles/app/images/factions/guardian.png") !important;
}
.icon-rogue {
background-image: url("/bundles/app/images/factions/rogue.png") !important;
background-repeat: no-repeat;
}
.icon-mystic {
background-image: url("/bundles/app/images/factions/mystic.png") !important;
background-repeat: no-repeat;
}
.icon-seeker {
background-image: url("/bundles/app/images/factions/seeker.png") !important;
background-repeat: no-repeat;
}
.icon-survivor {
background-image: url("/bundles/app/images/factions/survivor.png") !important;
background-repeat: no-repeat;
}
.card {
color: black !important;
}
}
}