Download spectrum/src/views/user/style.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.72 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/user/style.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/views/user/style.js
-
curl -L -o style.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/user/style.js
1.72 kB
| // @flow | |
| import theme from 'shared/theme'; | |
| import styled from 'styled-components'; | |
| import { FlexRow, FlexCol } from 'src/components/globals'; | |
| import { MEDIA_BREAK } from 'src/components/layout'; | |
| export const Row = styled(FlexRow)` | |
| padding: 8px 16px; | |
| align-items: center; | |
| width: 100%; | |
| color: ${theme.text.alt}; | |
| div { | |
| margin-top: 2px; | |
| margin-right: 8px; | |
| color: inherit; | |
| } | |
| span { | |
| line-height: 1; | |
| color: inherit; | |
| } | |
| &:hover { | |
| background-color: ${theme.brand.alt}; | |
| color: ${theme.text.reverse}; | |
| } | |
| `; | |
| export const Col = styled(FlexCol)` | |
| width: 100%; | |
| a + a > div { | |
| border-top: 2px solid ${theme.bg.wash}; | |
| } | |
| `; | |
| export const RowLabel = styled.span` | |
| font-weight: 600; | |
| `; | |
| const Column = styled.div` | |
| display: flex; | |
| flex-direction: column; | |
| `; | |
| export const Meta = styled(Column)` | |
| grid-area: meta; | |
| > button, | |
| > a > button { | |
| margin-top: 16px; | |
| margin-left: 32px; | |
| width: calc(100% - 32px); | |
| @media (max-width: ${MEDIA_BREAK}px) { | |
| margin-left: 0; | |
| width: 100%; | |
| } | |
| } | |
| @media (max-width: ${MEDIA_BREAK}px) { | |
| padding: 0 16px; | |
| > div { | |
| margin-left: 0; | |
| } | |
| } | |
| `; | |
| export const MetaMemberships = styled.div` | |
| margin-left: 32px; | |
| @media (min-width: 1279px) { | |
| display: none; | |
| } | |
| @media (max-width: ${MEDIA_BREAK}px) { | |
| display: none; | |
| } | |
| `; | |
| export const ColumnHeading = styled.div` | |
| display: flex; | |
| align-items: center; | |
| font-size: 18px; | |
| line-height: 1; | |
| font-weight: 500; | |
| padding: 8px 16px 12px; | |
| margin-top: 24px; | |
| border-bottom: 2px solid ${theme.bg.border}; | |
| `; | |
| export const FeedsContainer = styled.section` | |
| display: flex; | |
| flex-direction: column; | |
| background: ${theme.bg.default}; | |
| `; | |