File size: 2,380 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import { globalStyle, style } from '@vanilla-extract/css'
import { vars } from '../theme-contract.css'
import { BREAKPOINTS } from '../breakpoints.css'

export const main = style({
  padding: `0 ${vars.space['25']}`,
  width: '100%',
  margin: '0 auto',
  maxWidth: vars.sizes.largeDoc,
  flexGrow: 1,

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      padding: `0 ${vars.space['15']}`,
    },

    [`screen and ${BREAKPOINTS.desktopUp}`]: {
      padding: `0 ${vars.space['50']}`,
    },
  },
})

export const flex = style({
  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      display: 'flex',
      justifyContent: 'space-between',
      alignItems: 'flex-end',
      gap: vars.space['40'],
    },
  },
})

globalStyle(`${flex} #carbonads`, {
  marginBottom: vars.space['20'],

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      maxWidth: 400,
      marginBottom: vars.space['40'],
    },
  },
})

export const sandboxesList = style({
  display: 'grid',
  gridRowGap: vars.space['20'],
  margin: 0,
  padding: 0,
  listStyle: 'none',

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      gridTemplateColumns: 'repeat(2, 1fr)',
      gridColumnGap: vars.space['20'],
    },

    [`screen and ${BREAKPOINTS.desktopUp}`]: {
      gridTemplateColumns: 'repeat(3, 1fr)',
    },
  },
})

export const exampleFilters = style({
  marginBottom: vars.space['20'],

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      marginBottom: vars.space['40'],
    },
  },
})

export const xlHeading = style({
  marginBottom: vars.space['20'],

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      marginBottom: vars.space['30'],
    },
  },
})

export const copy = style({
  maxWidth: 680,
})

export const h2 = style({
  display: 'inline',
  marginLeft: -6,
})

globalStyle(`${copy} > a, ${h2} > a`, {
  position: 'relative',
  textDecoration: 'none',
})

globalStyle(`${h2} > a`, {
  fontWeight: vars.fontWeights.bold,
})

globalStyle(`${copy} > a:after, ${h2} > a:after`, {
  position: 'absolute',
  bottom: -1,
  left: 0,
  content: '',
  width: '100%',
  height: 2,
  backgroundColor: vars.colors.red100,

  '@media': {
    '(prefers-reduced-motion: no-preference)': {
      transition: 'width 200ms ease-out',
    },
  },
})

globalStyle(`${copy} > a:hover:after, ${h2} > a:hover:after`, {
  width: '0%',
})