File size: 1,867 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
import { style } from '@vanilla-extract/css'
import { vars } from '../../styles/theme-contract.css'
import { BREAKPOINTS } from '../../styles/breakpoints.css'
import { XXS } from '../../styles/fontStyles.css'

export const subNavContainer = style({
  margin: `${vars.space['30']} 0`,
  position: 'relative',
  width: '100%',
  display: 'flex',
  justifyContent: 'center',
})

export const subNavScroller = style({
  overflow: '-moz-scrollbars-none',
  overflowX: 'auto',
  margin: `0 -2.8rem`,
  padding: `0 2.8rem`,

  selectors: {
    '&::-webkit-scrollbar': {
      display: 'none',
    },
  },

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      margin: 0,
      padding: 0,
    },
  },
})

const gradientShared = style({
  position: 'absolute',
  top: 0,
  height: '100%',
  width: '2rem',
})

export const gradientRight = style([
  gradientShared,
  {
    right: -28,
    backgroundImage: 'linear-gradient(90deg, $white0 0%, $white 100%)',

    '@media': {
      [`screen and ${BREAKPOINTS.tabletUp}`]: {
        right: 0,
      },
    },
  },
])

export const gradientLeft = style([
  gradientShared,
  {
    left: -28,
    backgroundImage: 'linear-gradient(90deg, $white 0%, $white0 100%)',

    '@media': {
      [`screen and ${BREAKPOINTS.tabletUp}`]: {
        left: 0,
      },
    },
  },
])

export const subNavList = style({
  listStyle: 'none',
  display: 'flex',
  margin: 0,
  padding: '0 0.4rem',
  gap: vars.space['20'],

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

export const subNavListItem = style({
  ':last-child': {
    paddingRight: '2.8rem',
  },

  '@media': {
    [`screen and ${BREAKPOINTS.tabletUp}`]: {
      ':last-child': {
        paddingRight: 0,
      },
    },
  },
})

export const subNavAnchor = style([
  XXS,
  {
    whiteSpace: 'nowrap',
  },
])