1
+ import { colors } from '../../../colors' ;
2
+
3
+ // eslint-disable-next-line no-unused-vars
1
4
export const style = theme => ( {
2
5
activityCardContainer : {
3
6
position : 'relative' ,
4
- // maxWidth: '350px',
5
- // minWidth: '300px',
6
- height : '95%' ,
7
+ width : '100%' ,
8
+ textAlign : 'left' ,
7
9
} ,
8
10
activityCard : {
9
11
maxWidth : '100%' ,
10
- borderRadius : '15px' ,
12
+ height : '33em' ,
13
+ borderRadius : '20px' ,
11
14
position : 'relative!important' ,
12
- height : '100%' ,
13
15
} ,
14
16
opacity : {
15
17
backgroundColor : 'black' ,
@@ -27,57 +29,41 @@ export const style = theme => ({
27
29
objectFit : 'cover' ,
28
30
height : '100%' ,
29
31
} ,
32
+ unpublishedCardImage : {
33
+ filter : 'brightness(60%)' ,
34
+ } ,
35
+ publishStyle : {
36
+ position : 'absolute' ,
37
+ display : 'flex' ,
38
+ alignItems : 'center' ,
39
+ justifyContent : 'center' ,
40
+ color : 'white' ,
41
+ top : '1em' ,
42
+ right : '1em' ,
43
+ zIndex : 1 ,
44
+ backgroundColor : colors . gray ,
45
+ padding : '0.2em 1em' ,
46
+ borderRadius : '50px' ,
47
+ fontWeight : 700 ,
48
+ fontSize : '1.05rem' ,
49
+ } ,
30
50
mediaBoxStyle : {
31
51
width : '100%' ,
32
- height : '17em ' ,
52
+ height : '13em ' ,
33
53
position : 'relative' ,
34
54
padding : '2%' ,
35
55
display : 'flex' ,
36
56
justifyContent : 'center' ,
37
57
alignItems : 'center' ,
38
58
} ,
39
- activityTagsBox : {
40
- position : 'absolute' ,
41
- top : '10px' ,
42
- right : '10%' ,
43
- display : 'flex' ,
44
- } ,
45
- activityTagPill : {
46
- backgroundColor : 'white' ,
47
- color : 'var(--text-color2)' ,
48
- border : '1px solid var(--text-color2)' ,
49
- '&:hover' : {
50
- backgroundColor : 'var(--text-color2)' ,
51
- color : 'white' ,
52
- border : '1px solid white' ,
53
- } ,
54
- } ,
55
- activityTagsShowMore : {
56
- '&:hover' : {
57
- backgroundColor : 'white' ,
58
- color : 'var(--text-color2)' ,
59
- border : '1px solid white' ,
60
- } ,
61
- } ,
62
- tagsShowMoreIconContainer : {
63
- //position: 'absolute',
64
- } ,
65
- tagsShowMoreList : {
66
- position : 'absolute' ,
67
- right : '0%' ,
68
- backgroundColor : 'white' ,
69
- maxHeight : '12em' ,
70
- overflow : 'auto' ,
71
- borderRadius : '10px' ,
72
- } ,
73
-
74
59
activityCardContent : {
75
60
width : '100%' ,
76
- position : 'relative ' ,
77
- } ,
78
- activityCardInfoBox : {
79
- height : '100%' ,
61
+ padding : '16px ' ,
62
+ '&:last-child' : {
63
+ paddingBottom : '12px' ,
64
+ } ,
80
65
display : 'flex' ,
66
+ flexDirection : 'column' ,
81
67
justifyContent : 'space-between' ,
82
68
} ,
83
69
projectsCount : {
@@ -92,10 +78,70 @@ export const style = theme => ({
92
78
marginLeft : '5px' ,
93
79
} ,
94
80
activityTitle : {
95
- fontSize : '1.1rem ' ,
96
- fontWeight : '900' ,
81
+ fontSize : '1.3rem ' ,
82
+ fontWeight : 700 ,
97
83
color : 'var(--text-color1)' ,
98
- // width: '80%',
99
- textAlign : '-webkit-auto' ,
84
+ overflow : 'hidden' ,
85
+ textOverflow : 'ellipsis' ,
86
+ whiteSpace : 'nowrap' ,
87
+ } ,
88
+ activityDescription : {
89
+ height : '48px' ,
90
+ margin : '8px 0' ,
91
+ textOverflow : 'ellipsis' ,
92
+ overflow : 'hidden' ,
93
+ display : '-webkit-box' ,
94
+ '-webkit-line-clamp' : 2 ,
95
+ '-webkit-box-orient' : 'vertical' ,
96
+ } ,
97
+ activityCategoryContainer : {
98
+ margin : '12px 0' ,
99
+ display : 'flex' ,
100
+ flexWrap : 'nowrap' ,
101
+ gap : '8px' ,
102
+ } ,
103
+ activityCategory : {
104
+ overflow : 'hidden' ,
105
+ textOverflow : 'ellipsis' ,
106
+ fontSize : '0.9em' ,
107
+ padding : '2px 10px' ,
108
+ border : '1px solid #7E5B4B' ,
109
+ borderRadius : '10em' ,
110
+ background : '#F1D27C' ,
111
+ } ,
112
+ footer : {
113
+ marginTop : 10 ,
114
+ display : 'flex' ,
115
+ flexDirection : 'row' ,
116
+ flexWrap : 'nowrap' ,
117
+ overflow : 'hidden' ,
118
+ } ,
119
+ captionStyle : {
120
+ display : 'flex' ,
121
+ justifyContent : 'space-between' ,
122
+ alignItems : 'center' ,
123
+ } ,
124
+ captionIconStyle : {
125
+ backgroundColor : '#eee' ,
126
+ padding : '2px 7px' ,
127
+ borderRadius : 25 ,
128
+ justifyContent : 'space-between' ,
129
+ fontWeight : '600' ,
130
+ display : 'flex' ,
131
+ alignItems : 'center' ,
132
+ marginRight : '1em' ,
133
+ '& svg' : {
134
+ fill : 'rgba(0,0,0,0.54)' ,
135
+ marginRight : '0.5em' ,
136
+ fontSize : '1.1rem' ,
137
+ } ,
138
+ } ,
139
+ date : {
140
+ fontSize : '0.9rem' ,
141
+ fontWeight : '600' ,
142
+ marginLeft : 'auto' ,
143
+ whiteSpace : 'nowrap' ,
144
+ overflow : 'hidden' ,
145
+ textOverflow : 'ellipsis' ,
100
146
} ,
101
147
} ) ;
0 commit comments