File size: 1,755 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import { globalStyle, style } from '@vanilla-extract/css'
import { darkThemeClass } from '../../styles/dark-theme.css'
import { BREAKPOINTS } from '../../styles/breakpoints.css'
import { vars } from '../../styles/theme-contract.css'

export const externalLinkIcon = style({
  position: 'absolute',
  top: 16,
  right: 20,
  height: 24,
  width: 24,
  background: 'url(/images/icons/ArrowSquareOutBlue.png)',
  backgroundRepeat: 'no-repeat',
  backgroundSize: 'cover',
  backgroundPosition: 'center',

  '@media': {
    '(hover:hover)': {
      opacity: 0,
    },

    '(prefers-reduced-motion: no-preference)': {
      transition: 'opacity 250ms ease-out',
    },
  },

  selectors: {
    [`${darkThemeClass} &`]: {
      background: 'url(/images/icons/ArrowSquareOutRed.png)',
      backgroundRepeat: 'no-repeat',
      backgroundSize: 'cover',
      backgroundPosition: 'center',
    },
  },
})

export const quoteAnchor = style({
  flex: '1 0 80vw',
  textDecoration: 'none',

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      flex: '1 0 388px',
    },
  },
})

globalStyle(`${quoteAnchor}:hover ${externalLinkIcon}`, {
  '@media': {
    '(hover:hover)': {
      opacity: 1,
    },
  },
})

export const quoteCard = style({
  backgroundColor: vars.colors.codeBackground,
  margin: 0,
  padding: vars.space['20'],
  borderRadius: vars.radii.r8,
  position: 'relative',
})

export const quoteImage = style({
  borderRadius: '50%',
  width: '4.8rem',
  marginRight: vars.space['10'],
})

export const quoteeHandle = style({
  marginBottom: vars.space['10'],
  display: 'flex',
  alignItems: 'center',
  textDecoration: 'none',
})

export const quoteeName = style({})

globalStyle(`${quoteeName} > span`, {
  color: vars.colors.steel60,
})