From 39ac40040b75535aa008816281908859ca586c7b Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:33:29 +1200 Subject: [PATCH] Fix alignment of section header rows --- .../pub/wporg-learn-2020/archive-course.php | 8 +++-- .../wporg-learn-2020/archive-lesson-plan.php | 12 ++++--- .../archive-wporg_workshop.php | 2 +- .../css/components/_search-form.scss | 10 +++--- .../css/components/_section.scss | 15 +++------ .../pub/wporg-learn-2020/front-page.php | 32 +++++++++++-------- .../page-content-calendar.php | 2 +- .../page-online-workshops.php | 2 +- .../themes/pub/wporg-learn-2020/page.php | 2 +- .../themes/pub/wporg-learn-2020/search.php | 2 +- .../taxonomy-wporg_lesson_plan_series.php | 2 +- .../template-parts/content-single.php | 2 +- .../content-workshop-single-hardcoded.php | 2 +- .../content-workshop-single.php | 2 +- 14 files changed, 48 insertions(+), 47 deletions(-) diff --git a/wp-content/themes/pub/wporg-learn-2020/archive-course.php b/wp-content/themes/pub/wporg-learn-2020/archive-course.php index a4ea564099..9c44f14310 100644 --- a/wp-content/themes/pub/wporg-learn-2020/archive-course.php +++ b/wp-content/themes/pub/wporg-learn-2020/archive-course.php @@ -20,10 +20,12 @@
-
- ', '' ); ?> +
+ ', '' ); ?> - +
diff --git a/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php b/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php index 8fac539d1a..9b1125d5a6 100644 --- a/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php +++ b/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php @@ -19,11 +19,13 @@ if ( '' === get_query_var( 'search' ) && empty( $_GET ) && is_post_type_archive() ) : ?>
-
-

- - - +
+

+

diff --git a/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php b/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php index 64350b984a..a5ff024871 100644 --- a/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php +++ b/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php @@ -23,7 +23,7 @@
-
+
', '' ); ?> label { position: absolute; - transform: translateY(-2rem); + transform: translateY(-1 * $label-position); } input { diff --git a/wp-content/themes/pub/wporg-learn-2020/css/components/_section.scss b/wp-content/themes/pub/wporg-learn-2020/css/components/_section.scss index 1ba4252593..5b6ce98db2 100644 --- a/wp-content/themes/pub/wporg-learn-2020/css/components/_section.scss +++ b/wp-content/themes/pub/wporg-learn-2020/css/components/_section.scss @@ -1,15 +1,4 @@ .section-heading { - &.row { - - @media only screen and (min-width: $breakpoint-tablet) { - align-items: baseline; - } - - .button { - align-self: center; - } - } - &_title, &_link { @@ -35,6 +24,10 @@ &_links { gap: 1rem; flex-direction: row; + + @media only screen and (min-width: 769px) { + justify-content: flex-end; + } } &_link { diff --git a/wp-content/themes/pub/wporg-learn-2020/front-page.php b/wp-content/themes/pub/wporg-learn-2020/front-page.php index dccb2a8fcb..1e5052336f 100644 --- a/wp-content/themes/pub/wporg-learn-2020/front-page.php +++ b/wp-content/themes/pub/wporg-learn-2020/front-page.php @@ -33,9 +33,9 @@
-
-

-