Skip to content

Commit

Permalink
Cards block variant for Shade Icon (#172)
Browse files Browse the repository at this point in the history
* add styles for variant

* add icons

* add space below card for this variant

---------

Co-authored-by: Bryan Stopp <[email protected]>
  • Loading branch information
rrusher and bstopp authored Dec 1, 2023
1 parent 6964195 commit b95687f
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
35 changes: 34 additions & 1 deletion blocks/cards/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
width: 100%;
}

.cards.block.shade-icon {
margin-bottom: 40px;
}

.cards.block .title {
padding: 2em 0;
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -180,4 +214,3 @@
column-gap: 20px;
}
}

11 changes: 11 additions & 0 deletions icons/community.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions icons/estimate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b95687f

Please sign in to comment.