adrema/resources/css/buttons.css

57 lines
1.3 KiB
CSS
Raw Normal View History

2021-07-03 23:52:44 +02:00
.btn {
2021-07-05 00:20:39 +02:00
@apply px-3 py-2 uppercase no-underline text-sm items-center justify-center bg-primary-700 rounded;
2021-07-03 23:52:44 +02:00
&.btn-sm {
2021-07-04 21:47:20 +02:00
@apply text-xs px-2 py-1;
2021-07-03 23:52:44 +02:00
svg {
2021-07-04 00:39:39 +02:00
@apply w-3 h-3 text-primary-100 flex-none;
2021-07-03 23:52:44 +02:00
}
}
&.btn-primary {
2021-07-05 00:20:39 +02:00
@apply bg-primary-700 text-primary-300;
2021-07-17 17:18:03 +02:00
&:not(.disabled):hover {
2021-07-05 00:20:39 +02:00
@apply bg-primary-500 text-primary-100;
2021-07-03 23:52:44 +02:00
}
}
2021-07-04 16:56:07 +02:00
&.btn-primary-light {
2021-07-05 00:20:39 +02:00
@apply bg-primary-600 text-primary-200;
2021-07-17 17:18:03 +02:00
&:not(.disabled):hover {
2021-07-05 00:20:39 +02:00
@apply bg-primary-500 text-primary-100;
2021-07-04 16:56:07 +02:00
}
}
2021-07-04 00:39:39 +02:00
&.btn-warning {
@apply bg-yellow-700;
2021-07-17 17:18:03 +02:00
&:not(.disabled):hover {
2021-07-04 00:39:39 +02:00
@apply bg-yellow-500;
}
}
&.btn-info {
2021-07-17 18:46:02 +02:00
@apply bg-blue-700 text-blue-300;
2021-07-17 17:18:03 +02:00
&:not(.disabled):hover {
2021-07-17 18:46:02 +02:00
@apply bg-blue-500 text-blue-100;
2021-07-04 00:39:39 +02:00
}
}
2021-07-03 23:52:44 +02:00
&.btn-danger {
@apply bg-red-700;
2021-07-17 17:18:03 +02:00
&:not(.disabled):hover {
2021-07-03 23:52:44 +02:00
@apply bg-red-500;
}
}
2021-07-04 16:56:07 +02:00
&.label {
2021-07-05 00:20:39 +02:00
@apply py-0 h-6 flex justify-center items-center rounded-full leading-none transition-all normal-case;
2021-07-04 16:56:07 +02:00
}
&.icon {
@apply p-0 flex justify-center items-center w-6 h-6;
svg {
2021-07-05 00:20:39 +02:00
@apply w-3 h-3 flex-none;
2021-07-04 16:56:07 +02:00
}
}
2021-07-17 17:18:03 +02:00
&.disabled {
@apply opacity-50;
}
2021-07-03 23:52:44 +02:00
}