Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions assets/css/masteriyo.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -540,15 +543,15 @@ 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;
flex-direction: column;
float: none;
justify-content: center;
min-height: var(--wp--custom--control--md);
min-width: 0;
min-width: min-content;
order: -1;
width: auto;
}
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
Loading