mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-12 20:26:10 +01:00
58 lines
1.3 KiB
TypeScript
58 lines
1.3 KiB
TypeScript
import { style } from '@vanilla-extract/css';
|
|
import { theme } from '../../../stitches.config';
|
|
|
|
export const listing = style({});
|
|
|
|
export const flag = style({
|
|
transitionDuration: theme.durations.regular,
|
|
left: '0',
|
|
top: '0',
|
|
|
|
[`.${listing}:hover &, .${listing}:active &`]: {
|
|
transform: 'translateX(-25%)',
|
|
filter: 'blur(3rem)',
|
|
},
|
|
});
|
|
|
|
export const listingShadow = style({
|
|
boxShadow: `inset 128px -128px 128px -128px ${theme.colors.appBackground1}`,
|
|
|
|
[`.${listing}:hover &, .${listing}:active &`]: {
|
|
boxShadow: `inset 0 0 0 -128px ${theme.colors.appBackground1}`,
|
|
},
|
|
});
|
|
|
|
export const listingLabel = style({
|
|
transition: `transform ${theme.durations.regular}`,
|
|
transform: 'translateY(0)',
|
|
|
|
[`.${listing}:hover &, .${listing}:active &`]: {
|
|
transform: 'translateY(200%)',
|
|
},
|
|
});
|
|
|
|
export const listingImage = style({
|
|
transition: `transform ${theme.durations.regular}`,
|
|
position: 'absolute',
|
|
left: '50%',
|
|
|
|
[`.${listing}:hover &, .${listing}:active &`]: {
|
|
transform: 'translate(-25%, 10%)',
|
|
},
|
|
});
|
|
|
|
export const alignTopRight = style({
|
|
'@media': {
|
|
'screen and (min-width: 400px)': {
|
|
position: 'absolute',
|
|
right: 16,
|
|
top: 16,
|
|
},
|
|
|
|
'screen and (max-width: 399px)': {
|
|
// left: 16,
|
|
// bottom: 16,
|
|
},
|
|
},
|
|
});
|