CertificatePrint.css: Difference between revisions

From Claremont MakerSpace
(Remove the print media rules, managing those in the document generation repo)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
#cert-data {
    string-set: certname attr(data-name),
                certversion attr(data-version);
    /* Can't be `display: none;`, as it breaks string-set */
    visibility: hidden;
    position: absolute;
    bottom: 0px;
}
.mw-body-content li::marker {
.mw-body-content li::marker {
     content: "□\00A0";
     content: "□\00A0";
Line 21: Line 12:


@media not print {
@media not print {
     .print-only {
     .print-only, .print-warning {
         display: none;
         display: none;
    }
}
@media print {
    .print-warning {
        position: fixed;
        left: 0;
        top: 0;
        background: white;
        width: 100vw;
        height: 100vh;
     }
     }
}
}

Latest revision as of 19:54, 4 November 2020

.mw-body-content li::marker {
    content: "□\00A0";
    padding-right: 1em;
}

.nochecklist li::marker, 
.wikitable li::marker,
.toc li::marker {
    content: initial;
    padding-right: initial;
}

@media not print {
    .print-only, .print-warning {
        display: none;
    }
}

@media print {
    .print-warning {
        position: fixed;
        left: 0;
        top: 0;
        background: white;
        width: 100vw;
        height: 100vh;
    }
}