-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathteams-customization.user.css
More file actions
239 lines (205 loc) · 5.58 KB
/
teams-customization.user.css
File metadata and controls
239 lines (205 loc) · 5.58 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
/* ==UserStyle==
@name MS Teams - Customization
@description Provides some extra customization options for MS Teams.
@version 2026.03.27.12.03
@author MetalTxus
@namespace https://github.com/jesuscc1993/
@license CC BY-SA 4.0
@preprocessor stylus
@var text font-scale "Font scale" 1
@var text line-height "Line height" 1.4286
@var text sidebar-font-scale "Sidebar font scale" 1
@var text sidebar-item-height "Sidebar item height" 32px
@var checkbox hide-alerts "Hide alerts" 0
@var checkbox hide-sidebar-filters "Hide sidebar filters" 0
@var checkbox hide-sidebar-links "Hide sidebar links (mentions, etc)" 0
@var checkbox hide-external-label "Hide (External) label" 0
@var checkbox hide-edited-label "Hide edited label" 0
@var checkbox hide-translate "Hide translate button" 0
@var checkbox full-width-messages "Full width messages" 0
@var checkbox align-own-messages-text-to-end "Align own messages text to end" 0
@var checkbox align-own-messages-to-start "Align own messages to start" 0
@var checkbox reduced-code-padding "Reduced code padding" 0
@var checkbox reduced-message-padding "Reduced message padding" 0
==/UserStyle== */
@-moz-document domain("teams.microsoft.com"), domain("teams.cloud.microsoft") {
applyFontScale(scale) {
--fontSizeBase100: 10px * scale;
--fontSizeBase200: 12px * scale;
--fontSizeBase300: 14px * scale;
--fontSizeBase400: 16px * scale;
--fontSizeBase500: 20px * scale;
--fontSizeBase600: 24px * scale;
--lineHeightBase100: 14px * scale;
--lineHeightBase200: 16px * scale;
--lineHeightBase300: 20px * scale;
--lineHeightBase400: 22px * scale;
--lineHeightBase500: 28px * scale;
--lineHeightBase600: 32px * scale;
}
.fui-FluentProviderr0 {
applyFontScale(font-scale);
line-height: line-height;
.ck.ck-editor__editable {
font-size: var(--fontSizeBase300);
}
}
[data-tid="app-layout-area--mid-nav"] {
applyFontScale(sidebar-font-scale);
[data-testid="list-item"],
[data-inp="simple-collab-unified-chat-switch"] {
min-height: 0;
height: sidebar-item-height * sidebar-font-scale;
}
.f1nxs5xn {
min-height: sidebar-item-height;
}
.fw5db7e {
padding-right: var(--spacingHorizontalS);
}
}
.fui-Chat {
--chat-avatar-spacing-size: 40px;
}
/* more obvious selection */
.fpzvzei {
background-color: #fff2;
}
/* hide alerts */
if (hide-alerts) {
[data-tid="app-layout-area--main"] {
.ui-alert {
display: none;
}
}
}
/* hide sidebar top */
if (hide-sidebar-filters) {
[data-testid="simple-collab-left-rail-sticky-filter-v2"] {
display: none;
}
}
/* hide sidebar links */
if (hide-sidebar-links) {
[data-testid="list-item-THREADS"],
[data-testid="list-item-activities-mentions"],
[data-testid="list-item-activities-replies"] {
&,
& + hr {
display: none;
}
}
}
/* hide external label */
if (hide-external-label) {
.f16lhge,
[data-tid="chat-list-federation-tag"] {
display: none;
}
}
/* hide edited label */
if (hide-edited-label) {
.fui-Chat {
[id^="edited"] {
display: none;
}
.f14rdt9 {
margin-bottom: 0;
}
}
}
/* hide translate */
if (hide-translate) {
.fui-ChatMessage__details {
display: none;
}
}
/* full width messages */
if (full-width-messages) {
[data-tid="message-pane-list-runway"],
[data-tid="message-pane-footer"] {
max-width: 100%;
}
[data-tid="chat-pane-message"] {
blockquote {
width: 100%;
}
}
}
/* align own messages text to end */
if (align-own-messages-text-to-end) {
.fui-Chat {
.fypbzun {
text-align: end;
}
}
}
/* align own messages to start */
if (align-own-messages-to-start) {
.fui-Chat {
.f9c4gz4 {
justify-content: flex-start;
}
.fe9ho8d {
left: -8px;
}
.fui-ChatMyMessage__body {
margin-inline-start: var(--chat-avatar-spacing-size);
border-radius: var(--borderRadiusLarge);
}
}
}
/* reduced code padding */
if (reduced-code-padding) {
.r1wszx8g code {
padding: 0 4px;
}
}
/* reduced message padding */
if (reduced-message-padding) {
[data-tid="chat-pane-message"]:has(p) {
padding: 0.3rem .8rem 0.5rem;
&:has([id^="content-"] > blockquote:only-child) {
padding: 0;
blockquote {
margin: 0;
}
}
}
.fb2oc5p {
margin-bottom: 2.5rem;
}
.fui-ChatMessage__avatar {
margin-top: 0;
text-align: end;
}
.f1kcqot9 {
padding-top: 0.75rem;
}
/* meeting chat */
/* .fjw5fx7 {
width: 24px;
}
.fb5scp {
margin-left: 24px;
} */
/* */
}
[data-tid="app-layout-area--nav"] {
--slot-width: 5.8rem;
}
/* dark theme fixes */
html.theme-darkV2 {
[data-tid="message-body"] {
span[style*="background"] {
&,
* {
color: #111;
}
}
strong {
color: #fff;
}
}
}
}