Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 31 additions & 17 deletions src/commons/components/features/Items/Card/Card.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@ import { mediaQueries } from '@/commons/utils/ui/mediaQueries/mediaQueries';
import { style } from '@vanilla-extract/css';

export const wrapper = style({
// flex: 1,

width: '100%',
display: 'grid',
gridTemplateColumns: 'repeat(4, 1fr)',
gridTemplateColumns: 'repeat(5, 1fr)',
gridTemplateRows: 'repeat(2, 1fr)',

marginTop: '60px',
maxWidth: '1200px',
maxWidth: '1740px',

gap: '30px',
gap: '35px',

padding: '0 20px',
...mediaQueries({
desktopXLarge: {
gridTemplateColumns: 'repeat(4, 1fr)',
},
desktopLarge: {
gridTemplateColumns: 'repeat(3, 1fr)',
},
tabletLarge: {
gridTemplateColumns: 'repeat(3, 1fr)',
},
Expand All @@ -31,20 +42,24 @@ export const cardWrapper = style({
display: 'flex',
flexDirection: 'column',

width: '15.6rem',
height: '19.9rem',
width: '100%',
maxWidth: '23rem',
height: '26rem',
borderRadius: '12px',

justifySelf: 'center',

overflow: 'hidden',

...mediaQueries({
tablet: {
width: '20rem',
height: '19.9rem',
height: '22rem',
},
tabletSmall: {
height: '22rem',
},
mobile: {
width: '100%',
height: '19.9rem',
height: '24rem',
},
}),

Expand All @@ -60,20 +75,17 @@ export const cardWrapper = style({
export const imageWrapper = style({
position: 'relative',
width: '100%',
height: '130px',
});

export const cardImageWrapper = style({
width: '250px',
height: '130px',
height: '180px',
});

export const bottomWrapper = style({
display: 'flex',
flexDirection: 'column',
flex: 1,

padding: '6px 12px 12px',
padding: '12px 12px 0',

justifyContent: 'space-between',
});

export const title = style({
Expand All @@ -85,6 +97,8 @@ export const infoWrapper = style({
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',

marginTop: 'auto',
});

export const textWrapper = style({
Expand All @@ -95,7 +109,7 @@ export const textWrapper = style({

export const company = style({
marginRight: '4px',
fontSize: '14px',
fontSize: '16px',
});

export const date = style({
Expand Down
5 changes: 3 additions & 2 deletions src/commons/components/widgets/Header/header.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ export const wrapper = style({

width: '100dvw',
height: '80px',
maxWidth: '1200px',
maxWidth: '1740px',

padding: '0 20px',

...mediaQueries({
tablet: { padding: '0 20px' },
mobile: { padding: '0 10px' },
}),
});
Expand Down
1 change: 0 additions & 1 deletion src/commons/styles/rootStyles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ export const wrapper = style({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
});
5 changes: 4 additions & 1 deletion src/commons/utils/ui/mediaQueries/mediaQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ export const breakpoints = {
mobileSmall: 480,
mobile: 768,
mobileLarge: 896,
tabletSmall: 960,
tabletSmall: 980,
tablet: 1024,
tabletLarge: 1148,
desktop: 1280,
desktopLarge: 1440,
desktopXLarge: 1740,
desktopXXLarge: 1920,
};

export const mediaQuery = (breakpoint: BreakpointKey, rules: StyleRule) => ({
Expand Down