aboutsummaryrefslogtreecommitdiff
path: root/main/data/style.css
blob: a7a1d8dff25ed1e5a16a770b8654bfd1ad86942d (plain) (blame)
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
/**
 * This theme file is applied after the operating system theme
 * It provides sane defaults for things that are very Dino-specific.
 */

@import url("conversation_details.css");

statuspage {
    opacity: 0.5;
}

window.dino-main .dino-header-right {
    background: @theme_base_color;
}

window.dino-main .dino-header-left {
    background: @insensitive_bg_color;
}

window.dino-main headerbar.dino-left label.title {
    opacity: 0;
    font-size: 0;
    color: transparent;
}

window.dino-main .dino-conversation {
    background: @theme_base_color;
}

window.dino-main .dino-conversation undershoot,
window.dino-main .dino-conversation viewport /* Some themes set this */ {
    background: none;
}

@keyframes highlight {
    from { background-color: alpha(@accent_color, 0.5); }
    to { background-color: transparent; }
}

window.dino-main .dino-conversation .highlight-once {
    animation-duration: 3s;
    animation-timing-function: ease-out;
    animation-iteration-count: 1;
    animation-name: highlight;
}

window.dino-main .dino-conversation .message-box.highlight:not(.highlight-once) {
    background: @window_bg_color;
}

window.dino-main .dino-conversation .message-box {
    padding: 6px 15px 6px 15px;
}

window.dino-main .dino-conversation .message-box:not(.has-skeleton) {
    padding-left: 58px;
}

window.dino-main .unread-count-notify {
    background-color: alpha(@theme_fg_color, 0.8);
    color: @theme_base_color;
    font-family: monospace;
    border-radius: 999em;
    padding: 0 .35em;
}

window.dino-main .unread-count-notify:backdrop {
    background-color: alpha(@theme_unfocused_fg_color, 0.8);
    color: @theme_unfocused_base_color;
}

window.dino-main .unread-count {
    background-color: alpha(@theme_fg_color, 0.1);
    color: @theme_fg_color;
    font-family: monospace;
    border-radius: 999em;
    padding: .2em .41em;
}

window.dino-main .unread-count:backdrop {
    background-color: alpha(@theme_unfocused_fg_color, 0.1);
    color: @theme_unfocused_fg_color;
}

window.dino-main .dino-sidebar > frame {
    background: @insensitive_bg_color;
    border-left: 1px solid @borders;
    border-bottom: 1px solid @borders;
}

/* Message */

.message-box {
    transition: background .05s ease;
}

window.dino-main .dino-conversation .message-box.edit-mode {
    background: alpha(@theme_selected_bg_color, 0.1);
}

window.dino-main .dino-conversation .message-box.edit-mode:hover {
    background: alpha(@theme_selected_bg_color, 0.12);
}

window.dino-main .dino-conversation .message-box.error {
    background: alpha(@error_color, 0.1);
}

window.dino-main .dino-conversation .message-box.error:hover {
    background: alpha(@error_color, 0.12);
}

window.dino-main .dino-quote {
    border-left: 3px solid alpha(@theme_fg_color, 0.2);
    background: alpha(@theme_fg_color, 0.05);
    border-color: alpha(@theme_fg_color, 0.2);
    padding: 10px;
}

window.dino-main .dino-quote:hover {
    background: alpha(@theme_fg_color, 0.08);
}

picture.avatar {
    border-radius: 3px;
}

/* Overlay Toolbar */

.dino-main .overlay-toolbar {
    padding: 2px;
    border-radius: 6px;
    border-spacing: 0;
}

.dino-main .overlay-toolbar > * {
    margin-top: 0;
    margin-bottom: 0;
}

/* File Widget */

window.dino-main .file-box-outer,
window.dino-main .call-box-outer {
    background: @theme_base_color;
    border-radius: 3px;
    border: 1px solid alpha(@theme_fg_color, 0.1);
}

window.dino-main .file-box,
window.dino-main .call-box {
    margin: 12px 16px 12px 12px;
}

window.dino-main .file-image-widget {
    border: 1px solid alpha(@theme_fg_color, 0.1);
    border-radius: 6px;
}

window.dino-main .file-image-widget .file-box-outer {
    color: #eee;
    background: rgba(0, 0, 0, 0.5);
}

window.dino-main .file-image-widget .file-box-outer button {
    color: #eee;
    background: transparent;
    border: none;
    box-shadow: none;
}

window.dino-main .file-image-widget .file-box-outer button:hover {
    background: rgba(100, 100, 100, 0.5);
}

.dino-main .file-image-widget picture {
    border-radius: 6px;
}

/* Call widget */

window.dino-main .call-box-outer.incoming {
    border-color: alpha(@theme_selected_bg_color, 0.3);
}

window.dino-main .incoming-call-box {
    background: alpha(@theme_selected_bg_color, 0.1);
}

window.dino-main .multiparty-participants {
    border-top: 1px solid alpha(@theme_fg_color, 0.05);
    background: alpha(@theme_fg_color, 0.04);
}

/* Reactions */

.dino-main .reaction-grid button {
    min-height: 16px;
    min-width: 30px;
    padding: 4px;
}

.dino-main .reaction-grid button.own-reaction,
.dino-main .reaction-grid .own-reaction button {
    background-color: alpha(@accent_bg_color, 0.1);
    border: 1px solid @accent_bg_color;
    padding: 3px;
    color: @accent_color;
}

.dino-main .reaction-grid button.own-reaction:hover,
.dino-main .reaction-grid .own-reaction button:hover {
    background-color: alpha(@accent_bg_color, 0.2);
}

/* Sidebar */

