Skip to content

Commit

Permalink
theme: adjust code print styles matcornic#35
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Aug 27, 2021
1 parent 7059329 commit 40a243d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions static/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -608,12 +608,24 @@ code.copy-to-clipboard-inline {
border-top-right-radius: 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 {
padding: 1rem;
border: 0;
border-radius: 2px;
line-height: 1.15;
}
@media print {
pre {
border: 1px solid #ccc;
}
}
pre code {
background-color: inherit;
color: inherit;
Expand Down Expand Up @@ -1045,6 +1057,11 @@ td {
font-size: 92%;
padding-left: 22px;
}
@media print {
.copy-to-clipboard {
display: none;
}
}
.copy-to-clipboard:hover {
background-color: #FCEBB4;
border-color: #B19F7A;
Expand Down

0 comments on commit 40a243d

Please sign in to comment.