2023-06-13 17:51:00 +08:00
|
|
|
@layer components {
|
2023-08-28 19:10:02 +08:00
|
|
|
|
|
|
|
.sci-label {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply text-sm font-medium text-sn-grey;
|
2023-08-28 19:10:02 +08:00
|
|
|
}
|
|
|
|
|
2023-06-13 17:51:00 +08:00
|
|
|
.sci-input-container-v2 {
|
2023-09-18 21:32:53 +08:00
|
|
|
@apply relative h-[2.75rem] flex items-center;
|
2023-06-13 17:51:00 +08:00
|
|
|
}
|
|
|
|
|
2023-07-06 22:05:03 +08:00
|
|
|
.sci-input-container-v2.input-sm {
|
|
|
|
@apply h-[2.25rem] bg-transparent p-0.5 outline-none;
|
|
|
|
}
|
|
|
|
|
2023-06-13 17:51:00 +08:00
|
|
|
.sci-input-container-v2 input {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply w-full h-full bg-transparent p-0.5 border rounded outline-none absolute top-0 pl-2 border-sn-sleepy-grey;
|
2023-06-13 17:51:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sci-input-container-v2 input::placeholder {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply text-sn-sleepy-grey;
|
2023-06-13 17:51:00 +08:00
|
|
|
}
|
|
|
|
|
2023-07-06 22:05:03 +08:00
|
|
|
.sci-input-container-v2 .error {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply !border-sn-coral;
|
2023-07-06 22:05:03 +08:00
|
|
|
}
|
|
|
|
|
2023-06-13 17:51:00 +08:00
|
|
|
.sci-input-container-v2 input:focus {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply border-sn-science-blue shadow-none;
|
2023-06-13 17:51:00 +08:00
|
|
|
}
|
|
|
|
|
2023-09-07 21:27:53 +08:00
|
|
|
.sci-input-container-v2 input:hover {
|
|
|
|
border-color: var(--sn-science-blue-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
.sci-input-container-v2 input:disabled {
|
|
|
|
background-color: var(--sn-super-light-grey);
|
2023-09-21 18:51:32 +08:00
|
|
|
color: var(--sn-grey);
|
2023-09-07 21:27:53 +08:00
|
|
|
border: 1px solid var(--sn-light-grey);
|
|
|
|
}
|
|
|
|
|
2023-06-13 17:51:00 +08:00
|
|
|
.sci-input-container-v2 .sn-icon {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply m-2 text-sn-black;
|
2023-06-13 17:51:00 +08:00
|
|
|
}
|
|
|
|
|
2023-07-11 03:09:29 +08:00
|
|
|
.sci-input-container-v2.right-icon .sn-icon {
|
|
|
|
@apply absolute right-0;
|
2023-07-06 22:05:03 +08:00
|
|
|
}
|
|
|
|
|
2023-06-13 17:51:00 +08:00
|
|
|
.sci-input-container-v2.left-icon input {
|
|
|
|
@apply pl-10;
|
2023-07-06 22:05:03 +08:00
|
|
|
}
|
|
|
|
|
2023-07-11 03:09:29 +08:00
|
|
|
.sci-input-container-v2.right-icon input {
|
|
|
|
@apply pr-10;
|
2023-07-06 22:05:03 +08:00
|
|
|
}
|
2023-07-20 15:37:32 +08:00
|
|
|
|
|
|
|
.sci-input-container-v2.left-icon input {
|
|
|
|
@apply pl-10;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sci-input-container-v2.textarea-lg {
|
|
|
|
@apply h-[9rem];
|
|
|
|
}
|
|
|
|
|
|
|
|
.sci-input-container-v2 textarea {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply w-full h-full bg-transparent px-2 border rounded outline-none absolute top-0 border-sn-sleepy-grey;
|
2023-07-20 15:37:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sci-input-container-v2 textarea::placeholder {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply text-sn-sleepy-grey;
|
2023-07-20 15:37:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sci-input-container-v2 textarea:focus {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply border-sn-science-blue;
|
2023-07-20 15:37:32 +08:00
|
|
|
}
|
2023-08-25 21:02:27 +08:00
|
|
|
|
|
|
|
.sci-input-container-v2 .history-flyout li:hover {
|
2023-08-30 19:20:27 +08:00
|
|
|
@apply bg-sn-super-light-grey;
|
2023-08-25 21:02:27 +08:00
|
|
|
}
|
2023-06-13 17:51:00 +08:00
|
|
|
}
|