scinote-web/app/assets/stylesheets/tailwind/buttons.css

155 lines
2.9 KiB
CSS
Raw Normal View History

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-09-25 20:15:08 +08:00
@apply relative inline-flex items-center text-sm shrink-0 gap-2 justify-center leading-[22px] py-2 px-4 rounded border border-solid appearance-none whitespace-nowrap cursor-pointer max-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 {
2023-09-21 18:51:32 +08:00
@apply py-2.5 px-[1.125rem] text-base leading-5 h-[44px];
2023-06-14 20:40:26 +08:00
}
.btn.btn-lg.icon-btn {
@apply px-2.5;
}
.btn.btn-sm {
2023-09-21 18:51:32 +08:00
@apply py-1.5 px-2.5 text-xs leading-5 h-[36px];
2023-06-14 20:40:26 +08:00
}
.btn.btn-sm.icon-btn {
@apply px-1.5;
}
.btn.btn-xs {
2023-09-21 18:51:32 +08:00
@apply py-0.5 px-2.5 text-xs leading-5 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 {
@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 {
@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,
.btn.btn-success:hover{
@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 {
@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 {
@apply bg-sn-white text-sn-blue border-sn-light-grey;
2023-06-14 20:40:26 +08:00
}
.btn.btn-shared {
@apply bg-sn-science-blue text-sn-white border-sn-white;
}
2023-06-19 21:45:22 +08:00
.btn.btn-secondary:hover,
.btn.btn-default:hover {
@apply border-sn-blue-hover;
2023-06-14 20:40:26 +08:00
}
.btn.btn-shared:hover {
@apply border-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 {
@apply bg-sn-white text-sn-sleepy-grey;
2023-06-14 20:40:26 +08:00
}
.btn.btn-shared:disabled,
.btn.btn-shared.disabled {
@apply bg-sn-white text-sn-sleepy-grey border-sn-light-grey;
}
2023-06-14 20:40:26 +08:00
.btn.btn-light {
@apply bg-transparent text-sn-blue border-transparent;
2023-06-14 20:40:26 +08:00
}
.btn.btn-light.btn-black {
@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 {
@apply text-sn-white;
2023-06-19 21:45:22 +08:00
}
.btn.btn-light.btn-white:hover {
@apply bg-transparent;
2023-06-19 21:45:22 +08:00
}
2023-06-14 20:40:26 +08:00
.btn.btn-light:hover {
@apply bg-sn-super-light-grey;
2023-06-14 20:40:26 +08:00
}
.btn.btn-light:disabled,
.btn.btn-light.disabled {
@apply text-sn-sleepy-grey;
2023-06-14 20:40:26 +08:00
}
.btn.btn-danger {
@apply bg-sn-delete-red text-sn-white;
2023-06-14 20:40:26 +08:00
}
.btn.btn-danger:hover {
@apply bg-sn-delete-red-hover;
2023-06-14 20:40:26 +08:00
}
.btn.btn-danger:disabled,
.btn.btn-danger.disabled {
@apply bg-sn-delete-red-disabled;
2023-06-14 20:40:26 +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
}