-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
.input { | ||
@apply flex h-10 w-full rounded-md border border-slate-300 bg-transparent py-2 px-3 text-sm placeholder:text-slate-400 invalid:text-red-500 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900; | ||
@apply relative flex w-full rounded-md border border-slate-300 bg-transparent py-2 px-3 text-sm placeholder:text-slate-400 invalid:text-red-500 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900; | ||
|
||
&[type="file"]::-webkit-file-upload-button { | ||
@apply inline-flex cursor-pointer items-center justify-center gap-2 rounded-md border border-solid border-slate-200 bg-transparent text-sm font-medium text-slate-900 transition-colors hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 active:bg-transparent disabled:pointer-events-none disabled:opacity-50 dark:border-slate-700 dark:text-slate-100 dark:hover:bg-slate-800 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900 dark:active:bg-transparent; | ||
&[type="file"] { | ||
@apply items-center overflow-hidden py-0 pl-0; | ||
|
||
&::file-selector-button { | ||
@apply pointer-events-none mr-3 h-full border-none bg-slate-100 px-3 py-2 text-slate-900 dark:bg-slate-700 dark:text-slate-100; | ||
} | ||
} | ||
|
||
&:not(select[multiple]) { | ||
@apply h-10; | ||
} | ||
|
||
&:is(select[multiple]) { | ||
@apply overflow-auto; | ||
} | ||
|
||
&:is(select) > option { | ||
@apply bg-slate-100 text-slate-900 dark:bg-slate-700 dark:text-slate-100; | ||
} | ||
|
||
&:is(select) > optgroup > option { | ||
@apply disabled:pointer-events-none disabled:opacity-50; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters