Download spectrum/src/components/appViewWrapper/style.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 997 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/components/appViewWrapper/style.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/components/appViewWrapper/style.js
-
curl -L -o style.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/components/appViewWrapper/style.js
997 Bytes
| import styled from 'styled-components'; | |
| import { | |
| MEDIA_BREAK, | |
| TITLEBAR_HEIGHT, | |
| NAVBAR_WIDTH, | |
| NAVBAR_EXPANDED_WIDTH, | |
| MIN_WIDTH_TO_EXPAND_NAVIGATION, | |
| } from 'src/components/layout'; | |
| export const StyledAppViewWrapper = styled.div` | |
| display: grid; | |
| width: 100%; | |
| grid-template-columns: ${props => | |
| props.isTwoColumn ? `${NAVBAR_WIDTH}px 1fr` : '1fr'}; | |
| grid-template-areas: ${props => | |
| props.isTwoColumn ? "'navigation main'" : "'main'"}; | |
| @media (max-width: ${MEDIA_BREAK}px) { | |
| grid-template-columns: 1fr; | |
| grid-template-rows: ${props => | |
| props.isTwoColumn ? `${TITLEBAR_HEIGHT}px 1fr` : '1fr'}; | |
| grid-template-areas: ${props => | |
| props.isTwoColumn ? "'titlebar' 'main'" : "'main'"}; | |
| } | |
| @media (min-width: ${MIN_WIDTH_TO_EXPAND_NAVIGATION}px) { | |
| grid-template-columns: ${props => | |
| props.isTwoColumn ? `${NAVBAR_EXPANDED_WIDTH}px 1fr` : '1fr'}; | |
| grid-template-areas: ${props => | |
| props.isTwoColumn ? "'navigation main'" : "'main'"}; | |
| } | |
| `; | |