From 92a32c5a764c838173f33dfe844c2768b70a79ca Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:47:53 +1300 Subject: [PATCH] Fix lesson layout Add bottom margin to title, for lessons with only quiz content Remove top margin from lesson navigation to fix verticalalignment with title --- .../pub/wporg-learn-2024/patterns/sensei-lesson-columns.php | 4 ++-- wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-columns.php b/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-columns.php index c4434d459..2da48aeae 100644 --- a/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-columns.php +++ b/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-columns.php @@ -40,9 +40,9 @@ - + - + diff --git a/wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss b/wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss index 50d5ff5a6..ad9f1862d 100644 --- a/wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss +++ b/wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss @@ -213,8 +213,6 @@ body.sensei { } .sensei-lms-course-navigation__lessons { - margin-top: var(--wp--preset--spacing--20); - .sensei-lms-course-navigation-lesson { &.status-in-progress, &.status-not-started {