From 771fd1b0524f32bbb2b9d1ec1e324aeae56706d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CAmjad?= Date: Tue, 24 Nov 2026 04:01:30 +0500 Subject: [PATCH] Keep Masteriyo's curriculum hover readable and the Courses title whole On a dark palette, hovering a closed section in the Immersive layout's course content list painted Masteriyo's near-white grey behind the palette's light title, hiding it. The hover now takes the palette's soft fill, and that grey maps to a palette fill everywhere Masteriyo reads it, the wire-transfer box at checkout included. On the Courses page between phone and desktop widths, the title could shrink below its own word and run under the view switch. It now keeps its longest word, and the switch and search wrap to the right edge of a second line. Synced from lattice's generated masteriyo.css. --- assets/css/masteriyo.css | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/css/masteriyo.css b/assets/css/masteriyo.css index 5955872..2e73108 100644 --- a/assets/css/masteriyo.css +++ b/assets/css/masteriyo.css @@ -24,6 +24,9 @@ --masteriyo-text-color: var(--wp--custom--color--text-strong); --masteriyo-color-border: var(--wp--custom--color--stroke-weak); --masteriyo-color-white: var(--wp--custom--color--background-base); + + /* The checkout's wire-transfer box and the Immersive curriculum hover read this near-white. */ + --masteriyo-color-grey-lighter: var(--wp--custom--color--fill-weaker); --masteriyo-color-danger: var(--wp--custom--color--fill-error-strong); --masteriyo-color-info: var(--wp--custom--color--fill-info-strong); --masteriyo-color-success: var(--wp--custom--color--fill-success-strong); @@ -540,7 +543,7 @@ body.masteriyo-courses-page { max-width: var(--wp--style--global--wide-size); } -/* masteriyo/courses-archive: the title leads the row Masteriyo prints after the search, and shrinks so the search and switch fit. */ +/* masteriyo/courses-archive: the title leads the row Masteriyo prints after the search; narrower than its longest word, the search and switch wrap under it instead. */ .masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) > .masteriyo-courses-header { display: flex; flex: 1 1 0; @@ -548,7 +551,7 @@ body.masteriyo-courses-page { float: none; justify-content: center; min-height: var(--wp--custom--control--md); - min-width: 0; + min-width: min-content; order: -1; width: auto; } @@ -560,7 +563,7 @@ body.masteriyo-courses-page { flex-direction: row; gap: var(--wp--preset--spacing--25); justify-content: flex-end; - margin: 0; + margin: 0 0 0 auto; min-width: 0; padding-bottom: 0; row-gap: var(--wp--preset--spacing--20); @@ -1041,6 +1044,11 @@ body.masteriyo-courses-page { border-radius: 0; } +/* masteriyo/single-course-immersive: a hovered closed header on the soft fill; Masteriyo's near-white hides a dark palette's title. */ +.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-bottom__accordion--header:hover { + background: var(--wp--custom--color--fill-weak); +} + /* masteriyo/single-course-immersive, masteriyo/course-author: the instructor card on the vibe's card face and inset. */ .masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-instructor__card { background: var(--wp--custom--store-card--background);