Skip to content

Commit

Permalink
2024 Theme: Fix course content and sidebar vertical alignment
Browse files Browse the repository at this point in the history
Closes #2677
  • Loading branch information
adamwoodnz committed Jul 18, 2024
1 parent f48869c commit 23754c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions wp-content/themes/pub/wporg-learn-2024/src/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ body {
--wp-components-color-accent-darker-10: var(--wp--preset--color--deep-blueberry);
}

// Parent theme sets top margin on these headings, but this breaks
// vertical alignment with the sidebar on the courses page
.wp-block-post-content {
> h2,
> h3 {
&:first-child {
margin-top: unset;
}
}
}

// Ensure nested elements in containers with rounded corners are cropped to match
// eg. card featured images
[style*="border-radius:2px"] {
Expand Down

0 comments on commit 23754c1

Please sign in to comment.