Download react-spring/docs/app/components/Code/Code.css.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Code/Code.css.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Code/Code.css.ts
-
curl -L -o Code.css.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Code/Code.css.ts
580 Bytes
| 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, | |
| }) | |