From aac4c6bbd247e3477754ad5ce7c435093548ba88 Mon Sep 17 00:00:00 2001 From: Kim Coleman Date: Tue, 8 Oct 2024 06:35:52 -0400 Subject: [PATCH] Improving the print styles for frontend membership pages --- css/frontend/base.css | 3 ++- css/frontend/variation_1.css | 21 +++++++++++++++++++++ css/frontend/variation_high_contrast.css | 17 +++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/css/frontend/base.css b/css/frontend/base.css index 74daa90529..3482fc922f 100644 --- a/css/frontend/base.css +++ b/css/frontend/base.css @@ -554,7 +554,8 @@ button[type="button"]#other_discount_code_toggle:focus { @media print { .pmpro { .pmpro_actions_nav:not(.pmpro_login_wrap .pmpro_actions_nav), - .pmpro_actions_nav, + .pmpro_actions_nav-right, + .pmpro_actions_nav-left, .pmpro_card_actions, .pmpro_hide_print { display: none; diff --git a/css/frontend/variation_1.css b/css/frontend/variation_1.css index bea08df207..9f9529dd71 100644 --- a/css/frontend/variation_1.css +++ b/css/frontend/variation_1.css @@ -971,6 +971,27 @@ } } +/** + * Print Styles + */ +@media print { + .pmpro { + .pmpro_card { + background-color: transparent; + border: none; + box-shadow: none; + } + .pmpro_card_title, + .pmpro_card_content, + .pmpro_section:has(.pmpro_form) .pmpro_card_title + .pmpro_card_content { + padding: 0; + } + .pmpro_form_legend { + margin-bottom: 0; + } + } +} + /** * Responsive Styles */ diff --git a/css/frontend/variation_high_contrast.css b/css/frontend/variation_high_contrast.css index 65872e29c4..a1f7fb1204 100644 --- a/css/frontend/variation_high_contrast.css +++ b/css/frontend/variation_high_contrast.css @@ -958,6 +958,23 @@ } } +/** + * Print Styles + */ + @media print { + .pmpro { + .pmpro_card { + background-color: transparent; + border: none; + box-shadow: none; + } + .pmpro_card_title, + .pmpro_card_content { + padding: 0; + } + } +} + /** * Responsive Styles */