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