@@ -5,74 +5,102 @@ import { theme } from '@/utils/themes'
55import css from '@/utils/css'
66
77const BaseCard = styled . div `
8- ${ css . flexColumn ( 'align-center' ) } ;
8+ ${ css . flex ( ) } ;
99
1010 position: relative;
11- padding-top: 12px;
12- padding: 10px;
13- padding-bottom: 0;
14- width: 200px;
15- height: 250px;
16- margin-right: 30px;
11+ padding: 15px 20px;
12+ width: 260px;
13+ height: 150px;
14+ margin-right: 25px;
1715 background: #0c3442; // ${ theme ( 'content.cardBg' ) } ;
1816 border: 1px solid;
1917 border-color: ${ theme ( 'content.cardBorder' ) } ;
20- border-radius: 12px ;
18+ border-radius: 8px ;
2119`
2220export const Wrapper = styled ( BaseCard ) `
23- margin-bottom: 60px ;
21+ margin-bottom: 30px ;
2422
2523 &:hover {
2624 cursor: pointer;
2725 border: 1px solid #327faf;
2826 box-shadow: 0px 7px 20px 10px rgba(0, 0, 0, 0.15); /* same with the popover */
2927 }
30- /*
31- &:hover {
32- border: 1px solid;
33- border-color: ${ theme ( 'content.cardBorderHover' ) } ;
34- box-shadow: 0px 7px 20px 10px rgba(0, 0, 0, 0.15);
35- }
36- */
28+
3729 transition: all 0.2s;
3830`
31+ export const Left = styled . div `
32+ ${ css . flexColumn ( 'align-start' ) } ;
33+ width: 80px;
34+ margin-right: 10px;
35+ `
3936
37+ export const Right = styled . div `
38+ width: calc(100% - 80px);
39+ ${ css . flexColumn ( 'align-start' ) } ;
40+ flex-flow: 1;
41+ `
4042// fill only works for non-colored svgs
4143export const CommunityIcon = styled ( Img ) < { nonFill : boolean } > `
42- ${ css . size ( 54 ) } ;
44+ ${ css . size ( 26 ) } ;
4345 fill: ${ ( { nonFill } ) => ( nonFill ? '' : theme ( 'banner.desc' ) ) } ;
4446 margin-bottom: 8px;
45- margin-top: -35px;
4647 ${ Wrapper } :hover & {
4748 fill: ${ ( { nonFill } ) => ( nonFill ? '' : theme ( 'banner.title' ) ) } ;
4849 }
4950`
50- export const Title = styled . div `
51+ export const Raw = styled . div `
52+ font-size: 13px;
53+ color: ${ theme ( 'thread.articleDigest' ) } ;
54+ opacity: 0.8;
55+
56+ &:before {
57+ content: '/';
58+ margin-right: 2px;
59+ }
60+ `
61+ export const JoinWrapper = styled . div `
62+ ${ css . flex ( 'align-center' ) } ;
63+ color: ${ theme ( 'thread.articleDigest' ) } ;
64+ font-size: 13px;
65+ `
66+ export const ContentWrapper = styled ( JoinWrapper ) `
67+ margin-top: -30px;
68+ `
69+ export const Title = styled . a `
70+ margin-top: -2px;
5171 font-size: 18px;
5272 font-weight: bold;
53- margin-top: 5px;
54- text-align: center;
5573 color: ${ theme ( 'thread.articleTitle' ) } ;
74+ text-decoration: none;
75+ &:hover {
76+ text-decoration: underline;
77+ color: #139c9e;
78+ cursor: pointer;
79+ }
5680`
5781export const Desc = styled . div `
82+ margin-top: 8px;
5883 color: ${ theme ( 'thread.articleDigest' ) } ;
84+ word-break: break-all;
5985 font-size: 13px;
60- text-align: center;
61- min-height: 50px;
86+ position: relative;
87+ display: -webkit-box;
88+ -webkit-line-clamp: 2;
89+ overflow: hidden;
90+ text-overflow: ellipsis;
91+ -webkit-box-orient: vertical;
6292`
6393export const ActivitySpark = styled . div `
64- width: 100%;
65- height: 100%;
94+ width: 80px;
95+ height: 60px;
96+ margin-left: -15px;
97+ margin-top: 8px;
6698`
6799export const Footer = styled . div `
68- ${ css . flex ( 'justify-around' ) } ;
69-
70- width: 90%;
71- position: absolute;
72- bottom: 16px;
73- color: ${ theme ( 'banner.desc' ) } ;
74- border-top: 1px solid;
75- border-top-color: ${ theme ( 'content.cardBorder' ) } ;
100+ width: 100%;
101+ ${ css . flex ( 'align-center' , 'justify-between' ) } ;
102+ /* border-top: 1px solid;
103+ border-top-color: ${ theme ( 'content.cardBorder' ) } ; */
76104 padding-top: 15px;
77105`
78106export const Divider = styled . div `
0 commit comments