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 {
|
2023-06-20 21:53:33 +08:00
|
|
|
@apply relative inline-flex items-center text-sm shrink-0 gap-2 justify-center leading-5 py-2 px-4 rounded border-0 appearance-none whitespace-nowrap cursor-pointer;
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.icon-btn {
|
|
|
|
@apply px-2 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-lg {
|
|
|
|
@apply py-2.5 px-[1.125rem] text-base leading-5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-lg.icon-btn {
|
|
|
|
@apply px-2.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-sm {
|
|
|
|
@apply py-1.5 px-2.5 text-xs leading-5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-sm.icon-btn {
|
|
|
|
@apply px-1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-xs {
|
|
|
|
@apply py-0.5 px-2.5 text-xs leading-5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-xs.icon-btn {
|
|
|
|
@apply px-0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn:hover {
|
|
|
|
@apply no-underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn:focus {
|
|
|
|
@apply no-underline outline-none;
|
|
|
|
box-shadow: 0px 0px 0px 4px var(--sn-science-blue-hover);
|
|
|
|
color: var(--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-06-14 20:40:26 +08:00
|
|
|
background-color: var(--sn-blue);
|
|
|
|
color: var(--sn-white);
|
|
|
|
}
|
|
|
|
|
2023-06-20 21:53:33 +08:00
|
|
|
.btn.btn-primary:hover,
|
|
|
|
.btn.btn-success:hover{
|
2023-06-14 20:40:26 +08:00
|
|
|
background-color: var(--sn-blue-hover);
|
|
|
|
color: var(--sn-white);
|
|
|
|
}
|
|
|
|
|
|
|
|
.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-06-14 20:40:26 +08:00
|
|
|
background-color: var(--sn-light-grey);
|
|
|
|
border: 1px solid var(--sn-light-grey);
|
|
|
|
color: var(--sn-sleepy-grey);
|
|
|
|
}
|
|
|
|
|
2023-06-19 21:45:22 +08:00
|
|
|
.btn.btn-secondary,
|
|
|
|
.btn.btn-default {
|
2023-06-14 20:40:26 +08:00
|
|
|
background-color: var(--sn-white);
|
|
|
|
border: 1px solid var(--sn-light-grey);
|
|
|
|
color: var(--sn-blue);
|
|
|
|
}
|
|
|
|
|
2023-06-29 19:38:59 +08:00
|
|
|
.btn.btn-shared {
|
|
|
|
background-color: var(--sn-white);
|
|
|
|
border: 1px solid var(--sn-coral);
|
|
|
|
color: var(--sn-coral);
|
|
|
|
}
|
|
|
|
|
2023-06-19 21:45:22 +08:00
|
|
|
.btn.btn-secondary:hover,
|
|
|
|
.btn.btn-default:hover {
|
2023-06-14 20:40:26 +08:00
|
|
|
border: 1px solid var(--sn-blue-hover);
|
|
|
|
}
|
|
|
|
|
2023-06-29 19:38:59 +08:00
|
|
|
.btn.btn-shared:hover {
|
|
|
|
border: 1px solid var(--sn-light-grey);
|
|
|
|
}
|
|
|
|
|
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-06-14 20:40:26 +08:00
|
|
|
background-color: var(--sn-white);
|
|
|
|
color: var(--sn-sleepy-grey);
|
|
|
|
}
|
|
|
|
|
2023-06-29 19:38:59 +08:00
|
|
|
.btn.btn-shared:disabled,
|
|
|
|
.btn.btn-shared.disabled {
|
|
|
|
background-color: var(--sn-white);
|
|
|
|
color: var(--sn-sleepy-grey);
|
|
|
|
border: 1px solid var(--sn-light-grey);
|
|
|
|
}
|
|
|
|
|
2023-06-14 20:40:26 +08:00
|
|
|
.btn.btn-light {
|
|
|
|
background-color: transparent;
|
|
|
|
color: var(--sn-blue);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-light.btn-black {
|
2023-06-20 21:53:33 +08:00
|
|
|
color: var(--sn-black);
|
2023-06-14 20:40:26 +08:00
|
|
|
}
|
|
|
|
|
2023-06-19 21:45:22 +08:00
|
|
|
.btn.btn-light.btn-white {
|
2023-06-20 21:53:33 +08:00
|
|
|
color: var(--sn-white);
|
2023-06-19 21:45:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-light.btn-white:hover {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2023-06-14 20:40:26 +08:00
|
|
|
.btn.btn-light:hover {
|
|
|
|
background-color: var(--sn-super-light-grey);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-light:disabled,
|
|
|
|
.btn.btn-light.disabled {
|
|
|
|
color: var(--sn-sleepy-grey);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-danger {
|
|
|
|
background-color: var(--sn-delete-red);
|
|
|
|
color: var(--sn-white);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-danger:hover {
|
|
|
|
background-color: var(--sn-delete-red-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.btn-danger:disabled,
|
|
|
|
.btn.btn-danger.disabled {
|
|
|
|
background-color: var(--sn-delete-red-disabled);
|
|
|
|
}
|
|
|
|
}
|