From b131ebb32cc49063bd87cb38093173391d03e6c3 Mon Sep 17 00:00:00 2001 From: Kevin Lin <kevinl@cs.uw.edu> Date: Fri, 26 Jun 2020 16:30:59 -0700 Subject: [PATCH] Introduce card-meta class for modules --- _layouts/module.html | 2 +- _sass/custom/card.scss | 6 ++++++ _sass/custom/module.scss | 8 +++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/_layouts/module.html b/_layouts/module.html index ecb3969..835e882 100644 --- a/_layouts/module.html +++ b/_layouts/module.html @@ -1,5 +1,5 @@ <div class="module"> - <h3 class="module-header"><strong class="module-week">{{ page.week }}</strong> {{ page.title }}</h3> + <h3 class="module-header"><strong class="module-meta">{{ page.week }}</strong> {{ page.title }}</h3> {% if page.days %} <dl class="module-days"> {% for day in page.days %} diff --git a/_sass/custom/card.scss b/_sass/custom/card.scss index 8d67cb0..35e7c29 100644 --- a/_sass/custom/card.scss +++ b/_sass/custom/card.scss @@ -23,3 +23,9 @@ .card-body { flex: 1 1 auto; } + +.card-meta { + @extend .label; + border-radius: $border-radius; + padding-bottom: 0; +} diff --git a/_sass/custom/module.scss b/_sass/custom/module.scss index d87dd8a..1f57c4a 100644 --- a/_sass/custom/module.scss +++ b/_sass/custom/module.scss @@ -60,9 +60,8 @@ } .label { - border-radius: $border-radius; + @extend .card-meta; margin-left: 0; - padding-bottom: 0; &.label-hw-out { @extend .label-yellow; @@ -79,9 +78,8 @@ } } -.module-week { - @extend .label, .text-grey-dk-100, .bg-grey-lt-200; - border-radius: $border-radius; +.module-meta { + @extend .card-meta, .text-grey-dk-100, .bg-grey-lt-200; } .module-header { -- GitLab