Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 1407e9d

Browse files
committed
Course styles WIP
1 parent 645e507 commit 1407e9d

File tree

5 files changed

+42
-14
lines changed

5 files changed

+42
-14
lines changed

assets/css/child-styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/src/styles/modules.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,29 @@
300300
}
301301
}
302302

303+
// Course template
304+
&.single-cc_course .single-header--course {
305+
padding-top: 0;
306+
307+
.wrapper {
308+
display: flex;
309+
flex-direction: column;
310+
justify-content: space-between;
311+
align-items: flex-start;
312+
min-height: 350px;
313+
}
314+
315+
.breadcrumbs {
316+
margin-left: $space-larger;
317+
}
318+
319+
.title-box {
320+
z-index: 2;
321+
display: inline-block;
322+
transform: translateY($space-large * 2);
323+
}
324+
}
325+
303326
// Stats shortcode
304327
.stats {
305328
// Hide WordPress generated brs

front/src/styles/shame.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,7 @@ main {
116116
padding-right: $space-normal;
117117
}
118118
}
119+
120+
.has-background-soft-gold {
121+
background-color: #fef6d8;
122+
}
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
<?php
2-
if ( function_exists( 'yoast_breadcrumb' ) ) {
3-
yoast_breadcrumb( '<p class="breadcrumbs breadcrumbs--dark" id="breadcrumbs">', '</p>' );
4-
}
5-
?>
6-
<h2 class="title is-1 has-text-black"><?php the_title(); ?></h2>
1+
<div class="wrapper">
2+
<?php
3+
if ( function_exists( 'yoast_breadcrumb' ) ) {
4+
yoast_breadcrumb( '<p class="breadcrumbs breadcrumbs--dark" id="breadcrumbs">', '</p>' );
5+
}
6+
?>
7+
8+
<div class="padding-vertical-large padding-horizontal-larger has-background-white title-box">
9+
<h2 class="title is-2 has-text-black"><?php the_title(); ?></h2>
10+
</div>
11+
</div>

single-cc_course.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@
33
the_post();
44
?>
55
<section class="main-content">
6-
<header class="single-header">
6+
<header class="single-header single-header--course">
77
<div class="container">
8-
<div class="columns is-centered">
9-
<div class="column is-12">
10-
<?php get_template_part( 'inc/partials/entry/course', 'header' ); ?>
11-
</div>
12-
</div>
8+
<?php get_template_part( 'inc/partials/entry/course', 'header' ); ?>
139
</div>
1410
</header>
1511
<div class="container">
1612
<div class="columns is-centered">
17-
<div class="column is-4">
13+
<div class="column is-4 has-background-soft-gold">
1814
wow
1915
</div>
2016
<div class="column is-8">

0 commit comments

Comments
 (0)