From a387cff32e9c6d5985bbce840dbbfeaf89f1b953 Mon Sep 17 00:00:00 2001 From: Kevin Lin <kevinl@cs.uw.edu> Date: Tue, 23 Jun 2020 08:57:49 -0700 Subject: [PATCH] _sass: Inline module-label mixin --- _sass/custom/mixins.scss | 5 ----- _sass/custom/module.scss | 26 ++++++++++++++------------ 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/_sass/custom/mixins.scss b/_sass/custom/mixins.scss index a337fce..6bd5d3e 100644 --- a/_sass/custom/mixins.scss +++ b/_sass/custom/mixins.scss @@ -21,8 +21,3 @@ margin: $sp-2 0; } } - -@mixin module-label() { - margin-left: 0; - padding-bottom: 0; -} diff --git a/_sass/custom/module.scss b/_sass/custom/module.scss index e6d8f26..6a87c1a 100644 --- a/_sass/custom/module.scss +++ b/_sass/custom/module.scss @@ -87,19 +87,21 @@ padding-top: 0; } } -} -.label.label-hw-out { - @extend .label-yellow; - @include module-label(); -} + .label { + margin-left: 0; + padding-bottom: 0; -.label.label-hw-due { - @extend .label-red; - @include module-label(); -} + &.label-hw-out { + @extend .label-yellow; + } -.label.label-section { - @extend .label-purple; - @include module-label(); + &.label-hw-due { + @extend .label-red; + } + + &.label-section { + @extend .label-purple; + } + } } -- GitLab