window.dino-main .dino-sidebar > frame.collapsed {
    border-bottom: 1px solid @borders;
}

window.dino-main .dino-sidebar frame.auto-complete {
    background: @theme_base_color;
}

window.dino-main .dino-sidebar frame.auto-complete list > row {
    transition: none;
}

/* File overlay */

window.dino-main .dino-white-overlay {
    background: @theme_base_color;
}

window.dino-main .dino-file-overlay {
    border-radius: 5px;
    border: 1px solid alpha(black, 0.2);
    box-shadow: 0 2px 3px alpha(black, 0.1);
}

/* Chat Input*/

window.dino-main .dino-chatinput frame box {
    background: transparent;
}

window.dino-main .dino-attach-button {
    min-width: 24px; /* Make button the same width as avatars */
}

window.dino-main .dino-attach-button,
window.dino-main .dino-chatinput-button button {
    border: none;
    background: transparent;
    box-shadow: none;
    min-height: 0;
    padding: 7px 5px;
    color: alpha(@theme_fg_color, 0.7);
    outline: none;
}

window.dino-main .dino-attach-button:hover,
window.dino-main .dino-chatinput-button button:hover {
    color: @theme_selected_bg_color;
}

window.dino-main .dino-attach-button:backdrop,
window.dino-main .dino-chatinput-button button:backdrop {
    color: alpha(@theme_unfocused_fg_color, 0.6);
}

window.dino-main .dino-attach-button:active,
window.dino-main .dino-attach-button:checked,
window.dino-main .dino-chatinput-button button:active,
window.dino-main .dino-chatinput-button button:checked {
    color: alpha(@theme_selected_bg_color, 0.8);
}

window.dino-main .dino-attach-button:checked:backdrop,
window.dino-main .dino-chatinput-button button:checked:backdrop {
    color: alpha(@theme_unfocused_selected_bg_color, 0.8);
}

.dino-unread-line label {
    color: @theme_selected_bg_color;
}

.dino-unread-line separator {
    background-color: @theme_selected_bg_color;
}

.dino-chatinput,
.dino-chatinput textview,
.dino-chatinput textview text {
    background-color: @theme_base_color;
}


/*Chat input warning*/

box.dino-input-warning frame border {
    border-color: @warning_color;
}

box.dino-input-warning frame separator {
    background-color: @warning_color;
    border: none;
}

box.dino-input-warning label {
    color: mix(@warning_color, @theme_fg_color, 0.5);
}


/*Chat input error*/

box.dino-input-error frame {
    border-color: @error_color;
}

box.dino-input-error frame separator {
    background-color: @error_color;
    border: none;
}

box.dino-input-error .chat-input-status {
    color: @error_color;
}

@keyframes input-error-highlight {
    0% { transform: translate(0,0); }
    25% { transform: translate(-10px,0); }
    75% { transform: translate(10px,0); }
    100% { transform: translate(0,0); }
}

box.dino-input-error .chat-input-status.input-status-highlight-once {
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
    animation-name: input-error-highlight;
}

/* Call window */

.dino-call-window decoration {
    border-radius: 0;
}

.dino-call-window .titlebar {
    min-height: 0;
}

.dino-call-window headerbar, .call-button {
    box-shadow: none;
}

.dino-call-window button.call-button {
    outline: 0;
    border-radius: 1000px;
}

.dino-call-window button.white-button {
    color: #1d1c1d;
    background: rgba(255,255,255,0.85);
    border: lightgrey;
}
.dino-call-window button.white-button:hover {
    background: rgba(255,255,255,1);
}

.dino-call-window button.transparent-white-button {
    color: white;
    background: rgba(255,255,255,0.15);
    border: none;
}
.dino-call-window button.transparent-white-button:hover {
    background: rgba(255,255,255,0.25);
}

.dino-call-window menubutton.call-mediadevice-settings-button button.toggle {
    border-radius: 1000px;
    min-height: 0;
    min-width: 0;
    padding: 3px;
    margin: 2px;
    transition-duration: 0;
}

.dino-call-window menubutton.call-mediadevice-settings-button button.toggle:hover,
.dino-call-window menubutton.call-mediadevice-settings-button button.toggle:checked { /* Effect that makes the button slightly larger on hover :) */
    border-radius: 1000px;
    min-height: 0;
    min-width: 0;
    padding: 5px;
    margin: 0;
}

.dino-call-window .participant-header-bar .titles {
    background: none;
    border: none;
    border-radius: 0;
    color: #ededec;
    text-shadow: 0 0 2px black;
}

.dino-call-window .participant-header-bar {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0));
    border: 0;
    border-radius: 0;
}

.dino-call-window .participant-header-bar button:hover:not(.close) {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0);
    box-shadow: none;
}

.dino-call-window .participant-header-bar button image {
    color: alpha(white, 0.7);
    -gtk-icon-shadow: none;
}

.dino-call-window .participant-header-bar button:hover image {
    color: white;
}

.dino-call-window .participant-header-bar button.unencrypted image {
    color: @error_color;
}

.dino-call-window .call-bottom-bar {
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.3));
    border: 0;
}

.dino-call-window {
    background-color: #212121;
}

.dino-call-window .participant-name {
    color: white;
    text-shadow: 1px 1px 2px black;
}

.dino-call-window .text-no-controls {
    color: black;
    background: white;
    border-radius: 5px;
    padding: 5px 10px;
}

.dino-call-window .own-video {
    box-shadow: 0 0 2px 0 rgba(0,0,0,0.5);
}

.qrcode-container > contents {
    background: white;  /* Color of the quiet zone. MUST have the same "reflectance" as light modules of the QR code. */
}