2023-06-14 20:40:26 +08:00
|
|
|
@layer components {
|
|
|
|
.sci-btn-group {
|
2023-07-11 03:09:29 +08:00
|
|
|
@apply inline-flex items-center gap-2 relative;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
2024-02-21 19:33:30 +08:00
|
|
|
@apply relative inline-flex items-center text-sm shrink-0 gap-2 justify-center px-4 rounded border border-solid appearance-none whitespace-nowrap cursor-pointer h-[40px] focus:outline-none;
|
2023-09-14 18:12:15 +08:00
|
|
|
border-color: transparent;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.icon-btn {
|
|
|
|
@apply px-2 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-lg {
|
2024-02-21 19:33:30 +08:00
|
|
|
@apply px-[1.125rem] text-base h-[44px];
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-lg.icon-btn {
|
|
|
|
@apply px-2.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-sm {
|
2024-02-21 19:33:30 +08:00
|
|
|
@apply px-2.5 text-xs h-[36px];
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-sm.icon-btn {
|
|
|
|
@apply px-1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-xs {
|
2024-02-21 19:33:30 +08:00
|
|
|
@apply px-2.5 text-xs h-[30px];
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-xs.icon-btn {
|
|
|
|
@apply px-0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn:hover {
|
|
|
|
@apply no-underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn:focus {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply no-underline outline-none text-sn-white;
|
2023-06-19 21:45:22 +08:00
|
|
|
}
|
2023-06-14 20:40:26 +08:00
|
|
|
|
2023-06-19 21:45:22 +08:00
|
|
|
.btn:active {
|
|
|
|
box-shadow: none;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn:disabled,
|
|
|
|
.btn.disabled {
|
|
|
|
@apply cursor-not-allowed pointer-events-none;
|
|
|
|
}
|
|
|
|
|
2023-06-20 21:53:33 +08:00
|
|
|
.btn.btn-primary,
|
|
|
|
.btn.btn-success {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-blue text-sn-white;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
2023-06-20 21:53:33 +08:00
|
|
|
.btn.btn-primary:hover,
|
2024-02-27 20:03:41 +08:00
|
|
|
.btn.btn-success:hover,
|
|
|
|
.btn.btn-primary:focus,
|
|
|
|
.btn.btn-success:focus{
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-blue-hover text-sn-white;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-primary:disabled,
|
2023-06-20 21:53:33 +08:00
|
|
|
.btn.btn-primary.disabled,
|
|
|
|
.btn.btn-success:disabled,
|
|
|
|
.btn.btn-success.disabled {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-light-grey text-sn-sleepy-grey border-sn-light-grey;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
2023-06-19 21:45:22 +08:00
|
|
|
.btn.btn-secondary,
|
|
|
|
.btn.btn-default {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-white text-sn-blue border-sn-light-grey;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
2023-06-29 19:38:59 +08:00
|
|
|
.btn.btn-shared {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-science-blue text-sn-white border-sn-white;
|
2023-06-29 19:38:59 +08:00
|
|
|
}
|
|
|
|
|
2023-06-19 21:45:22 +08:00
|
|
|
.btn.btn-secondary:hover,
|
2024-02-27 20:03:41 +08:00
|
|
|
.btn.btn-default:hover,
|
|
|
|
.btn.btn-secondary:focus {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply border-sn-blue-hover;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
2023-06-29 19:38:59 +08:00
|
|
|
.btn.btn-shared:hover {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply border-sn-light-grey;
|
2023-06-29 19:38:59 +08:00
|
|
|
}
|
|
|
|
|
2023-06-14 20:40:26 +08:00
|
|
|
.btn.btn-secondary:disabled,
|
2023-06-19 21:45:22 +08:00
|
|
|
.btn.btn-secondary.disabled,
|
|
|
|
.btn.btn-default:disabled,
|
|
|
|
.btn.btn-default.disabled {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-white text-sn-sleepy-grey;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
2023-06-29 19:38:59 +08:00
|
|
|
.btn.btn-shared:disabled,
|
|
|
|
.btn.btn-shared.disabled {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-white text-sn-sleepy-grey border-sn-light-grey;
|
2023-06-29 19:38:59 +08:00
|
|
|
}
|
|
|
|
|
2023-06-14 20:40:26 +08:00
|
|
|
.btn.btn-light {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-transparent text-sn-blue border-transparent;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-light.btn-black {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply text-sn-black;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
2023-06-19 21:45:22 +08:00
|
|
|
.btn.btn-light.btn-white {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply text-sn-white;
|
2023-06-19 21:45:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-light.btn-white:hover {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-transparent;
|
2023-06-19 21:45:22 +08:00
|
|
|
}
|
|
|
|
|
2023-06-14 20:40:26 +08:00
|
|
|
.btn.btn-light:hover {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-super-light-grey;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-light:disabled,
|
|
|
|
.btn.btn-light.disabled {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply text-sn-sleepy-grey;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-danger {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-delete-red text-sn-white;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
2024-02-27 20:03:41 +08:00
|
|
|
.btn.btn-danger:hover,
|
|
|
|
.btn.btn-danger:focus {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-delete-red-hover;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-danger:disabled,
|
|
|
|
.btn.btn-danger.disabled {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-delete-red-disabled;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
2023-10-12 21:46:13 +08:00
|
|
|
|
|
|
|
.btn-text-link {
|
|
|
|
@apply text-sn-blue text-sm cursor-pointer
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-text-link:visited,
|
|
|
|
.btn-text-link:hover {
|
|
|
|
@apply text-sn-blue no-underline
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-text-link.disabled,
|
|
|
|
.btn-text-link:disabled {
|
|
|
|
@apply text-sn-sleepy-grey
|
|
|
|
}
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|