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

export const animatedIcon = style({
  position: 'absolute',
  left: '50%',
  top: '50%',
  transform: 'translate(-50%, -50%)',
})

export const absoluteContainer = style({
  display: 'block',
  position: 'relative',
  height: '100%',
  width: '100%',
})

export const copyButton = style({
  backgroundColor: vars.colors.codeBackground,
  border: 'none',
  padding: 0,
  height: 32,
  width: 32,
  overflow: 'hidden',
  borderRadius: vars.radii.r4,
  marginLeft: 14,
  cursor: 'pointer',

  '@media': {
    '(hover: hover)': {
      ':hover': {
        backgroundColor: vars.colors.red40,
      },

      selectors: {
        [`${darkThemeClass} &:hover`]: {
          backgroundColor: vars.colors.red40,
        },
      },
    },

    '(prefers-reduced-motion: no-preference)': {
      transition: 'background-color 250ms ease-out',
    },
  },
})