mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
theme: add new borderless input variant
This commit is contained in:
committed by
Abdullah Atta
parent
44bb9752d2
commit
ebe830bbcc
@@ -45,6 +45,26 @@ const defaultVariant: ThemeUIStyleObject = {
|
||||
}
|
||||
};
|
||||
|
||||
const borderless: ThemeUIStyleObject = {
|
||||
variant: "forms.input",
|
||||
outline: "none",
|
||||
boxShadow: "none",
|
||||
":-webkit-autofill": {
|
||||
WebkitTextFillColor: "var(--paragraph)",
|
||||
caretColor: "var(--paragraph)",
|
||||
fontSize: "inherit"
|
||||
},
|
||||
":focus": {
|
||||
bg: "var(--background-secondary)"
|
||||
},
|
||||
":hover:not(:focus)": {
|
||||
outline: "var(--background-secondary)"
|
||||
},
|
||||
"::placeholder": {
|
||||
color: "placeholder"
|
||||
}
|
||||
};
|
||||
|
||||
const clean: ThemeUIStyleObject = {
|
||||
variant: "forms.input",
|
||||
outline: "none",
|
||||
@@ -76,6 +96,7 @@ const radio: ThemeUIStyleObject = {
|
||||
|
||||
export const inputVariants = {
|
||||
input: defaultVariant,
|
||||
borderless,
|
||||
error,
|
||||
clean,
|
||||
radio
|
||||
|
||||
Reference in New Issue
Block a user