misc_pterodactyl-panel/resources/assets/styles/components/buttons.css

70 lines
1.2 KiB
CSS
Raw Normal View History

2018-03-31 21:33:10 +00:00
.btn {
@apply .rounded .p-2;
2018-08-25 21:43:21 +00:00
transition: all 100ms ease-in-out;
2018-03-31 21:33:10 +00:00
/**
* Button Colors
*/
2019-02-09 22:44:35 +00:00
&.btn-primary {
@apply .bg-primary-500 .border-primary-600 .border .text-white;
2018-03-31 21:33:10 +00:00
&:hover:enabled {
2019-02-09 22:44:35 +00:00
@apply .bg-primary-600 .border-primary-800;
2018-03-31 21:33:10 +00:00
}
}
2018-06-16 23:25:26 +00:00
&.btn-green {
2019-02-09 22:36:39 +00:00
@apply .bg-green-500 .border-green-600 .border .text-white;
2018-06-16 23:25:26 +00:00
&:hover:enabled {
2019-02-09 22:36:39 +00:00
@apply .bg-green-600 .border-green-800;
2018-06-16 23:25:26 +00:00
}
}
&.btn-red {
2018-08-25 21:43:21 +00:00
&:not(.btn-secondary) {
@apply .bg-red-500 .border-red-600 .border .text-white;
2018-08-25 21:43:21 +00:00
}
&:hover:enabled {
@apply .bg-red-600 .border-red-800;
}
}
2018-06-12 05:36:43 +00:00
&.btn-secondary {
@apply .border .border-neutral-400 .text-neutral-600;
2018-06-12 05:36:43 +00:00
&:hover:enabled {
@apply .borderneutral-500s.text-neutral-800;
2018-06-12 05:36:43 +00:00
}
2018-08-25 21:43:21 +00:00
&.btn-red:hover:enabled {
@apply .bg-red-600 .border-red-800 .text-white;
2018-08-25 21:43:21 +00:00
}
2018-06-12 05:36:43 +00:00
}
2018-03-31 21:33:10 +00:00
/**
* Button Sizes
*/
&.btn-jumbo {
@apply .p-4 .w-full .uppercase .tracking-wide .text-sm;
}
&.btn-lg {
@apply .p-4 .uppercase .tracking-wide .text-sm;
}
2018-06-12 05:36:43 +00:00
&.btn-sm {
@apply .px-6 .py-3 .uppercase .tracking-wide .text-sm;
}
2018-08-25 21:43:21 +00:00
&.btn-xs {
@apply .py-2 .px-2 .uppercase .text-xs;
}
&:disabled, &.disabled {
opacity: 0.55;
cursor: default;
}
2018-03-31 21:33:10 +00:00
}