Download spectrum/src/components/announcementBanner/style.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 777 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/announcementBanner/style.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/announcementBanner/style.js
-
curl -L -o style.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/announcementBanner/style.js
777 Bytes
| // @flow | |
| import styled from 'styled-components'; | |
| import theme from 'shared/theme'; | |
| export const Bar = styled.div` | |
| display: flex; | |
| background: ${theme.brand.wash}; | |
| align-items: center; | |
| border-bottom: 1px solid ${theme.brand.border}; | |
| color: ${theme.brand.default}; | |
| font-size: 14px; | |
| font-weight: 400; | |
| padding: 0 8px 0 0; | |
| justify-content: center; | |
| flex: 0 0 48px; | |
| max-height: 48px; | |
| `; | |
| export const Content = styled.div` | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| line-height: 1.2; | |
| padding: 12px 0; | |
| flex: 1 0 auto; | |
| a { | |
| text-decoration: underline; | |
| font-weight: 600; | |
| } | |
| .icon { | |
| margin-right: 8px; | |
| } | |
| @media (max-width: 768px) { | |
| justify-content: flex-start; | |
| padding-left: 12px; | |
| flex: 1 1 auto; | |
| } | |
| `; | |