Skip to content

Commit faf3662

Browse files
committed
Add fancy stuff to card
1 parent 935cce0 commit faf3662

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

styles/card.module.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
background-color: var(--bg);
66
text-align: center;
77
align-items: center;
8+
box-shadow: 0 0 0 0 var(--primary);
9+
transition: 0.15s;
10+
}
11+
12+
.card:hover {
13+
box-shadow: 10px 10px 0 0 var(--primary);
14+
transform: translate(-10px, -10px);
15+
}
16+
17+
.card:active {
18+
box-shadow: 3px 3px 0 0 var(--primary);
19+
transform: translate(-3px, -3px);
820
}
921

1022
.card:has(*) {

0 commit comments

Comments
 (0)