Я использую TailwindCSS и PostCSS, и у меня есть этот код CSS:
.btn {
@apply py-1;
@apply px-4;
@apply border;
@apply rounded;
}
.btn:hover {
@apply bg-white text-black;
}
.btn:focus {
@apply bg-black text-white;
}
Есть ли собственный способ в PostCSS (или с помощью плагина) написать этот код, как показано ниже?
.btn {
@apply py-1;
@apply px-4;
@apply border;
@apply rounded;
&:hover {
@apply bg-white text-black;
}
&:focus {
@apply bg-black text-white;
}
}