Skip to content

Commit

Permalink
Adding border to cards
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimnet committed Jul 28, 2024
1 parent 069318a commit 92fec30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/components/CheatsheetCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@ const {
<style>
div {
display: grid;
margin-bottom: 2rem;
margin-bottom: 1rem;
background-color: #252525;
padding: 1rem;
border-radius: 8px;

grid-template-areas: "image"
"title"
"description"
"link"
;
gap: .75rem;
gap: 1rem;
}

p {
Expand All @@ -61,6 +64,7 @@ const {

.link {
grid-area: link;
margin-top: auto;
}

.link :global(a) {
Expand Down
3 changes: 2 additions & 1 deletion src/config/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const descriptiveColorVariables = {
safetyOrange: "#FE7600",
amber: "#FFC107",
frenchGrey: "#B0BEC5",
bitterSweet: "#FF5252"
bitterSweet: "#FF5252",
mineShaft: "#252525"
}

const theme = {
Expand Down

0 comments on commit 92fec30

Please sign in to comment.