Skip to content

Commit 34de30e

Browse files
authored
Fix top margins on cards (#117)
1 parent 6f2ae82 commit 34de30e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Card.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939

4040
.card .title {
41-
margin-top: 1em;
41+
margin-top: 0;
4242
margin-bottom: 0.75rem;
4343
}
4444

@@ -53,11 +53,11 @@
5353
display: inline;
5454
}
5555

56-
.card *:first-child {
56+
.card > div:first-child > *:first-child {
5757
margin-top: 0;
5858
}
5959

60-
.card *:last-child {
60+
.card > div:last-child > *:last-child {
6161
margin-bottom: 0;
6262
}
6363

0 commit comments

Comments
 (0)