Skip to content

Commit 92fec30

Browse files
committed
Adding border to cards
1 parent 069318a commit 92fec30

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/CheatsheetCard.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@ const {
3131
<style>
3232
div {
3333
display: grid;
34-
margin-bottom: 2rem;
34+
margin-bottom: 1rem;
35+
background-color: #252525;
36+
padding: 1rem;
37+
border-radius: 8px;
3538

3639
grid-template-areas: "image"
3740
"title"
3841
"description"
3942
"link"
4043
;
41-
gap: .75rem;
44+
gap: 1rem;
4245
}
4346

4447
p {
@@ -61,6 +64,7 @@ const {
6164

6265
.link {
6366
grid-area: link;
67+
margin-top: auto;
6468
}
6569

6670
.link :global(a) {

src/config/theme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const descriptiveColorVariables = {
55
safetyOrange: "#FE7600",
66
amber: "#FFC107",
77
frenchGrey: "#B0BEC5",
8-
bitterSweet: "#FF5252"
8+
bitterSweet: "#FF5252",
9+
mineShaft: "#252525"
910
}
1011

1112
const theme = {

0 commit comments

Comments
 (0)