2021-06-17 07:02:27 +08:00
|
|
|
@layer components {
|
|
|
|
/* Buttons */
|
2021-02-11 23:35:32 +08:00
|
|
|
|
2021-12-04 04:57:21 +08:00
|
|
|
.button-base {
|
2021-12-04 23:29:14 +08:00
|
|
|
@apply px-5 py-2 rounded-lg border border-transparent font-medium text-sm whitespace-nowrap;
|
2021-06-17 07:02:27 +08:00
|
|
|
}
|
2021-02-21 23:54:44 +08:00
|
|
|
|
2021-06-17 07:02:27 +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-06-17 07:02:27 +08:00
|
|
|
.button-red {
|
|
|
|
@apply border-transparent bg-red-600 text-white hover:bg-red-700 focus:bg-red-700;
|
|
|
|
}
|
2021-03-26 00:39:18 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.button-gray {
|
|
|
|
@apply border-gray-200 bg-gray-100 text-gray-600 hover:bg-gray-200 focus:bg-gray-200;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-outlined-blue {
|
|
|
|
@apply bg-blue-50 border-blue-600 text-blue-600 hover:bg-blue-100 focus:bg-blue-100;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-outlined-red {
|
|
|
|
@apply bg-red-50 border-red-600 text-red-600 hover:bg-red-100 focus:bg-red-100;
|
|
|
|
}
|
2021-02-11 23:35:32 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.button-outlined-gray {
|
|
|
|
@apply bg-white border-gray-300 text-gray-600 hover:bg-gray-100 focus:bg-gray-100;
|
|
|
|
}
|
|
|
|
|
2023-02-16 20:47:46 +08:00
|
|
|
.button-base:disabled,
|
|
|
|
.button-base.disabled {
|
2021-06-17 07:02:27 +08:00
|
|
|
@apply cursor-default pointer-events-none border-transparent bg-gray-100 text-gray-400;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-small {
|
|
|
|
@apply px-2 py-1 bg-gray-50 border-gray-200 text-gray-600 hover:bg-gray-100 focus:bg-gray-100;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-square-icon {
|
|
|
|
@apply p-2 flex items-center justify-center;
|
|
|
|
}
|
2021-02-11 23:35:32 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.button-square-icon i {
|
|
|
|
@apply text-xl leading-none;
|
|
|
|
}
|
2021-02-21 23:54:44 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.icon-button {
|
2022-01-14 02:06:11 +08:00
|
|
|
@apply p-1 flex items-center justify-center text-gray-500 hover:text-gray-900 rounded-full;
|
2021-06-17 07:02:27 +08:00
|
|
|
}
|
2021-03-20 21:10:15 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.icon-button:focus {
|
2021-06-24 18:15:12 +08:00
|
|
|
@apply bg-gray-100;
|
2021-06-17 07:02:27 +08:00
|
|
|
}
|
2021-03-31 03:42:02 +08:00
|
|
|
|
2021-10-21 00:10:11 +08:00
|
|
|
.icon-button:disabled,
|
|
|
|
.icon-button.disabled {
|
2021-08-18 20:41:57 +08:00
|
|
|
@apply cursor-default pointer-events-none text-gray-300;
|
|
|
|
}
|
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.icon-button i {
|
|
|
|
line-height: 1;
|
|
|
|
}
|
2021-03-31 03:42:02 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.icon-outlined-button {
|
|
|
|
@apply rounded-full border-2;
|
|
|
|
}
|
2021-03-20 21:10:15 +08:00
|
|
|
|
2021-08-14 03:17:43 +08:00
|
|
|
/* Links */
|
|
|
|
|
|
|
|
.link {
|
|
|
|
@apply font-medium underline text-gray-900 hover:no-underline;
|
|
|
|
}
|
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
/* Form fields */
|
2021-02-11 23:35:32 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.input {
|
2022-09-06 05:59:13 +08:00
|
|
|
@apply w-full px-3 py-2 bg-gray-50 text-sm border border-gray-200 rounded-lg placeholder-gray-400 text-gray-600 phx-form-error:border-red-300;
|
2021-06-17 07:02:27 +08:00
|
|
|
}
|
2021-03-23 21:10:34 +08:00
|
|
|
|
2021-06-29 02:05:56 +08:00
|
|
|
.input[type="color"] {
|
|
|
|
@apply py-0 w-16;
|
|
|
|
}
|
|
|
|
|
2021-07-08 17:35:09 +08:00
|
|
|
.input--error {
|
|
|
|
@apply bg-red-50 border-red-600 text-red-600;
|
2021-07-06 17:22:04 +08:00
|
|
|
}
|
|
|
|
|
2021-07-08 17:35:09 +08:00
|
|
|
.input-range {
|
|
|
|
height: 8px;
|
|
|
|
@apply appearance-none bg-gray-200 rounded-lg;
|
2021-07-06 17:22:04 +08:00
|
|
|
}
|
|
|
|
|
2021-07-08 17:35:09 +08:00
|
|
|
.input-range::-webkit-slider-thumb {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2021-07-06 17:22:04 +08:00
|
|
|
@apply appearance-none border-transparent bg-blue-600 hover:bg-blue-700 cursor-pointer rounded-xl;
|
|
|
|
}
|
|
|
|
|
2021-07-08 17:35:09 +08:00
|
|
|
.input-range::-moz-range-thumb {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
@apply appearance-none border-transparent bg-blue-600 hover:bg-blue-700 cursor-pointer rounded-xl;
|
2021-06-17 07:02:27 +08:00
|
|
|
}
|
2021-03-23 21:10:34 +08:00
|
|
|
|
2023-02-24 02:07:00 +08:00
|
|
|
.radio {
|
2021-06-17 07:02:27 +08:00
|
|
|
appearance: none;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
cursor: pointer;
|
|
|
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%23CAD5E0' fill='white' /%3e%3c/svg%3e");
|
|
|
|
background-size: 100% 100%;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
2021-02-21 23:54:44 +08:00
|
|
|
|
2023-02-24 02:07:00 +08:00
|
|
|
.radio:checked {
|
2021-06-17 07:02:27 +08:00
|
|
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%233E64FF' fill='white' /%3e%3ccircle cx='10' cy='10' r='6' fill='%233E64FF' /%3e%3c/svg%3e");
|
|
|
|
}
|
2021-03-24 00:46:33 +08:00
|
|
|
|
2023-02-24 02:07:00 +08:00
|
|
|
.checkbox {
|
2022-01-29 04:45:04 +08:00
|
|
|
@apply h-5 w-5 appearance-none border border-gray-300 rounded text-blue-600 cursor-pointer;
|
|
|
|
}
|
|
|
|
|
2023-02-24 02:07:00 +08:00
|
|
|
.checkbox:checked {
|
2022-01-29 04:45:04 +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-06-17 07:02:27 +08:00
|
|
|
/* Custom scrollbars */
|
2021-03-24 00:46:33 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.tiny-scrollbar::-webkit-scrollbar {
|
|
|
|
width: 0.4rem;
|
|
|
|
height: 0.4rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tiny-scrollbar::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
@apply bg-gray-400;
|
|
|
|
}
|
2021-03-24 00:46:33 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.tiny-scrollbar::-webkit-scrollbar-track {
|
|
|
|
@apply bg-gray-100;
|
|
|
|
}
|
2021-02-21 23:54:44 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
/* Tabs */
|
2021-06-08 18:33:50 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.tabs {
|
|
|
|
@apply w-full flex;
|
|
|
|
}
|
2021-06-08 18:33:50 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.tabs .tab {
|
|
|
|
@apply flex items-center space-x-2 px-3 py-2 border-b-2 text-gray-400 border-gray-100;
|
|
|
|
}
|
2021-02-11 23:35:32 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
.tabs .tab.active {
|
|
|
|
@apply text-blue-600 border-blue-600;
|
|
|
|
}
|
2021-03-20 21:10:15 +08:00
|
|
|
|
2021-06-17 07:02:27 +08:00
|
|
|
/* Boxes */
|
|
|
|
|
|
|
|
.error-box {
|
2021-06-26 22:47:52 +08:00
|
|
|
@apply rounded-lg px-4 py-2 bg-red-100 text-red-400 font-medium;
|
2021-06-17 07:02:27 +08:00
|
|
|
}
|
2022-03-23 01:25:42 +08:00
|
|
|
|
|
|
|
.info-box {
|
|
|
|
@apply p-4 bg-gray-100 text-sm text-gray-500 font-medium rounded-lg;
|
|
|
|
}
|
2021-05-10 20:37:38 +08:00
|
|
|
}
|