-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This builds on the styles added in WordPress/wporg-parent-2021@0eda271, with styles specific to the home and about pages. See WordPress/wporg-parent-2021#158
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
source/wp-content/themes/wporg-main-2022/src/style/_print.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters