2021-02-11 23:35:32 +08:00
|
|
|
/* Buttons */
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
.button {
|
2021-03-12 18:57:01 +08:00
|
|
|
@apply px-5 py-2 bg-white rounded-lg border border-gray-200 font-medium text-sm text-gray-600;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
.button:not(:disabled) {
|
2021-03-23 21:10:34 +08:00
|
|
|
@apply hover:bg-gray-50 focus:bg-gray-50;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
.button:disabled {
|
|
|
|
@apply cursor-default pointer-events-none border-transparent bg-gray-100 text-gray-400;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.button-sm {
|
|
|
|
@apply px-3 py-1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-danger {
|
2021-03-20 21:10:15 +08:00
|
|
|
@apply bg-red-50 border border-red-600 text-red-600;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.button-danger:not(:disabled) {
|
2021-03-23 21:10:34 +08:00
|
|
|
@apply hover:bg-red-100 focus:bg-red-100;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.button-primary {
|
2021-03-12 18:57:01 +08:00
|
|
|
@apply border-transparent bg-blue-600 text-white;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.button-primary:not(:disabled) {
|
2021-03-23 21:10:34 +08:00
|
|
|
@apply hover:bg-blue-700 focus:bg-blue-700;
|
2021-03-20 21:10:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.choice-button {
|
|
|
|
@apply px-5 py-2 rounded-lg border text-gray-700 bg-white border-gray-200;
|
|
|
|
}
|
|
|
|
|
|
|
|
.choice-button.active {
|
|
|
|
@apply bg-blue-100 border-blue-600;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-03-23 21:10:34 +08:00
|
|
|
.icon-button {
|
|
|
|
@apply p-1 flex items-center justify-center text-gray-400 hover:text-gray-800;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button:focus {
|
|
|
|
@apply rounded-full bg-gray-100;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button i {
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
2021-02-11 23:35:32 +08:00
|
|
|
/* Form fields */
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
.input {
|
|
|
|
@apply w-full px-3 py-2 bg-gray-50 text-sm border border-gray-200 rounded-lg placeholder-gray-400 text-gray-600;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
.checkbox {
|
2021-03-12 18:57:01 +08:00
|
|
|
@apply h-5 w-5 appearance-none border border-gray-300 rounded text-blue-600 cursor-pointer;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
.checkbox:checked {
|
2021-02-21 23:54:44 +08:00
|
|
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
|
|
|
border-color: transparent;
|
|
|
|
background-color: currentColor;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
2021-02-11 23:35:32 +08:00
|
|
|
/* Custom scrollbars */
|
|
|
|
|
|
|
|
.tiny-scrollbar::-webkit-scrollbar {
|
|
|
|
width: 0.4rem;
|
|
|
|
height: 0.4rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tiny-scrollbar::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
@apply bg-gray-400;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tiny-scrollbar::-webkit-scrollbar-track {
|
|
|
|
@apply bg-gray-100;
|
|
|
|
}
|
2021-03-20 21:10:15 +08:00
|
|
|
|
|
|
|
/* Tabs */
|
|
|
|
|
|
|
|
.tabs {
|
|
|
|
@apply w-full flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs .tab {
|
|
|
|
@apply flex items-center space-x-2 px-3 py-2 border-b-2 text-gray-400 border-gray-100;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs .tab.active {
|
|
|
|
@apply text-blue-600 border-blue-600;
|
|
|
|
}
|