@selfcommunity/react-theme-default 0.1.9-alpha.9 → 0.1.10-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/SCCategoryHeader.d.ts +10 -1
- package/lib/cjs/components/SCCategoryHeader.js +12 -3
- package/lib/cjs/components/SCFeedObject.d.ts +32 -0
- package/lib/cjs/components/SCFeedObject.js +33 -1
- package/lib/cjs/components/SCGroup.d.ts +5 -0
- package/lib/cjs/components/SCGroup.js +6 -1
- package/lib/cjs/components/SCGroupFeedTemplate.d.ts +3 -0
- package/lib/cjs/components/SCGroupFeedTemplate.js +4 -1
- package/lib/cjs/components/SCGroupHeader.d.ts +3 -6
- package/lib/cjs/components/SCGroupHeader.js +10 -12
- package/lib/cjs/components/SCGroupInfoWidget.d.ts +5 -0
- package/lib/cjs/components/SCGroupInfoWidget.js +5 -0
- package/lib/cjs/components/SCGroupInviteButton.d.ts +3 -0
- package/lib/cjs/components/SCGroupInviteButton.js +4 -1
- package/lib/cjs/components/SCGroupInvitedWidget.d.ts +8 -0
- package/lib/cjs/components/SCGroupInvitedWidget.js +10 -0
- package/lib/cjs/components/SCGroupTemplate.d.ts +3 -0
- package/lib/cjs/components/SCGroupTemplate.js +3 -0
- package/lib/cjs/components/SCGroups.d.ts +28 -1
- package/lib/cjs/components/SCGroups.js +30 -3
- package/lib/cjs/components/SCNavigationToolbarMobile.js +1 -1
- package/lib/cjs/components/SCNotification.d.ts +1 -0
- package/lib/cjs/components/SCNotification.js +1 -0
- package/lib/cjs/components/SCPrivateMessageSnippets.d.ts +1 -0
- package/lib/cjs/components/SCPrivateMessageSnippets.js +1 -0
- package/lib/cjs/components/SCPrivateMessageThread.d.ts +11 -0
- package/lib/cjs/components/SCPrivateMessageThread.js +15 -4
- package/lib/cjs/components/SCPrivateMessageThreadItem.d.ts +5 -1
- package/lib/cjs/components/SCPrivateMessageThreadItem.js +6 -1
- package/lib/cjs/components/SCUser.d.ts +5 -0
- package/lib/cjs/components/SCUser.js +5 -0
- package/lib/cjs/components/SCUserProfileHeader.d.ts +2 -2
- package/lib/cjs/components/SCUserProfileHeader.js +10 -10
- package/lib/cjs/components/SCUserSubscribedGroupsWidget.d.ts +8 -0
- package/lib/cjs/components/SCUserSubscribedGroupsWidget.js +10 -0
- package/lib/cjs/index.d.ts +131 -11
- package/lib/cjs/index.js +6 -2
- package/lib/esm/components/SCCategoryHeader.d.ts +10 -1
- package/lib/esm/components/SCCategoryHeader.js +12 -3
- package/lib/esm/components/SCFeedObject.d.ts +32 -0
- package/lib/esm/components/SCFeedObject.js +33 -1
- package/lib/esm/components/SCGroup.d.ts +5 -0
- package/lib/esm/components/SCGroup.js +6 -1
- package/lib/esm/components/SCGroupFeedTemplate.d.ts +3 -0
- package/lib/esm/components/SCGroupFeedTemplate.js +4 -1
- package/lib/esm/components/SCGroupHeader.d.ts +3 -6
- package/lib/esm/components/SCGroupHeader.js +10 -12
- package/lib/esm/components/SCGroupInfoWidget.d.ts +5 -0
- package/lib/esm/components/SCGroupInfoWidget.js +5 -0
- package/lib/esm/components/SCGroupInviteButton.d.ts +3 -0
- package/lib/esm/components/SCGroupInviteButton.js +4 -1
- package/lib/esm/components/SCGroupInvitedWidget.d.ts +8 -0
- package/lib/esm/components/SCGroupInvitedWidget.js +8 -0
- package/lib/esm/components/SCGroupTemplate.d.ts +3 -0
- package/lib/esm/components/SCGroupTemplate.js +3 -0
- package/lib/esm/components/SCGroups.d.ts +28 -1
- package/lib/esm/components/SCGroups.js +30 -3
- package/lib/esm/components/SCNavigationToolbarMobile.js +1 -1
- package/lib/esm/components/SCNotification.d.ts +1 -0
- package/lib/esm/components/SCNotification.js +1 -0
- package/lib/esm/components/SCPrivateMessageSnippets.d.ts +1 -0
- package/lib/esm/components/SCPrivateMessageSnippets.js +1 -0
- package/lib/esm/components/SCPrivateMessageThread.d.ts +11 -0
- package/lib/esm/components/SCPrivateMessageThread.js +15 -4
- package/lib/esm/components/SCPrivateMessageThreadItem.d.ts +5 -1
- package/lib/esm/components/SCPrivateMessageThreadItem.js +6 -1
- package/lib/esm/components/SCUser.d.ts +5 -0
- package/lib/esm/components/SCUser.js +5 -0
- package/lib/esm/components/SCUserProfileHeader.d.ts +2 -2
- package/lib/esm/components/SCUserProfileHeader.js +10 -10
- package/lib/esm/components/SCUserSubscribedGroupsWidget.d.ts +8 -0
- package/lib/esm/components/SCUserSubscribedGroupsWidget.js +8 -0
- package/lib/esm/index.d.ts +131 -11
- package/lib/esm/index.js +6 -2
- package/lib/umd/react-theme-default.js +2 -2
- package/package.json +4 -4
|
@@ -18,7 +18,12 @@ const Component = {
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
'& .SCBaseItemButton-primary': {
|
|
21
|
-
|
|
21
|
+
display: 'flex',
|
|
22
|
+
alignItems: 'center',
|
|
23
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
24
|
+
'& .SCGroup-icon': {
|
|
25
|
+
marginLeft: theme.spacing(0.5)
|
|
26
|
+
}
|
|
22
27
|
},
|
|
23
28
|
'& .SCBaseItemButton-secondary': {
|
|
24
29
|
fontSize: '0.857rem'
|
|
@@ -4,10 +4,6 @@ declare const Component: {
|
|
|
4
4
|
'& .SCGroupHeader-cover': {
|
|
5
5
|
[x: number]: {
|
|
6
6
|
borderRadius: any;
|
|
7
|
-
margin?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
margin: any;
|
|
10
|
-
borderRadius?: undefined;
|
|
11
7
|
};
|
|
12
8
|
position: string;
|
|
13
9
|
height: number;
|
|
@@ -17,7 +13,7 @@ declare const Component: {
|
|
|
17
13
|
boxShadow: string;
|
|
18
14
|
};
|
|
19
15
|
'& .SCGroupHeader-info': {
|
|
20
|
-
marginTop:
|
|
16
|
+
marginTop: any;
|
|
21
17
|
display: string;
|
|
22
18
|
flexDirection: string;
|
|
23
19
|
justifyContent: string;
|
|
@@ -47,6 +43,7 @@ declare const Component: {
|
|
|
47
43
|
'& .SCEditGroupButton-root': {
|
|
48
44
|
marginLeft: string;
|
|
49
45
|
marginTop: any;
|
|
46
|
+
marginRight: any;
|
|
50
47
|
};
|
|
51
48
|
'& .SCGroupSubscribeButton-root': {
|
|
52
49
|
marginTop: any;
|
|
@@ -89,7 +86,7 @@ declare const Component: {
|
|
|
89
86
|
position: string;
|
|
90
87
|
'& .SCGroupHeader-cover': {
|
|
91
88
|
[x: number]: {
|
|
92
|
-
|
|
89
|
+
borderRadius: any;
|
|
93
90
|
};
|
|
94
91
|
height: number;
|
|
95
92
|
};
|
|
@@ -3,20 +3,17 @@ const Component = {
|
|
|
3
3
|
root: ({ theme }) => ({
|
|
4
4
|
'& .SCGroupHeader-cover': {
|
|
5
5
|
position: 'relative',
|
|
6
|
-
height:
|
|
6
|
+
height: 230,
|
|
7
7
|
minHeight: 150,
|
|
8
8
|
borderRadius: 0,
|
|
9
9
|
background: 'linear-gradient(180deg, rgba(177,177,177,1) 0%, rgba(255,255,255,1) 90%)',
|
|
10
10
|
boxShadow: 'unset',
|
|
11
11
|
[theme.breakpoints.up('md')]: {
|
|
12
12
|
borderRadius: theme.spacing(0, 0, 2.5, 2.5)
|
|
13
|
-
},
|
|
14
|
-
[theme.breakpoints.up('lg')]: {
|
|
15
|
-
margin: theme.spacing(0, -5, 0, -5)
|
|
16
13
|
}
|
|
17
14
|
},
|
|
18
15
|
'& .SCGroupHeader-info': {
|
|
19
|
-
marginTop:
|
|
16
|
+
marginTop: theme.spacing(6.5),
|
|
20
17
|
display: 'flex',
|
|
21
18
|
flexDirection: 'column',
|
|
22
19
|
justifyContent: 'center',
|
|
@@ -45,14 +42,15 @@ const Component = {
|
|
|
45
42
|
},
|
|
46
43
|
'& .SCEditGroupButton-root': {
|
|
47
44
|
marginLeft: 'auto',
|
|
48
|
-
marginTop: theme.spacing(
|
|
45
|
+
marginTop: theme.spacing(-4.25),
|
|
46
|
+
marginRight: theme.spacing(1)
|
|
49
47
|
},
|
|
50
48
|
'& .SCGroupSubscribeButton-root': {
|
|
51
49
|
marginTop: theme.spacing(1)
|
|
52
50
|
}
|
|
53
51
|
},
|
|
54
52
|
'& .SCGroupHeader-avatar': {
|
|
55
|
-
top:
|
|
53
|
+
top: 230,
|
|
56
54
|
display: 'block',
|
|
57
55
|
position: 'absolute',
|
|
58
56
|
transform: 'translate(-50%, -50%)',
|
|
@@ -66,7 +64,7 @@ const Component = {
|
|
|
66
64
|
}
|
|
67
65
|
},
|
|
68
66
|
'& .SCGroupHeader-change-picture': {
|
|
69
|
-
top:
|
|
67
|
+
top: 230,
|
|
70
68
|
left: '50%',
|
|
71
69
|
transform: 'translate(90%, -50%)',
|
|
72
70
|
position: 'relative',
|
|
@@ -87,13 +85,13 @@ const Component = {
|
|
|
87
85
|
skeletonRoot: ({ theme }) => ({
|
|
88
86
|
position: 'relative',
|
|
89
87
|
'& .SCGroupHeader-cover': {
|
|
90
|
-
[theme.breakpoints.up('
|
|
91
|
-
|
|
88
|
+
[theme.breakpoints.up('md')]: {
|
|
89
|
+
borderRadius: theme.spacing(0, 0, 2.5, 2.5)
|
|
92
90
|
},
|
|
93
|
-
height:
|
|
91
|
+
height: 230
|
|
94
92
|
},
|
|
95
93
|
'& .SCGroupHeader-avatar': {
|
|
96
|
-
top:
|
|
94
|
+
top: 230,
|
|
97
95
|
display: 'block',
|
|
98
96
|
position: 'absolute',
|
|
99
97
|
transform: 'translate(-50%, -50%)',
|
|
@@ -34,7 +34,10 @@ const Component = {
|
|
|
34
34
|
},
|
|
35
35
|
'& .SCGroupInviteButton-invited-box': {
|
|
36
36
|
marginTop: theme.spacing(2),
|
|
37
|
-
marginBottom: theme.spacing(3)
|
|
37
|
+
marginBottom: theme.spacing(3),
|
|
38
|
+
'& .MuiChip-root': {
|
|
39
|
+
marginBottom: theme.spacing(1)
|
|
40
|
+
}
|
|
38
41
|
},
|
|
39
42
|
'& .SCGroupInviteButton-suggested': {
|
|
40
43
|
'& h4': {
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
declare const Component: {
|
|
2
2
|
styleOverrides: {
|
|
3
3
|
root: ({ theme }: any) => {
|
|
4
|
+
'& .SCGroups-skeleton-root ': {
|
|
5
|
+
'& .MuiGrid-item': {
|
|
6
|
+
paddingTop: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
'& .MuiGrid-container': {
|
|
10
|
+
justifyContent: string;
|
|
11
|
+
};
|
|
12
|
+
'& .SCGroups-filters': {
|
|
13
|
+
marginTop: any;
|
|
14
|
+
marginBottom: any;
|
|
15
|
+
};
|
|
4
16
|
'& .SCGroups-groups': {
|
|
5
17
|
marginTop: any;
|
|
6
18
|
'& .SCGroups-item': {
|
|
7
|
-
|
|
19
|
+
[x: number]: {
|
|
20
|
+
padding: any;
|
|
21
|
+
};
|
|
8
22
|
width: string;
|
|
9
23
|
'& > div': {
|
|
10
24
|
cursor: string;
|
|
@@ -13,6 +27,7 @@ declare const Component: {
|
|
|
13
27
|
};
|
|
14
28
|
};
|
|
15
29
|
'& .SCGroups-no-results': {
|
|
30
|
+
marginTop: any;
|
|
16
31
|
display: string;
|
|
17
32
|
flexDirection: string;
|
|
18
33
|
justifyContent: string;
|
|
@@ -26,9 +41,21 @@ declare const Component: {
|
|
|
26
41
|
fontSize: any;
|
|
27
42
|
};
|
|
28
43
|
};
|
|
44
|
+
'& .SCGroups-end-message': {
|
|
45
|
+
display: string;
|
|
46
|
+
alignItems: string;
|
|
47
|
+
justifyContent: string;
|
|
48
|
+
'& .MuiButtonBase-root': {
|
|
49
|
+
paddingLeft: any;
|
|
50
|
+
'&.Mui-selected, &:hover': {
|
|
51
|
+
backgroundColor: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
29
55
|
};
|
|
30
56
|
skeletonRoot: ({ theme }: any) => {
|
|
31
57
|
'& .SCGroups-groups': {
|
|
58
|
+
justifyContent: string;
|
|
32
59
|
marginTop: any;
|
|
33
60
|
'& .SCGroup-skeleton-root': {
|
|
34
61
|
padding: any;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
const Component = {
|
|
2
2
|
styleOverrides: {
|
|
3
3
|
root: ({ theme }) => ({
|
|
4
|
+
'& .SCGroups-skeleton-root ': {
|
|
5
|
+
'& .MuiGrid-item': {
|
|
6
|
+
paddingTop: 0
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
'& .MuiGrid-container': {
|
|
10
|
+
justifyContent: 'center'
|
|
11
|
+
},
|
|
12
|
+
'& .SCGroups-filters': {
|
|
13
|
+
marginTop: theme.spacing(),
|
|
14
|
+
marginBottom: theme.spacing(2)
|
|
15
|
+
},
|
|
4
16
|
'& .SCGroups-groups': {
|
|
5
|
-
marginTop: theme.spacing(
|
|
17
|
+
marginTop: theme.spacing(2),
|
|
6
18
|
'& .SCGroups-item': {
|
|
7
|
-
|
|
19
|
+
[theme.breakpoints.up('md')]: {
|
|
20
|
+
padding: theme.spacing(2)
|
|
21
|
+
},
|
|
8
22
|
width: 'auto',
|
|
9
23
|
'& > div': {
|
|
10
24
|
cursor: 'default',
|
|
@@ -13,6 +27,7 @@ const Component = {
|
|
|
13
27
|
}
|
|
14
28
|
},
|
|
15
29
|
'& .SCGroups-no-results': {
|
|
30
|
+
marginTop: theme.spacing(3),
|
|
16
31
|
display: 'flex',
|
|
17
32
|
flexDirection: 'column',
|
|
18
33
|
justifyContent: 'center',
|
|
@@ -25,13 +40,25 @@ const Component = {
|
|
|
25
40
|
fontWeight: theme.typography.fontWeightMedium,
|
|
26
41
|
fontSize: theme.typography.body1.fontSize
|
|
27
42
|
}
|
|
43
|
+
},
|
|
44
|
+
'& .SCGroups-end-message': {
|
|
45
|
+
display: 'flex',
|
|
46
|
+
alignItems: 'center',
|
|
47
|
+
justifyContent: 'center',
|
|
48
|
+
'& .MuiButtonBase-root': {
|
|
49
|
+
paddingLeft: theme.spacing(1),
|
|
50
|
+
'&.Mui-selected, &:hover': {
|
|
51
|
+
backgroundColor: 'transparent'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
28
54
|
}
|
|
29
55
|
}),
|
|
30
56
|
skeletonRoot: ({ theme }) => ({
|
|
31
57
|
'& .SCGroups-groups': {
|
|
58
|
+
justifyContent: 'center',
|
|
32
59
|
marginTop: theme.spacing(3),
|
|
33
60
|
'& .SCGroup-skeleton-root': {
|
|
34
|
-
padding: theme.spacing(1
|
|
61
|
+
padding: theme.spacing(1),
|
|
35
62
|
width: 'auto'
|
|
36
63
|
}
|
|
37
64
|
}
|
|
@@ -69,6 +69,17 @@ declare const Component: {
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
+
'& .SCPrivateMessageThread-item': {
|
|
73
|
+
display: string;
|
|
74
|
+
marginBottom: any;
|
|
75
|
+
'& .SCPrivateMessageThread-avatar': {
|
|
76
|
+
marginRight: any;
|
|
77
|
+
'& img': {
|
|
78
|
+
height: any;
|
|
79
|
+
width: any;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
72
83
|
};
|
|
73
84
|
'& .SCPrivateMessageThread-empty-message': {
|
|
74
85
|
height: string;
|
|
@@ -4,7 +4,7 @@ const Component = {
|
|
|
4
4
|
root: ({ theme }) => ({
|
|
5
5
|
height: '100%',
|
|
6
6
|
width: '100%',
|
|
7
|
-
backgroundColor: alpha(theme.palette.common.white,
|
|
7
|
+
backgroundColor: alpha(theme.palette.common.white, 0.5),
|
|
8
8
|
borderRadius: 0,
|
|
9
9
|
'& .MuiCardContent-root': {
|
|
10
10
|
display: 'flex',
|
|
@@ -48,7 +48,7 @@ const Component = {
|
|
|
48
48
|
position: 'absolute',
|
|
49
49
|
border: `${theme.spacing(3)} solid transparent`,
|
|
50
50
|
borderTop: `${theme.spacing(3)} solid ${theme.palette.common.white}`,
|
|
51
|
-
top: theme.spacing(
|
|
51
|
+
top: theme.spacing(0),
|
|
52
52
|
left: theme.spacing(-2)
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -62,13 +62,24 @@ const Component = {
|
|
|
62
62
|
position: 'absolute',
|
|
63
63
|
border: `${theme.spacing(3)} solid transparent`,
|
|
64
64
|
borderTop: `${theme.spacing(3)} solid ${theme.palette.grey[300]}`,
|
|
65
|
-
top: theme.spacing(
|
|
65
|
+
top: theme.spacing(0),
|
|
66
66
|
right: theme.spacing(-2)
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
+
},
|
|
73
|
+
'& .SCPrivateMessageThread-item': {
|
|
74
|
+
display: 'flex',
|
|
75
|
+
marginBottom: theme.spacing(1),
|
|
76
|
+
'& .SCPrivateMessageThread-avatar': {
|
|
77
|
+
marginRight: theme.spacing(6),
|
|
78
|
+
'& img': {
|
|
79
|
+
height: theme.selfcommunity.group.avatar.sizeMedium,
|
|
80
|
+
width: theme.selfcommunity.group.avatar.sizeMedium
|
|
81
|
+
}
|
|
82
|
+
}
|
|
72
83
|
}
|
|
73
84
|
},
|
|
74
85
|
'& .SCPrivateMessageThread-empty-message': {
|
|
@@ -84,7 +95,7 @@ const Component = {
|
|
|
84
95
|
height: theme.mixins.toolbar.minHeight,
|
|
85
96
|
alignItems: 'center',
|
|
86
97
|
justifyContent: 'center',
|
|
87
|
-
backgroundColor: alpha(theme.palette.
|
|
98
|
+
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity),
|
|
88
99
|
'& .SCPrivateMessageThread-new-message-header-content': {
|
|
89
100
|
display: 'flex',
|
|
90
101
|
alignItems: 'center',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const Component: {
|
|
2
2
|
styleOverrides: {
|
|
3
3
|
root: ({ theme }: any) => {
|
|
4
|
+
flexDirection: string;
|
|
4
5
|
borderRadius: any;
|
|
5
6
|
padding: any;
|
|
6
7
|
boxShadow: string;
|
|
@@ -19,6 +20,10 @@ declare const Component: {
|
|
|
19
20
|
right: any;
|
|
20
21
|
padding: any;
|
|
21
22
|
};
|
|
23
|
+
'& .SCPrivateMessageThreadItem-username': {
|
|
24
|
+
marginRight: string;
|
|
25
|
+
marginBottom: any;
|
|
26
|
+
};
|
|
22
27
|
'& .SCPrivateMessageThreadItem-text': {
|
|
23
28
|
display: string;
|
|
24
29
|
alignItems: string;
|
|
@@ -83,7 +88,6 @@ declare const Component: {
|
|
|
83
88
|
};
|
|
84
89
|
'& .MuiButtonBase-root': {
|
|
85
90
|
flexWrap: string;
|
|
86
|
-
width: string;
|
|
87
91
|
position: string;
|
|
88
92
|
bottom: any;
|
|
89
93
|
backgroundColor: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const Component = {
|
|
2
2
|
styleOverrides: {
|
|
3
3
|
root: ({ theme }) => ({
|
|
4
|
+
flexDirection: 'column',
|
|
4
5
|
borderRadius: theme.shape.borderRadius,
|
|
5
6
|
padding: theme.spacing(2, 4, 4, 2),
|
|
6
7
|
boxShadow: '0px 0px 10px rgba(0, 0, 0, 0.1)',
|
|
@@ -19,6 +20,10 @@ const Component = {
|
|
|
19
20
|
right: theme.spacing(3),
|
|
20
21
|
padding: theme.spacing(0.5, 0, 0.5, 0)
|
|
21
22
|
},
|
|
23
|
+
'& .SCPrivateMessageThreadItem-username': {
|
|
24
|
+
marginRight: 'auto',
|
|
25
|
+
marginBottom: theme.spacing(1)
|
|
26
|
+
},
|
|
22
27
|
'& .SCPrivateMessageThreadItem-text': {
|
|
23
28
|
display: 'flex',
|
|
24
29
|
alignItems: 'center',
|
|
@@ -83,7 +88,7 @@ const Component = {
|
|
|
83
88
|
},
|
|
84
89
|
'& .MuiButtonBase-root': {
|
|
85
90
|
flexWrap: 'wrap',
|
|
86
|
-
width: 'calc(100% - 24px)',
|
|
91
|
+
//width: 'calc(100% - 24px)',
|
|
87
92
|
position: 'absolute',
|
|
88
93
|
bottom: theme.spacing(4),
|
|
89
94
|
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
@@ -22,6 +22,11 @@ const Component = {
|
|
|
22
22
|
borderRadius: 0,
|
|
23
23
|
fontSize: '0.5rem'
|
|
24
24
|
},
|
|
25
|
+
'& .SCUser-group-admin-badge-label': {
|
|
26
|
+
marginLeft: theme.spacing(1),
|
|
27
|
+
fontSize: '0.75rem',
|
|
28
|
+
color: theme.palette.secondary.main
|
|
29
|
+
},
|
|
25
30
|
'& .SCBaseItemButton-primary': {
|
|
26
31
|
fontWeight: theme.typography.fontWeightBold
|
|
27
32
|
},
|
|
@@ -3,7 +3,7 @@ declare const Component: {
|
|
|
3
3
|
root: ({ theme }: any) => {
|
|
4
4
|
'& .SCUserProfileHeader-cover': {
|
|
5
5
|
[x: number]: {
|
|
6
|
-
|
|
6
|
+
borderRadius: any;
|
|
7
7
|
};
|
|
8
8
|
position: string;
|
|
9
9
|
height: number;
|
|
@@ -71,7 +71,7 @@ declare const Component: {
|
|
|
71
71
|
position: string;
|
|
72
72
|
'& .SCUserProfileHeader-cover': {
|
|
73
73
|
[x: number]: {
|
|
74
|
-
|
|
74
|
+
borderRadius: any;
|
|
75
75
|
};
|
|
76
76
|
height: number;
|
|
77
77
|
};
|
|
@@ -3,13 +3,13 @@ const Component = {
|
|
|
3
3
|
root: ({ theme }) => ({
|
|
4
4
|
'& .SCUserProfileHeader-cover': {
|
|
5
5
|
position: 'relative',
|
|
6
|
-
height:
|
|
6
|
+
height: 230,
|
|
7
7
|
minHeight: 150,
|
|
8
8
|
borderRadius: 0,
|
|
9
9
|
background: 'linear-gradient(180deg, rgba(177,177,177,1) 0%, rgba(255,255,255,1) 90%)',
|
|
10
10
|
boxShadow: 'unset',
|
|
11
|
-
[theme.breakpoints.up('
|
|
12
|
-
|
|
11
|
+
[theme.breakpoints.up('md')]: {
|
|
12
|
+
borderRadius: theme.spacing(0, 0, 2.5, 2.5)
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
'& .SCUserProfileHeader-infops-section': {
|
|
@@ -17,7 +17,7 @@ const Component = {
|
|
|
17
17
|
justifyContent: 'space-between'
|
|
18
18
|
},
|
|
19
19
|
'& .SCUserProfileHeader-avatar': {
|
|
20
|
-
top:
|
|
20
|
+
top: 180,
|
|
21
21
|
[theme.breakpoints.up('lg')]: {
|
|
22
22
|
left: theme.selfcommunity.user.avatar.sizeXLarge / 2,
|
|
23
23
|
marginLeft: 0
|
|
@@ -30,7 +30,7 @@ const Component = {
|
|
|
30
30
|
width: theme.selfcommunity.user.avatar.sizeXLarge,
|
|
31
31
|
borderRadius: '50%',
|
|
32
32
|
border: `#FFF solid ${theme.spacing(0.5)}`,
|
|
33
|
-
objectFit: 'cover'
|
|
33
|
+
objectFit: 'cover'
|
|
34
34
|
},
|
|
35
35
|
'& .MuiBadge-badge .SCUserAvatar-badge-content': {
|
|
36
36
|
width: 32,
|
|
@@ -38,7 +38,7 @@ const Component = {
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
'& .SCUserProfileHeader-change-picture': {
|
|
41
|
-
top:
|
|
41
|
+
top: 215,
|
|
42
42
|
[theme.breakpoints.up('lg')]: {
|
|
43
43
|
left: 155 - 0.5 * theme.selfcommunity.user.avatar.sizeXLarge
|
|
44
44
|
},
|
|
@@ -70,15 +70,15 @@ const Component = {
|
|
|
70
70
|
skeletonRoot: ({ theme }) => ({
|
|
71
71
|
position: 'relative',
|
|
72
72
|
'& .SCUserProfileHeader-cover': {
|
|
73
|
-
[theme.breakpoints.up('
|
|
74
|
-
|
|
73
|
+
[theme.breakpoints.up('md')]: {
|
|
74
|
+
borderRadius: theme.spacing(0, 0, 2.5, 2.5)
|
|
75
75
|
},
|
|
76
|
-
height:
|
|
76
|
+
height: 230
|
|
77
77
|
},
|
|
78
78
|
'& .SCUserProfileHeader-avatar': {
|
|
79
79
|
display: 'block',
|
|
80
80
|
position: 'absolute',
|
|
81
|
-
top:
|
|
81
|
+
top: 230 - 0.5 * theme.selfcommunity.user.avatar.sizeXLarge - 5,
|
|
82
82
|
marginLeft: theme.spacing(4),
|
|
83
83
|
[`& .MuiSkeleton-root`]: {
|
|
84
84
|
border: '#FFF solid 5px'
|