Skip to content

Commit 2b0f773

Browse files
committed
feat: 버튼, option 인터랙션 추가
1 parent 8b3b94b commit 2b0f773

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

apps/web/src/pages/quiz/style.css.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ export const optionCard = recipe({
6969
flexDirection: "column",
7070
alignItems: "start",
7171
gap: "12px",
72+
73+
"@media": {
74+
"(hover)": {
75+
":hover": {
76+
transform: "scale(1.05)",
77+
transition: "transform 0.2s ease-in",
78+
},
79+
},
80+
},
7281
},
7382
variants: {
7483
selected: {

packages/ui/src/components/Button/style.css.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ export const button = recipe({
2626
cursor: "not-allowed",
2727
pointerEvents: "none",
2828
},
29+
30+
"@media": {
31+
"(hover: none)": {
32+
":active": {
33+
transform: "scale(0.95)",
34+
transition: "transform 0.2s ease-in",
35+
},
36+
},
37+
},
2938
},
3039

3140
variants: {

0 commit comments

Comments
 (0)