diff --git a/source/wp-content/themes/wporg-main-2022/src/style/_print.scss b/source/wp-content/themes/wporg-main-2022/src/style/_print.scss new file mode 100644 index 00000000..051dee61 --- /dev/null +++ b/source/wp-content/themes/wporg-main-2022/src/style/_print.scss @@ -0,0 +1,45 @@ +@media print { + body.home { + + /* Adjust image sizes on homepage. */ + .wp-block-image img { + max-width: 100%; + + &[src*="wcus-logo.png"] { + max-width: 200px; + } + + &.wp-image-39764, + &.wp-image-39766, + &.wp-image-39765 { + max-width: 300px; + } + } + } + + /* About page: Put title all on one line. */ + .wporg-about-cover-title { + display: block !important; + } + + /* About page: Adjust freedom font sizes and number alignment. */ + .wp-block-group[class*="wporg-about-section-freedom-"] { + break-inside: avoid; + + .wp-block-columns { + flex-wrap: nowrap !important; + + > :first-child { + flex-basis: min-content !important; + } + + > :last-child { + padding-bottom: 0 !important; + } + } + + h3 { + font-size: var(--wp--preset--font-size--heading-cta) !important; + } + } +} diff --git a/source/wp-content/themes/wporg-main-2022/src/style/style.scss b/source/wp-content/themes/wporg-main-2022/src/style/style.scss index 554ba6dd..a709fef1 100644 --- a/source/wp-content/themes/wporg-main-2022/src/style/style.scss +++ b/source/wp-content/themes/wporg-main-2022/src/style/style.scss @@ -5,6 +5,7 @@ @import "fluid"; @import "banners"; +@import "print"; /* * Override inline paddings with the spacing preset.