File size: 1,047 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
import { globalStyle, style } from '@vanilla-extract/css'
import { vars } from '../../styles/theme-contract.css'
import { BREAKPOINTS } from '../../styles/breakpoints.css'
export const table = style({
width: '100%',
textAlign: 'left',
borderCollapse: 'collapse',
})
globalStyle(`${table} td, ${table} th`, {
borderBottom: `2px solid ${vars.colors.codeBackground}`,
})
export const tableHeadCell = style({
fontFamily: vars.fonts['sans-var'],
fontSize: vars.fontSizes.XXS,
lineHeight: vars.lineHeights.XXS,
padding: `${vars.space['15']} 0`,
})
export const firstTableCell = style({
width: '40%',
'@media': {
[`screen and ${BREAKPOINTS.tabletUp}`]: {
width: '30%',
},
},
})
export const secondTableCell = style({
width: '60%',
'@media': {
[`screen and ${BREAKPOINTS.tabletUp}`]: {
width: '50%',
},
},
})
export const thirdTableCell = style({
display: 'none',
'@media': {
[`screen and ${BREAKPOINTS.tabletUp}`]: {
display: 'table-cell',
width: '20%',
},
},
})
|