Skip to content

Commit

Permalink
Merge pull request #4 from Netcentric/update-cards
Browse files Browse the repository at this point in the history
Update cards css
  • Loading branch information
lakshmishriaswathnarayana authored Jun 10, 2024
2 parents 4959bf7 + 13e4ac7 commit 2cc7dd1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions blocks/cards/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(278px, 1fr));
display: flex;
grid-gap: 16px;
}

.cards > ul > li {
border: 1px solid var(--dark-color);
flex: 1;
background-color: var(--background-color);
}

.cards .cards-card-body {
margin: 16px;
margin: 16px 0;
}

.cards .cards-card-image {
Expand All @@ -28,4 +27,15 @@
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
border-radius: 4px;
}

.cards > ul > li p {
font-size: 16px;
}

.cards > ul > li h3 {
font-size: 20px;
font-weight: 600;
line-height: 26px;
}
2 changes: 1 addition & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ button {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-radius: 30px;
border-radius: 5px;
}

a.button:hover,
Expand Down

0 comments on commit 2cc7dd1

Please sign in to comment.