@@ -5,74 +5,102 @@ import { theme } from '@/utils/themes'
5
5
import css from '@/utils/css'
6
6
7
7
const BaseCard = styled . div `
8
- ${ css . flexColumn ( 'align-center' ) } ;
8
+ ${ css . flex ( ) } ;
9
9
10
10
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;
17
15
background: #0c3442; //${ theme ( 'content.cardBg' ) } ;
18
16
border: 1px solid;
19
17
border-color:${ theme ( 'content.cardBorder' ) } ;
20
- border-radius:12px ;
18
+ border-radius:8px ;
21
19
`
22
20
export const Wrapper = styled ( BaseCard ) `
23
- margin-bottom:60px ;
21
+ margin-bottom:30px ;
24
22
25
23
&:hover {
26
24
cursor: pointer;
27
25
border: 1px solid #327faf;
28
26
box-shadow: 0px 7px 20px 10px rgba(0, 0, 0, 0.15); /* same with the popover */
29
27
}
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
+
37
29
transition: all 0.2s;
38
30
`
31
+ export const Left = styled . div `
32
+ ${ css . flexColumn ( 'align-start' ) } ;
33
+ width: 80px;
34
+ margin-right: 10px;
35
+ `
39
36
37
+ export const Right = styled . div `
38
+ width: calc(100% - 80px);
39
+ ${ css . flexColumn ( 'align-start' ) } ;
40
+ flex-flow: 1;
41
+ `
40
42
// fill only works for non-colored svgs
41
43
export const CommunityIcon = styled ( Img ) < { nonFill :boolean } > `
42
- ${ css . size ( 54 ) } ;
44
+ ${ css . size ( 26 ) } ;
43
45
fill:${ ( { nonFill} ) => ( nonFill ?'' :theme ( 'banner.desc' ) ) } ;
44
46
margin-bottom: 8px;
45
- margin-top: -35px;
46
47
${ Wrapper } :hover & {
47
48
fill:${ ( { nonFill} ) => ( nonFill ?'' :theme ( 'banner.title' ) ) } ;
48
49
}
49
50
`
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;
51
71
font-size: 18px;
52
72
font-weight: bold;
53
- margin-top: 5px;
54
- text-align: center;
55
73
color:${ theme ( 'thread.articleTitle' ) } ;
74
+ text-decoration: none;
75
+ &:hover {
76
+ text-decoration: underline;
77
+ color: #139c9e;
78
+ cursor: pointer;
79
+ }
56
80
`
57
81
export const Desc = styled . div `
82
+ margin-top: 8px;
58
83
color:${ theme ( 'thread.articleDigest' ) } ;
84
+ word-break: break-all;
59
85
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;
62
92
`
63
93
export const ActivitySpark = styled . div `
64
- width: 100%;
65
- height: 100%;
94
+ width: 80px;
95
+ height: 60px;
96
+ margin-left: -15px;
97
+ margin-top: 8px;
66
98
`
67
99
export 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' ) } ; */
76
104
padding-top: 15px;
77
105
`
78
106
export const Divider = styled . div `