mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-27 12:26:29 -08:00
via an exclusion and lots of copy paste as part of that swapped space banner and abbr to use buttons and disabled button styles for them
56 lines
954 B
TypeScript
56 lines
954 B
TypeScript
import { globalStyle } from '@vanilla-extract/css';
|
|
|
|
globalStyle(
|
|
`
|
|
button,
|
|
[role="button"],
|
|
[class*="Button"],
|
|
[class*="Chip"],
|
|
[class*="MenuItem"]
|
|
`,
|
|
{
|
|
transition: 'transform 0.1s ease-in-out, background-color 0.15s ease !important',
|
|
}
|
|
);
|
|
|
|
globalStyle(
|
|
`
|
|
button:active,
|
|
[role="button"]:active,
|
|
[class*="Button"]:active,
|
|
[class*="Chip"]:active
|
|
`,
|
|
{
|
|
transform: 'scale(0.96) !important',
|
|
}
|
|
);
|
|
|
|
globalStyle(
|
|
`
|
|
button:hover,
|
|
[role="button"]:hover
|
|
`,
|
|
{
|
|
transform: 'translateY(-1px)',
|
|
}
|
|
);
|
|
|
|
globalStyle(
|
|
`
|
|
button[class*="_1684mq51"]:has(img):hover,
|
|
[data-index] button:hover,
|
|
[data-index] [role="button"]:hover
|
|
`,
|
|
{
|
|
transform: 'none !important',
|
|
}
|
|
);
|
|
|
|
globalStyle(
|
|
'button[data-no-button-motion], button[data-no-button-motion]:hover, button[data-no-button-motion]:active',
|
|
{
|
|
transform: 'none !important',
|
|
transition: 'none !important',
|
|
}
|
|
);
|