File size: 2,098 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
import { style } from '@vanilla-extract/css'
import { vars } from '../../styles/theme-contract.css'
import { recipe } from '@vanilla-extract/recipes'

export const mobileMenuOverlay = style({
  position: 'fixed',
  left: 0,
  right: 0,
  top: 0,
  bottom: 0,
  width: '100vw',
  height: '100vh',
  zIndex: vars.zIndices['1'],
  backgroundColor: 'rgba(255, 255, 255, 0.02)',
  backdropFilter: 'blur(5px)',

  '@supports': {
    'not (backdrop-filter: blur(10px))': {
      backgroundColor: 'rgba(0,0,0,0.1)',
    },
  },
})

export const mobileMenu = style({
  position: 'fixed',
  right: 0,
  top: 0,
  bottom: 0,
  height: '100vh',
  width: '30rem',
  background: vars.colors.white,
  zIndex: vars.zIndices['1'],
  boxShadow: '3px 0 12px -10px rgba(0,0,0,0.5)',
  padding: `${vars.space['25']} 0 ${vars.space['10']}`,
  display: 'flex',
  flexDirection: 'column',
})

export const mobileDialogHeader = style({
  display: 'flex',
  justifyContent: 'space-between',
})

export const mobileMenuClose = style({
  border: 'none',
  color: vars.colors.steel100,
  background: 'transparent',
  marginBottom: vars.space['20'],
  marginLeft: vars.space['15'],
  padding: '1.1rem 1.2rem',
  cursor: 'pointer',
})

export const mobileThemePicker = style({
  marginRight: vars.space['15'],
})

export const mainNavigation = recipe({
  base: {
    margin: `0 ${vars.space['10']}`,
    paddingBottom: vars.space['20'],
  },

  variants: {
    isDocsSection: {
      true: {
        borderBottom: `solid 1px ${vars.colors.steel20}`,
      },
      false: {
        flexDirection: 'column',
        alignItems: 'flex-start',
      },
    },
  },
})

export const subNavContainer = recipe({
  base: {
    listStyle: 'none',
    margin: `0 ${vars.space['10']}`,
    padding: 0,
    display: 'flex',
    gap: vars.space['10'],
    paddingTop: vars.space['10'],
  },

  variants: {
    isDocsSection: {
      true: {
        alignItems: 'center',
        borderTop: `solid 1px ${vars.colors.steel20}`,
      },
      false: {
        alignItems: 'flex-start',
        flexDirection: 'column',
      },
    },
  },
})