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