Skip to content

Commit d84fc51

Browse files
committed
[#44] 💄 Add custom radio input class styling
1 parent 591dc7e commit d84fc51

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

‎src/styles/globals.css‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,21 @@ select {
1414
outline: 0;
1515
cursor: pointer;
1616
}
17+
18+
input[type='radio'] {
19+
display: none;
20+
}
21+
.custom-radio {
22+
@apply relative inline-block h-20 w-20 cursor-pointer rounded-full border-[1.4px] border-solid border-gray-300;
23+
}
24+
.custom-radio::before {
25+
content: '';
26+
@apply absolute left-1/2 top-1/2 block h-12 w-12 -translate-x-1/2 -translate-y-1/2 rounded-full;
27+
}
28+
input[type='radio']:checked + .custom-radio {
29+
@apply border-primary-normal;
30+
}
31+
32+
input[type='radio']:checked + .custom-radio::before {
33+
@apply bg-primary-normal;
34+
}

0 commit comments

Comments
 (0)