mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +02:00
34 lines
881 B
TypeScript
34 lines
881 B
TypeScript
import { makeStyles } from 'tss-react/mui';
|
|
|
|
export const useStyles = makeStyles()(theme => ({
|
|
link: {
|
|
position: 'fixed',
|
|
overflow: 'hidden',
|
|
zIndex: 1000,
|
|
top: '1.125rem',
|
|
left: '1.125rem',
|
|
padding: '0.5rem 1rem',
|
|
whiteSpace: 'nowrap',
|
|
textDecoration: 'none',
|
|
background: theme.palette.primary.dark,
|
|
color: theme.palette.primary.contrastText,
|
|
borderRadius: theme.shape.borderRadius,
|
|
fontSize: theme.fontSizes.smallBody,
|
|
|
|
[theme.breakpoints.down(960)]: {
|
|
top: '0.8rem',
|
|
left: '0.8rem',
|
|
},
|
|
|
|
'&:not(:focus):not(:active)': {
|
|
clip: 'rect(0 0 0 0)',
|
|
clipPath: 'inset(50%)',
|
|
zIndex: -1,
|
|
width: 1,
|
|
height: 1,
|
|
margin: -1,
|
|
padding: 0,
|
|
},
|
|
},
|
|
}));
|