Skip to content

Commit

Permalink
Merge pull request #3158 from kimcoleman/print-css-improvements
Browse files Browse the repository at this point in the history
Improving the print styles for frontend membership pages
  • Loading branch information
dparker1005 authored Oct 8, 2024
2 parents 45958bc + aac4c6b commit 58d7c0f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
3 changes: 2 additions & 1 deletion css/frontend/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
21 changes: 21 additions & 0 deletions css/frontend/variation_1.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
17 changes: 17 additions & 0 deletions css/frontend/variation_high_contrast.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 58d7c0f

Please sign in to comment.