2021-02-11 23:35:32 +08:00
|
|
|
/* Buttons */
|
|
|
|
|
2021-03-20 21:10:15 +08:00
|
|
|
.button {
|
2021-03-26 00:39:18 +08:00
|
|
|
@apply px-5 py-2 rounded-lg border border-transparent font-medium text-sm;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
2021-03-26 00:39:18 +08:00
|
|
|
.button-blue {
|
|
|
|
@apply border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:bg-blue-700;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
2021-03-26 00:39:18 +08:00
|
|
|
.button-red {
|
|
|
|
@apply border-transparent bg-red-600 text-white hover:bg-red-700 focus:bg-red-700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-gray {
|
|
|
|
@apply border-gray-200 bg-gray-100 text-gray-600 hover:bg-gray-200 focus:bg-gray-200;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-03-26 00:39:18 +08:00
|
|
|
.button-outlined-blue {
|
|
|
|
@apply bg-blue-50 border-blue-600 text-blue-600 hover:bg-blue-100 focus:bg-blue-100;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-03-26 00:39:18 +08:00
|
|
|
.button-outlined-red {
|
|
|
|
@apply bg-red-50 border-red-600 text-red-600 hover:bg-red-100 focus:bg-red-100;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
2021-03-26 00:39:18 +08:00
|
|
|
.button-outlined-gray {
|
|
|
|
@apply bg-white border-gray-300 text-gray-600 hover:bg-gray-100 focus:bg-gray-100;
|
2021-02-11 23:35:32 +08:00
|
|
|
}
|
|
|
|
|
2021-03-26 00:39:18 +08:00
|
|
|
.button:disabled {
|
|
|
|
@apply cursor-default pointer-events-none border-transparent bg-gray-100 text-gray-400;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
2021-03-26 00:39:18 +08:00
|
|
|
.button-small {
|
|
|
|
@apply px-2 py-1 bg-gray-50 border-gray-200 text-gray-600 hover:bg-gray-100 focus:bg-gray-100;
|
2021-03-20 21:10:15 +08:00
|
|
|
}
|
|
|
|
|
2021-03-31 03:42:02 +08:00
|
|
|
.button-square-icon {
|
2021-04-05 00:55:51 +08:00
|
|
|
@apply p-2 flex items-center justify-center;
|
2021-03-31 03:42:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.button-square-icon i {
|
|
|
|
@apply text-xl leading-none;
|
|
|
|
}
|
|
|
|
|
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-04-01 18:56:19 +08:00
|
|
|
.icon-outlined-button {
|
|
|
|
@apply rounded-full border-2;
|
|
|
|
}
|
|
|
|
|
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-05-04 02:03:19 +08:00
|
|
|
.input-label {
|
|
|
|
@apply mb-0.5 text-sm text-gray-800 font-medium;
|
|
|
|
}
|
|
|
|
|
2021-03-24 00:46:33 +08:00
|
|
|
.switch-button {
|
|
|
|
@apply relative inline-block w-14 h-7 mr-2 select-none transition;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
2021-03-24 00:46:33 +08:00
|
|
|
.switch-button__checkbox {
|
|
|
|
@apply appearance-none absolute block w-7 h-7 rounded-full bg-gray-400 border-[5px] border-gray-100 cursor-pointer transition-all duration-300;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch-button__bg {
|
|
|
|
@apply block h-full w-full rounded-full bg-gray-100 cursor-pointer transition-all duration-300;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch-button__checkbox:checked {
|
|
|
|
@apply bg-white border-blue-600;
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch-button__checkbox:checked + .switch-button__bg {
|
|
|
|
@apply bg-blue-600;
|
2021-02-21 23:54:44 +08:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2021-04-22 05:02:09 +08:00
|
|
|
|
|
|
|
/* Toggleable menu */
|
|
|
|
|
|
|
|
.menu {
|
|
|
|
@apply absolute right-0 z-20 rounded-lg bg-white flex flex-col py-2;
|
|
|
|
box-shadow: 0px 15px 99px rgba(13, 24, 41, 0.15);
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu__item {
|
|
|
|
@apply flex space-x-3 px-5 py-2 items-center hover:bg-gray-50 whitespace-nowrap;
|
|
|
|
}
|
2021-05-10 20:37:38 +08:00
|
|
|
|
|
|
|
/* Boxes */
|
|
|
|
|
|
|
|
.error-box {
|
|
|
|
@apply mb-3 rounded-lg px-4 py-2 bg-red-100 text-red-400 font-medium;
|
|
|
|
}
|