2023-12-01 12:23:17 -06:00
|
|
|
import { style } from '@vanilla-extract/css';
|
2023-12-03 19:45:43 -06:00
|
|
|
import { theme } from '../../../stitches.config';
|
2023-12-01 12:23:17 -06:00
|
|
|
|
2023-12-03 21:44:58 -06:00
|
|
|
export const listing = style({
|
|
|
|
|
transition: `background-position ${theme.durations.regular}`,
|
|
|
|
|
|
|
|
|
|
backgroundPosition: 'left center',
|
|
|
|
|
|
|
|
|
|
':hover': {
|
|
|
|
|
backgroundPosition: '-256px center',
|
|
|
|
|
},
|
|
|
|
|
});
|
2023-12-01 12:23:17 -06:00
|
|
|
|
|
|
|
|
export const listingShadow = style({
|
|
|
|
|
boxShadow: `inset 0 -128px 128px -128px ${theme.colors.appBackground1}`,
|
|
|
|
|
|
2023-12-03 19:45:43 -06:00
|
|
|
[`.${listing}:hover &, .${listing}:active &`]: {
|
2023-12-03 18:26:48 -06:00
|
|
|
boxShadow: `inset 0 0 0 -128px ${theme.colors.appBackground1}`,
|
2023-12-01 12:23:17 -06:00
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const listingLabel = style({
|
|
|
|
|
transition: `transform ${theme.durations.regular}`,
|
|
|
|
|
transform: 'translateY(0)',
|
|
|
|
|
|
2023-12-03 19:45:43 -06:00
|
|
|
[`.${listing}:hover &, .${listing}:active &`]: {
|
2023-12-01 12:23:17 -06:00
|
|
|
transform: 'translateY(200%)',
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const listingImage = style({
|
|
|
|
|
transition: `transform ${theme.durations.regular}`,
|
2023-12-03 21:44:58 -06:00
|
|
|
position: 'absolute',
|
|
|
|
|
left: '50%',
|
2023-12-01 12:23:17 -06:00
|
|
|
|
2023-12-03 19:45:43 -06:00
|
|
|
[`.${listing}:hover &, .${listing}:active &`]: {
|
2023-12-03 21:44:58 -06:00
|
|
|
transform: 'translate(-25%, 10%)',
|
2023-12-01 12:23:17 -06:00
|
|
|
},
|
|
|
|
|
});
|