From b95687f666c3d070ddf5261acfc678e1b6416b85 Mon Sep 17 00:00:00 2001 From: Rob Rusher Date: Fri, 1 Dec 2023 13:17:50 -0700 Subject: [PATCH] Cards block variant for Shade Icon (#172) * add styles for variant * add icons * add space below card for this variant --------- Co-authored-by: Bryan Stopp --- blocks/cards/cards.css | 35 ++++++++++++++++++++++++++++++++++- icons/community.svg | 11 +++++++++++ icons/estimate.svg | 11 +++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 icons/community.svg create mode 100644 icons/estimate.svg diff --git a/blocks/cards/cards.css b/blocks/cards/cards.css index ff629085..72d1dded 100644 --- a/blocks/cards/cards.css +++ b/blocks/cards/cards.css @@ -6,6 +6,10 @@ width: 100%; } +.cards.block.shade-icon { + margin-bottom: 40px; +} + .cards.block .title { padding: 2em 0; } @@ -127,10 +131,40 @@ letter-spacing: var(--letter-spacing-xs); } +.cards.block.shade-icon .cards-list .cards-item .card-body p { + text-align: center; + margin-bottom: 10px; +} + .section.grey-background .cards.block .cards-list .cards-item .card-image p { background-color: var(--light-grey); } +.cards.block.shade-icon .cards-list { + gap: 70px; + max-width: 83.333%; +} + +.cards.block.shade-icon .cards-list .cards-item { + background-color: var(--light-grey); + border-top: 1px solid #000; + min-height: 274px; + align-items: center; + justify-content: center; +} + +.cards.block.shade-icon .cards-list .cards-item .card-body h4 { + text-align: center; + padding: 8px 0 20px; +} + +.cards.block.shade-icon .cards-list .cards-item .card-body .icon img { + margin: 0 auto; + display: block; + height: 35px; + width: 35px; +} + @media screen and (min-width: 600px) { .cards.block.icons { margin: 0 auto; @@ -180,4 +214,3 @@ column-gap: 20px; } } - diff --git a/icons/community.svg b/icons/community.svg new file mode 100644 index 00000000..e0b7a281 --- /dev/null +++ b/icons/community.svg @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/icons/estimate.svg b/icons/estimate.svg new file mode 100644 index 00000000..f5c3ec89 --- /dev/null +++ b/icons/estimate.svg @@ -0,0 +1,11 @@ + \ No newline at end of file