File size: 1,519 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
53
54
55
56
57
58
59
60
61
62
63
import { globalStyle, style } from '@vanilla-extract/css'
import { vars } from '../../styles/theme-contract.css'
import { BREAKPOINTS } from '../../styles/breakpoints.css'

export const ssrSection = style({})

globalStyle(`${ssrSection} > *`, {
  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      flex: '1 1',
    },
  },
})

export const sizeGraph = style({
  position: 'relative',
  border: `1px solid ${vars.colors.steel20}`,
  borderRadius: vars.radii.r4,
  padding: `${vars.space['30']} ${vars.space['40']} ${vars.space['40']}`,
  display: 'flex',
  justifyContent: 'space-between',
  alignItems: 'flex-end',
  gap: `clamp(${vars.space['10']}, 10%, ${vars.space['40']})`,
  aspectRatio: `570 / 380`,
  marginTop: vars.space['20'],
})

export const graphBar = style({
  display: 'flex',
  flexDirection: 'column',
  justifyContent: 'flex-end',
  width: 'calc((100% - 80rem) / 3)',
  flex: '1 1 calc((100% - 80rem) / 3)',
})

globalStyle(`${graphBar} > h4`, {
  fontSize: '1.2rem',
  fontWeight: 700,
  lineHeight: '180%',
  textAlign: 'center',
  color: vars.colors.black,
})

globalStyle(`${graphBar} > h5`, {
  fontSize: '1.4rem',
  fontWeight: vars.fontWeights.default,
  lineHeight: '180%',
  textAlign: 'center',
  color: vars.colors.black,
  whiteSpace: 'nowrap',
  display: 'flex',
  justifyContent: 'space-evenly',
})

export const bar = style({
  width: '100%',
  background: vars.colors.redYellowGradient100,
  height: 1,
  marginBottom: 4,
  marginTop: 2,
  borderRadius: vars.radii.r4,
})