Skip to content

Commit

Permalink
2024 Theme: Revert responsive changes to last breadcrumb on other sen…
Browse files Browse the repository at this point in the history
…sei pages

See #2637
  • Loading branch information
adamwoodnz committed Jul 23, 2024
1 parent e134bc2 commit 64b5d1d
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
}
Expand Down

0 comments on commit 64b5d1d

Please sign in to comment.