From 45c335b07668c28969778d2745f497751be48c7c Mon Sep 17 00:00:00 2001 From: Kevin Batdorf Date: Fri, 5 Apr 2024 00:21:59 +0700 Subject: [PATCH] Add basic print styles --- src/front/style.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/front/style.css b/src/front/style.css index ca484c6..febad85 100644 --- a/src/front/style.css +++ b/src/front/style.css @@ -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; + } +}