theme: adjust code print styles #35

This commit is contained in:
Sören Weber 2021-08-27 18:22:19 +02:00
parent 7059329c01
commit 40a243deff
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -608,12 +608,24 @@ code.copy-to-clipboard-inline {
border-top-right-radius: 0; border-top-right-radius: 0;
border-right-width: 0; border-right-width: 0;
} }
@media print {
code.copy-to-clipboard-inline {
border-bottom-right-radius: 2px;
border-top-right-radius: 2px;
border-right-width: 1px;
}
}
pre { pre {
padding: 1rem; padding: 1rem;
border: 0; border: 0;
border-radius: 2px; border-radius: 2px;
line-height: 1.15; line-height: 1.15;
} }
@media print {
pre {
border: 1px solid #ccc;
}
}
pre code { pre code {
background-color: inherit; background-color: inherit;
color: inherit; color: inherit;
@ -1045,6 +1057,11 @@ td {
font-size: 92%; font-size: 92%;
padding-left: 22px; padding-left: 22px;
} }
@media print {
.copy-to-clipboard {
display: none;
}
}
.copy-to-clipboard:hover { .copy-to-clipboard:hover {
background-color: #FCEBB4; background-color: #FCEBB4;
border-color: #B19F7A; border-color: #B19F7A;