Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Course Theme - Fix post title spacings for course and lesson default #7294

Open
wants to merge 9 commits into
base: trunk
Choose a base branch
from
7 changes: 7 additions & 0 deletions course/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,13 @@ body.page-template-page-wide-width footer .wp-block-group {
/*
* Sensei-specific styles
*/
body[class*="-template-single-course"] .wp-block-post-title,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that the following 2 CSS classes are the ones that style courses and lessons, so I'm wondering which use case this selector is needed for?

body.course-template-default .wp-block-post-title,
body.single-lesson:not(.sensei-course-theme) .wp-block-post-title {
margin-top: clamp(0.875rem, -0.394rem + 4.231vw, 2.25rem);
margin-bottom: clamp(2.5rem, 0.192rem + 7.692vw, 5rem);
}

.wp-block-sensei-lms-course-overview a {
text-decoration: underline;
}
Expand Down
2 changes: 1 addition & 1 deletion course/templates/single-course.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<main class="wp-block-group" style="margin-bottom:80px;">
<!-- wp:group {"layout":{"inherit":true,"type":"constrained","contentSize":"1000px"}} -->
<div class="wp-block-group">
<!-- wp:post-title {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"5rem"}}}} /-->
<!-- wp:post-title {"level":1,"align":"wide"} /-->
</div>
<!-- /wp:group -->

Expand Down
2 changes: 1 addition & 1 deletion course/templates/single-lesson.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<main class="wp-block-group" style="margin-bottom:80px">
<!-- wp:group {"layout":{"inherit":true,"type":"constrained","contentSize":"1000px"}} -->
<div class="wp-block-group">
<!-- wp:post-title {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"2.5rem"}}}} /-->
<!-- wp:post-title {"level":1,"align":"wide"} /-->
</div>
<!-- /wp:group -->

Expand Down