Skip to content

Commit

Permalink
Merge pull request #310 from KevinBatdorf/add-height-print-style
Browse files Browse the repository at this point in the history
Add basic print styles
  • Loading branch information
KevinBatdorf authored Apr 4, 2024
2 parents 28f5dc7 + 45c335b commit 0a81832
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/front/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,16 @@
.cbp-footer-link {
@apply hover:underline;
}
@media print {
.wp-block-kevinbatdorf-code-block-pro pre {
max-height: none !important;
}
.wp-block-kevinbatdorf-code-block-pro:not(#x) .line::before {
background-color: transparent !important;
color: inherit !important;
}
.wp-block-kevinbatdorf-code-block-pro:not(#x) > span,
.wp-block-kevinbatdorf-code-block-pro:not(#x) .cbp-line-highlighter {
display: none !important;
}
}

0 comments on commit 0a81832

Please sign in to comment.