From fd23c4bb2d1f924265c79b3b0b577d86956023de Mon Sep 17 00:00:00 2001 From: ebremner <ebremner@uwaterloo.ca> Date: Tue, 1 Jun 2021 15:55:18 -0400 Subject: [PATCH] ISTWCMS-4695: fixing small text in banners --- css/styles.css | 24 +++++++------------ .../04-components/banners/_banners.scss | 21 ---------------- .../card/card--banner/_card--banner.scss | 20 ++++++++++++---- 3 files changed, 24 insertions(+), 41 deletions(-) delete mode 100644 source/_patterns/04-components/banners/_banners.scss diff --git a/css/styles.css b/css/styles.css index d10a3b12..da31632a 100644 --- a/css/styles.css +++ b/css/styles.css @@ -2948,17 +2948,6 @@ ul.toolbar-menu { .uw-anchor__url { text-align: center; } -.card.banner .card__title a { - text-decoration: none; } - .card.banner .card__title a:hover { - text-decoration: underline; } - -.card.banner .card__header .sub-title { - color: #fff; } - -.card.banner .card__header h2 { - margin: 0; } - .block { margin-bottom: 1rem; } @@ -3518,6 +3507,11 @@ button { position: absolute; text-align: center; width: 100%; } + .card.banner .card__header h2 { + margin: 0; } + .card.banner .card__header .sub-title { + color: #fff; + font-family: "BureauGrotCond Book","Barlow Condensed",impact,"avenir next condensed heavy","Droid Sans",sans-serif; } .card.banner .card__media { margin-bottom: 0; } @@ -3529,10 +3523,10 @@ button { font-family: "BureauGrotCond Book","Barlow Condensed",impact,"avenir next condensed heavy","Droid Sans",sans-serif; font-weight: 400; letter-spacing: .045rem; - text-align: center; } - -.card.banner .sub-title { - color: #fdd54f; } + text-align: center; + text-decoration: none; } + .card.banner .card__title a:hover { + text-decoration: underline; } .uw-colour-bar__cbarorg-default__uw-gold--lvl1 { background-color: #fffaaa; } diff --git a/source/_patterns/04-components/banners/_banners.scss b/source/_patterns/04-components/banners/_banners.scss deleted file mode 100644 index fb186b92..00000000 --- a/source/_patterns/04-components/banners/_banners.scss +++ /dev/null @@ -1,21 +0,0 @@ -.card.banner { - .card__title { - a { - text-decoration: none; - - &:hover { - text-decoration: underline; - } - } - } - - .card__header { - .sub-title { - color: $uw-white; - } - - h2 { - margin: 0; - } - } -} diff --git a/source/_patterns/04-components/card/card--banner/_card--banner.scss b/source/_patterns/04-components/card/card--banner/_card--banner.scss index b062fe1c..f118975d 100644 --- a/source/_patterns/04-components/card/card--banner/_card--banner.scss +++ b/source/_patterns/04-components/card/card--banner/_card--banner.scss @@ -14,6 +14,15 @@ position: absolute; text-align: center; width: 100%; + + h2 { + margin: 0; + } + + .sub-title { + color: $uw-white; + font-family: "BureauGrotCond Book","Barlow Condensed",impact,"avenir next condensed heavy","Droid Sans",sans-serif; + } } .card__media { @@ -29,10 +38,11 @@ font-weight: 400; letter-spacing: .045rem; text-align: center; - } - } + text-decoration: none; - .sub-title { - color: $uw-gold; + &:hover { + text-decoration: underline; + } + } } -} \ No newline at end of file +} -- GitLab