From 64b5d1d92c64b26d451aa52d59b8d027602e0508 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Tue, 23 Jul 2024 18:43:14 +1200 Subject: [PATCH] 2024 Theme: Revert responsive changes to last breadcrumb on other sensei pages See https://github.com/WordPress/Learn/issues/2637 --- .../wporg-learn-2024/src/style/_sensei.scss | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) 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 317d1ac2b..17ff31fdb 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 @@ -65,22 +65,25 @@ body.sensei { } } - // Hide the Lesson title breadcrumb as it's already displayed in the h1, and the leading slash. - @media screen and (max-width: 1024px) { - .wp-block-wporg-site-breadcrumbs span { - &:last-child, - &:nth-child(3)::after { - display: none; + &.single-lesson { + + // Hide the Lesson title breadcrumb as it's already displayed in the h1, and the leading slash. + @media screen and (max-width: 1024px) { + .wp-block-wporg-site-breadcrumbs span { + &:last-child, + &:nth-child(3)::after { + display: none; + } } } - } - // Leave only the 'Home' breadcrumb. The 'Exit Course' button enables navigating to the parent course. - @media screen and (max-width: 600px) { - .wp-block-wporg-site-breadcrumbs span { - &:not(:first-child), - &::after { - display: none; + // Leave only the 'Home' breadcrumb. The 'Exit Course' button enables navigating to the parent course. + @media screen and (max-width: 600px) { + .wp-block-wporg-site-breadcrumbs span { + &:not(:first-child), + &::after { + display: none; + } } } }