File size: 580 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
import { globalStyle, style } from '@vanilla-extract/css'
import { BREAKPOINTS } from '../../styles/breakpoints.css'
import { pre } from './Pre.css'

export const preCopy = style({
  position: 'absolute',
  top: 24,
  right: 24,
  display: 'none',

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

globalStyle(`${pre} ${preCopy}`, {
  opacity: 0,

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

globalStyle(`${pre}:hover ${preCopy}`, {
  opacity: 1,
})