mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 01:03:57 +00:00
60 lines
1.2 KiB
TypeScript
60 lines
1.2 KiB
TypeScript
import { SPACING_UNIT, vars } from "../../theme.css";
|
|
import { style } from "@vanilla-extract/css";
|
|
import { recipe } from "@vanilla-extract/recipes";
|
|
|
|
export const textFieldContainer = style({
|
|
flex: "1",
|
|
gap: `${SPACING_UNIT}px`,
|
|
display: "flex",
|
|
flexDirection: "column",
|
|
});
|
|
|
|
export const textField = recipe({
|
|
base: {
|
|
display: "inline-flex",
|
|
transition: "all ease 0.2s",
|
|
width: "100%",
|
|
alignItems: "center",
|
|
borderRadius: "8px",
|
|
border: `solid 1px ${vars.color.border}`,
|
|
height: "40px",
|
|
minHeight: "40px",
|
|
},
|
|
variants: {
|
|
focused: {
|
|
true: {
|
|
borderColor: "#DADBE1",
|
|
},
|
|
false: {
|
|
":hover": {
|
|
borderColor: "rgba(255, 255, 255, 0.5)",
|
|
},
|
|
},
|
|
},
|
|
theme: {
|
|
primary: {
|
|
backgroundColor: vars.color.darkBackground,
|
|
},
|
|
dark: {
|
|
backgroundColor: vars.color.background,
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|
|
export const textFieldInput = style({
|
|
backgroundColor: "transparent",
|
|
border: "none",
|
|
width: "100%",
|
|
height: "100%",
|
|
outline: "none",
|
|
color: "#DADBE1",
|
|
cursor: "default",
|
|
fontFamily: "inherit",
|
|
textOverflow: "ellipsis",
|
|
padding: `${SPACING_UNIT}px`,
|
|
":focus": {
|
|
cursor: "text",
|
|
},
|
|
});
|