Download spectrum/src/components/reaction/style.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 907 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/reaction/style.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/reaction/style.js
-
curl -L -o style.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/reaction/style.js
907 Bytes
| // @flow | |
| import styled from 'styled-components'; | |
| export const ReactionWrapper = styled.span` | |
| display: flex; | |
| flex: 0 1 auto; | |
| align-items: center; | |
| justify-content: center; | |
| border-radius: 4px; | |
| padding: 2px 8px; | |
| margin-top: 4px; | |
| background: ${props => | |
| props.hasReacted ? props.theme.warn.wash : props.theme.bg.wash}; | |
| border: 1px solid | |
| ${props => | |
| props.hasReacted ? props.theme.warn.border : props.theme.bg.border}; | |
| color: ${props => | |
| props.hasReacted ? props.theme.warn.alt : props.theme.text.alt}; | |
| align-self: flex-start; | |
| cursor: pointer; | |
| font-size: 13px; | |
| font-weight: 600; | |
| line-height: 1; | |
| &:hover { | |
| color: ${props => | |
| props.hasReacted ? props.theme.warn.alt : props.theme.text.secondary}; | |
| } | |
| .icon { | |
| color: ${props => | |
| props.hasReacted ? props.theme.warn.alt : props.theme.text.alt}; | |
| margin-right: 4px; | |
| margin-top: -1px; | |
| } | |
| `; | |