File size: 863 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
import { globalStyle, style } from '@vanilla-extract/css'
import { vars } from '../../styles/theme-contract.css'
import { BREAKPOINTS } from '../../styles/breakpoints.css'
import { darkThemeClass } from '../../styles/dark-theme.css'

export const stickyMenu = style({
  display: 'flex',
  alignItems: 'center',
  justifyContent: 'center',
  width: '100%',
  maxWidth: 'inherit',
  backgroundColor: 'rgba(250, 250, 250, 0.80)',
  backdropFilter: 'blur(5px)',
  zIndex: vars.zIndices['1'],
  padding: '0 2.8rem',
  top: 0,

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

  selectors: {
    [`${darkThemeClass} &`]: {
      backgroundColor: 'rgba(27, 26, 34, 0.8)',
    },
  },
})

export const stickyMenuStuck = style({
  position: 'fixed',
})

globalStyle(`${stickyMenuStuck} + article`, {
  paddingTop: 82,
})