-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathParticipantContainer.styles.ts
More file actions
129 lines (114 loc) · 2.52 KB
/
ParticipantContainer.styles.ts
File metadata and controls
129 lines (114 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { IStackStyles, IStackItemStyles, IStackTokens, mergeStyles, ITheme } from '@fluentui/react';
import { ModalLocalAndRemotePIPStyles } from '../../CallWithChatComposite/ModalLocalAndRemotePIP';
/**
* @private
*/
export const sidePaneContainerStyles: IStackItemStyles = {
root: {
height: '100%',
padding: '0.5rem 0.25rem',
width: '21.5rem'
}
};
/**
* @private
*/
export const sidePaneContainerHiddenStyles: IStackItemStyles = {
root: {
...sidePaneContainerStyles,
display: 'none'
}
};
/**
* @private
*/
export const sidePaneContainerTokens: IStackTokens = {
childrenGap: '0.5rem'
};
/**
* @private
*/
export const sidePaneHeaderStyles: IStackItemStyles = {
root: {
lineHeight: '1.25rem',
padding: '0.25rem',
fontWeight: '600'
}
};
/**
* @private
*/
export const paneBodyContainer: IStackStyles = { root: { flexDirection: 'column', display: 'flex' } };
/**
* @private
*/
export const scrollableContainer: IStackStyles = { root: { flexBasis: '0', flexGrow: '1', overflowY: 'auto' } };
/**
* @private
*/
export const scrollableContainerContents: IStackItemStyles = {
root: {
flexGrow: '1',
flexBasis: '0',
maxWidth: '100%',
// Create a new stacking context so that `pipStyles` can set zIndex above the container.
position: 'relative'
}
};
/**
* @private
*/
export const getPipStyles = (theme: ITheme): ModalLocalAndRemotePIPStyles => ({
modal: {
main: {
borderRadius: theme.effects.roundedCorner4,
boxShadow: theme.effects.elevation8,
// Above the message thread / people pane.
zIndex: 2,
...(theme.rtl ? { left: '1rem' } : { right: '1rem' })
}
}
});
/**
* @private
*/
export const peopleSubheadingStyle: IStackItemStyles = {
root: {
fontSize: '0.75rem'
}
};
/**
* @private
*/
export const peoplePaneContainerTokens: IStackTokens = {
childrenGap: '0.5rem'
};
/**
* @private
*/
export const participantListWrapper = mergeStyles({
width: '20rem',
// max width at 50% of view so the People Pane is not squeezing the Message Pane to almost nothing when on small screen or high zoom in
maxWidth: '50vw',
height: '100%'
});
/**
* @private
*/
export const participantListContainerPadding = { childrenGap: '0.5rem' };
/**
* @private
*/
export const participantListStack = mergeStyles({
height: '100%'
});
/**
* @private
*/
export const participantListStyle = mergeStyles({
height: '100%',
overflowY: 'auto',
overflowX: 'hidden'
});