mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-10 05:16:19 +00:00
53 lines
1.0 KiB
TypeScript
53 lines
1.0 KiB
TypeScript
import { style, styleVariants } from "@vanilla-extract/css";
|
|
import { SPACING_UNIT, vars } from "../../theme.css";
|
|
|
|
const base = style({
|
|
padding: `${SPACING_UNIT}px ${SPACING_UNIT * 2}px`,
|
|
backgroundColor: "#c0c1c7",
|
|
borderRadius: "8px",
|
|
border: "solid 1px transparent",
|
|
transition: "all ease 0.2s",
|
|
cursor: "pointer",
|
|
minHeight: "40px",
|
|
display: "flex",
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
gap: `${SPACING_UNIT}px`,
|
|
":active": {
|
|
opacity: vars.opacity.active,
|
|
},
|
|
":disabled": {
|
|
opacity: vars.opacity.disabled,
|
|
pointerEvents: "none",
|
|
},
|
|
});
|
|
|
|
export const button = styleVariants({
|
|
primary: [
|
|
base,
|
|
{
|
|
":hover": {
|
|
backgroundColor: "#DADBE1",
|
|
},
|
|
},
|
|
],
|
|
outline: [
|
|
base,
|
|
{
|
|
backgroundColor: "transparent",
|
|
border: "solid 1px #c0c1c7",
|
|
color: "#c0c1c7",
|
|
":hover": {
|
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
},
|
|
},
|
|
],
|
|
dark: [
|
|
base,
|
|
{
|
|
backgroundColor: vars.color.darkBackground,
|
|
color: "#c0c1c7",
|
|
},
|
|
],
|
|
});
|