From aba12c6e73c15c4622ddc8c9c62e8907f0eb5456 Mon Sep 17 00:00:00 2001
From: Kevin Lin <kevinl@cs.uw.edu>
Date: Sat, 19 Sep 2020 14:34:08 -0700
Subject: [PATCH] Migrate module heading to content

---
 _layouts/module.html     |  1 -
 _modules/week-01.md      |  3 +++
 _modules/week-02.md      |  3 +++
 _sass/custom/card.scss   |  2 +-
 _sass/custom/module.scss | 15 +++++++++++++--
 5 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/_layouts/module.html b/_layouts/module.html
index 490feed..16c0fd1 100644
--- a/_layouts/module.html
+++ b/_layouts/module.html
@@ -1,4 +1,3 @@
 <div class="module">
-  <h2 id="{{ page.title | slugify }}">{{ page.title }}</h2>
   {{ content }}
 </div>
diff --git a/_modules/week-01.md b/_modules/week-01.md
index 9af2bd4..fd6d991 100644
--- a/_modules/week-01.md
+++ b/_modules/week-01.md
@@ -2,6 +2,9 @@
 title: Introduction to Java
 ---
 
+## Introduction to Java
+{: .text-gamma }
+
 Sep 28
 : [Java & Git](#)
   : [1.1](#)
diff --git a/_modules/week-02.md b/_modules/week-02.md
index 86b8eb3..e1ea22a 100644
--- a/_modules/week-02.md
+++ b/_modules/week-02.md
@@ -2,6 +2,9 @@
 title: Basic Data Structures
 ---
 
+## Basic Data Structures
+{: .text-gamma }
+
 Oct 5
 : [Linked Lists & Encapsulation](#)
   : [3.1](#), [2.2](#), [2.3](#)
diff --git a/_sass/custom/card.scss b/_sass/custom/card.scss
index 919164e..7d3b6d6 100644
--- a/_sass/custom/card.scss
+++ b/_sass/custom/card.scss
@@ -13,7 +13,7 @@
   display: flex;
   flex-direction: column;
   min-width: 0;
-  padding: $sp-2 $sp-4 0;
+  padding: 0 $sp-4;
   position: relative;
   word-wrap: break-word;
 
diff --git a/_sass/custom/module.scss b/_sass/custom/module.scss
index fcb7b0e..6c1ab68 100644
--- a/_sass/custom/module.scss
+++ b/_sass/custom/module.scss
@@ -2,8 +2,15 @@
 .module {
   @extend %card;
 
-  h1, h2 {
-    @extend .text-gamma;
+  h1,
+  h2,
+  h3,
+  h4,
+  h5,
+  h6 {
+    &:first-child {
+      margin-top: $sp-4;
+    }
   }
 
   >dl {
@@ -13,6 +20,10 @@
     grid-template-columns: max-content 1fr;
     margin: $sp-2 (-$sp-4);
 
+    &:first-child {
+      margin-top: 0;
+    }
+
     &:last-child {
       margin-bottom: 0;
     }
-- 
GitLab