|
| 1 | +import styled from 'styled-components' |
| 2 | + |
| 3 | +// import Img from '../../../components/Img' |
| 4 | +import { theme, cs } from '../../../utils' |
| 5 | + |
| 6 | +export const Wrapper = styled.div` |
| 7 | + ${cs.flexColumn()}; |
| 8 | + position: absolute; |
| 9 | + z-index: 1; |
| 10 | + top: 20px; |
| 11 | + left: 40px; |
| 12 | + background: ${theme('content.cardBg')}; |
| 13 | + padding: 2px; |
| 14 | + border-radius: 5px; |
| 15 | + width: ${({ expand }) => (expand ? '200px' : '150px')}; |
| 16 | + transition: width 0.2s linear; |
| 17 | +` |
| 18 | + |
| 19 | +export const SumWrapper = styled.div` |
| 20 | + ${cs.flex('align-both')}; |
| 21 | + color: ${theme('thread.articleDigest')}; |
| 22 | +` |
| 23 | + |
| 24 | +export const DetailText = styled.div` |
| 25 | + color: ${theme('thread.articleDigest')}; |
| 26 | + &:hover { |
| 27 | + color: ${theme('thread.articleTitle')}; |
| 28 | + cursor: pointer; |
| 29 | + } |
| 30 | +` |
| 31 | +export const DashboardListWrapper = styled.div` |
| 32 | + background: ${theme('content.cardBg')}; |
| 33 | + min-height: 200px; |
| 34 | + max-height: 60vh; |
| 35 | + margin-top: 3px; |
| 36 | + padding-top: 2px; |
| 37 | + padding-left: 4px; |
| 38 | + padding-right: 4px; |
| 39 | + padding-bottom: 5px; |
| 40 | + overflow-y: scroll; |
| 41 | +` |
| 42 | +export const DashItem = styled.div` |
| 43 | + ${cs.flex('align-center')}; |
| 44 | +` |
| 45 | +export const Title = styled.div` |
| 46 | + color: ${({ active }) => |
| 47 | + active ? theme('banner.title') : theme('thread.articleDigest')}; |
| 48 | + width: 60px; |
| 49 | + text-align: center; |
| 50 | +` |
| 51 | + |
| 52 | +export const Divider = styled.div` |
| 53 | + display: ${({ show }) => (show ? 'block' : 'none')}; |
| 54 | + border-bottom: 1px dashed; |
| 55 | + border-bottom-color: ${theme('thread.articleDigest')}; |
| 56 | + margin-top: 4px; |
| 57 | + margin-bottom: 4px; |
| 58 | + width: 80%; |
| 59 | + margin-left: 8%; |
| 60 | + opacity: 0.5; |
| 61 | +` |
| 62 | + |
| 63 | +export const Num = styled.div` |
| 64 | + color: ${theme('thread.articleDigest')}; |
| 65 | + width: 50px; |
| 66 | + text-align: left; |
| 67 | +` |
| 68 | +export const Chart = styled.div` |
| 69 | + ${cs.flexGrow()}; |
| 70 | +` |
| 71 | +export const ChartBar = styled.div` |
| 72 | + height: ${({ active }) => (active ? '4px' : '3px')}; |
| 73 | +
|
| 74 | + width: ${({ width }) => width}; |
| 75 | + background: ${({ active }) => |
| 76 | + active ? theme('geoMap.markerBg') : theme('thread.articleDigest')}; |
| 77 | +` |
0 commit comments