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
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
|
/* The standard layout defined in the server includes a fixed header with a
* sticky sidebar. This causes the scroll bar for the main area to appear to the
* right of the sidebar, which looks confusing for the chat. Thus that layout is
* overridden with a full set of flex containers to cascade parent element
* height to the main view to limit the vertical scroll bar only to it (same
* thing done for the sidebar and the chat view). */
#body-user,
#body-public {
display: flex;
flex-direction: column;
}
#body-user #header,
#body-public #header {
/* Override fixed position from server to include it in the flex layout */
position: static;
flex-shrink: 0;
}
#content {
display: flex;
flex-direction: row;
overflow: hidden;
flex-grow: 1;
/* Override "min-height: 100%" and "padding-top: 50px" set in server, as the
* header is part of the flex layout and thus the whole body is not
* available for the content. */
min-height: 0;
padding-top: 0;
/* Does not change anything in normal mode, but ensures that the element
* will stretch to the full width in full screen mode. */
width: 100%;
/* Override margin used in server, as the header is part of the flex layout
* and thus the content does not need to be pushed down. */
margin-top: 0;
}
#app-content {
display: flex;
flex-direction: column;
overflow: hidden;
margin-right: -10px;
flex-grow: 1;
}
#app-content-wrapper {
display: flex;
flex-direction: column;
overflow: hidden;
flex-grow: 1;
}
#oca-spreedme-add-room {
border-bottom: 1px solid var(--color-border);
}
.oca-spreedme-add-person {
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
}
.contactsmenu-popover li > a > img {
/* The app uses border-box sizing, so the size of the icon is the
* width/height plus the padding set by default in the server
* (16px + 11px*2). */
width: 38px;
height: 38px;
}
/**
* Confirm icon inside input field.
*
* The input and the icon should be direct children of a wrapper with a relative
* position. The input is expected to be as wide as its wrapper.
*
* It is assumed that the icon will have the standard width for buttons in
* inputs of 34px. However, further adjustments may be needed for the input and
* the padding depending on the context where they are used.
*
* The confirm icon can have a sibling loading icon to switch to (by hiding one
* icon and showing the other) while the operation is in progress.
*/
input[type="text"],
input[type="password"] {
padding-right: 34px;
/* When the input is focused it is expected that pressing enter will confirm
* the input just like clicking on the icon would do. To hint this behaviour
* the opacity of the confirm icon is slightly increased in this case.
*/
&:focus + .icon-confirm:not(:disabled) {
opacity: .6;
}
& + .icon-confirm {
position: absolute;
top: 0;
/* Compensate for right margin of inputs set in the server. */
right: 3px;
/* Border and background color are removed to show only the icon inside
* the input. */
border: none;
background-color: transparent;
opacity: .3;
&:hover:not(:disabled),
&:focus:not(:disabled),
&:active:not(:disabled) {
opacity: 1;
}
+ .icon-loading-small {
/* Mimic size set in server for confirm button. */
width: 34px;
height: 34px;
padding: 7px 6px;
margin-top: 3px;
margin-bottom: 3px;
position: absolute;
top: 0;
right: 3px;
}
}
}
.menuitem input[type="text"],
.menuitem input[type="password"] {
& + .icon-confirm + .icon-loading-small {
/* Mimic size set in server for inputs in menu items. */
min-width: 44px;
max-height: 40px;
margin: 2px 0;
/* Override padding set in server for icons in menu items. */
padding: 7px 6px;
}
}
/**
* Sidebar styles
*/
#select2-drop {
margin-top: -44px !important;
}
#oca-spreedme-add-room .select2-container,
.oca-spreedme-add-person .select2-container {
width: 100%;
margin: 0 !important;
border: none;
padding: 9px;
}
#oca-spreedme-add-room .select2-container .select2-choice,
.oca-spreedme-add-person .select2-container .select2-choice {
border: none;
color: var(--color-text-maxcontrast) !important;
}
#oca-spreedme-add-room .select2-arrow,
.oca-spreedme-add-person .select2-arrow {
display: none !important;
}
#select2-drop .select2-search input {
padding: 13px 12px 13px 43px !important;
width: 100%;
box-sizing: border-box;
margin: 0;
border: none;
background-image: none !important;
}
#select2-drop .select2-results .select2-result {
padding: 0;
}
.participantWithList .avatar,
#app-navigation .app-navigation-entry-link > .avatar {
position: absolute;
left: 6px;
top: 6px;
}
.participantWithList > li > a:first-child > img,
#app-navigation li > a:first-child img {
width: 32px !important;
height: 32px !important;
margin: 0 !important;
}
.participantWithList .contactsmenu-popover {
margin-left: 7px;
}
.select2-result .avatar.icon,
.atwho-view-ul .avatar.icon,
#app-navigation .app-navigation-entry-link .avatar.icon {
border-radius: 50%;
width: 32px;
height: 32px;
background-color: var(--color-background-darker);
}
.icon-file-white {
@include icon-color('text', 'filetypes', $color-white, 1, true);
}
.icon-changelog {
background-image: url('../img/changelog.svg');
}
#app-navigation .favorite-mark {
position: absolute;
/* 44px is the padding of the main entry link, and 16px the size (size, not
* background size) of the icon, both defined in the server. */
left: calc(44px - 16px);
line-height: 100%;
.icon-favorite {
display: inline-block;
vertical-align: middle;
/* Show favorite icon in yellow instead of default black. */
@include icon-color('star-dark', 'actions', 'FC0', 1, true);
}
}
#app-navigation .app-navigation-entry-utils-counter {
overflow: hidden;
text-align: right;
font-size: 9pt;
line-height: 44px;
padding: 0 12px; /* Same padding as all li > a in the app-navigation */
span {
padding: 2px 5px;
border-radius: 10px;
font-weight: bold;
background-color: var(--color-background-dark);
}
&.highlighted {
padding-right: 0;
text-align: center;
width: 22px !important;
span {
background-color: var(--color-primary);
color: var(--color-primary-text);
}
}
}
.hidden-important {
display: none !important;
}
/**
* Main view chat styles
*/
#app-content-wrapper {
height: 100%;
}
#app-content-wrapper #chatView {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
/* The lateral padding is set for each child instead of for the chat view as a
whole to prevent showing the scroll bar padded from the border of the chat
view (which could be fixed by using a negative margin and a positive padding
in the list of messages) and to ensure that the contacts menu is not clipped
due to overflowing the chat view on its left (much harder to fix). */
#app-content-wrapper #chatView .newCommentRow {
padding-left: 44px;
padding-right: 44px;
}
#app-content-wrapper #chatView .comments {
overflow-y: auto;
/* Needed for proper calculation of comment positions in the scrolling
container (as otherwise the comment position is calculated with respect
to the closest ancestor with a relative position) */
position: relative;
padding-left: 44px;
padding-right: 44px;
}
#app-content-wrapper #chatView .comments .wrapper-background,
#app-content-wrapper #chatView .comments .wrapper {
/* Padding is not respected in the comment wrapper due to its absolute
* positioning, so it must be set through its position. */
left: 44px;
right: 44px;
}
/* Hide all siblings of the chat view when shown as the main view */
#app-content-wrapper #chatView ~ *:not(#video-fullscreen):not([id^=tooltip]) {
display: none !important;
}
#emptycontent {
position: absolute;
z-index: 40;
}
#emptycontent-icon {
width: 128px;
margin: 0 auto;
padding-bottom: 20px;
}
#app-content ~ #app-sidebar-wrapper .icon-menu-people,
#app-content .icon-fullscreen {
opacity: .5;
&:hover,
&:focus {
opacity: 1;
}
}
#app-content.incall .force-icon-white-in-call,
#app-content.screensharing .force-icon-white-in-call,
#app-content.incall ~ #app-sidebar-wrapper .force-icon-white-in-call,
#app-content.screensharing ~ #app-sidebar-wrapper .force-icon-white-in-call {
/*
* Force the white icon, independent from white/dark mode selection,
* because those icons are presented on our black calling-screen.
*/
&.icon-menu-people {
background-image: url(icon-color-path('menu-people', 'spreed', 'fff', 1, false));
}
&.icon-fullscreen {
background-image: url(icon-color-path('fullscreen', 'actions', 'fff', 1, true));
}
/* ".force-icon-white-in-call" can be combined with ".icon-shadow" just like
* ".icon-white". */
&.icon-shadow {
filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
}
}
/* Use white icon for the app navigation toggle when in a call; this can not be
* integrated above because the navigation toggle is created by the core and
* does not include the Talk-specific "force-icon-white-in-call" CSS class. */
#app-content.incall .icon-menu,
#app-content.screensharing .icon-menu {
background-image: url(icon-color-path('menu', 'actions', 'fff', 1, true));
filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
}
#video-fullscreen {
position: absolute;
top: 44px;
right: 0;
z-index: 90;
}
#video-fullscreen,
#app-sidebar-trigger {
background-color: transparent;
border: none;
margin: 0 10px 0 0;
width: 44px;
height: 44px;
}
/* Fullscreen handling */
/* No switching between rooms in fullscreen, focus on the current call. */
#content:-webkit-full-screen #app-navigation-toggle {
display: none !important;
}
#content:-moz-full-screen #app-navigation-toggle {
display: none !important;
}
#content:-ms-fullscreen #app-navigation-toggle {
display: none !important;
}
#content:fullscreen #app-navigation-toggle {
display: none !important;
}
#content:-webkit-full-screen #app-navigation {
display: none;
}
#content:-moz-full-screen #app-navigation {
display: none;
}
#content:-ms-fullscreen #app-navigation {
display: none;
}
#content:fullscreen #app-navigation {
display: none;
}
#content:-webkit-full-screen #app-content {
margin-left: 0;
}
#content:-moz-full-screen #app-content {
margin-left: 0;
}
#content:-ms-fullscreen #app-content {
margin-left: 0 !important;
}
#content:fullscreen #app-content {
margin-left: 0;
}
#content:-ms-fullscreen #app-sidebar {
/* The sidebar height is unset in Talk to override the "100vh-50px" set in
* server and force it to get the full height in fullscreen mode. However,
* IE11 does not support "unset", so the height needs to be explicitly set
* to 100%. */
height: 100%;
/* Remove the space added when IE is used to not overlap with the header. */
top: 0;
}
/* Set the background of the content to the same colour as the app content and
* the app sidebar to prevent a black background from appearing when the sidebar
* is shown or hidden.
* During a call the background of the app content is black, but as the
* background of the content has the same colour of the sidebar and is a
* placeholder on its position it looks acceptable. */
#content:-webkit-full-screen {
background-color: var(--color-main-background);
}
#content:-moz-full-screen {
background-color: var(--color-main-background);
}
#content:-ms-fullscreen {
background-color: var(--color-main-background);
}
#content:fullscreen {
background-color: var(--color-main-background);
}
.localmediaerror h2 {
color: red;
font-weight: bold;
}
.localmediaerror .emptycontent-additional {
display: none;
}
#app-navigation .utils {
padding: 0;
}
#app-navigation .utils .action {
display: inline-block;
padding: 22px;
cursor: pointer;
opacity: .3;
}
#app-navigation .app-navigation-entry-menu li {
width: auto !important;
float: inherit;
}
#app-navigation .app-navigation-entry-menu li.active {
box-shadow: inset 4px 0 var(--color-primary);
margin-left: -1px;
padding-left: 1px;
}
#app-navigation .app-navigation-entry-menu li div.separator {
border-bottom: 1px solid var(--color-border-dark);
margin: 0 10px;
width: 100%;
}
#app-navigation .app-navigation-entry-menu li button {
float: inherit !important;
margin: 0;
padding: 0;
width: 100% !important;
min-height: 44px;
}
#app-navigation .app-navigation-entry-menu input {
margin-left: 5px !important;
margin-top: -5px;
min-width: 150px;
padding-right: 26px;
text-overflow: ellipsis;
overflow: hidden;
}
#app-navigation .app-navigation-entry-menu-caption {
font-weight: bold;
line-height: 44px;
white-space: nowrap;
text-overflow: ellipsis;
padding: 0 36px 0 36px;
// !important to overwrite specific hover and focus
opacity: .7;
box-shadow: none !important;
user-select: none;
pointer-events: none;
}
#app-navigation .app-navigation-entry-menu input.first-option {
margin-top: 5px;
}
#app-navigation .app-navigation-entry-menu li span {
display: inline-block;
height: 36px;
line-height: 36px;
padding-right: 10px;
font-weight: 400;
float: left;
}
#app-navigation .app-navigation-entry-menu li span[class^='icon-'],
#app-navigation .app-navigation-entry-menu li span[class*=' icon-'] {
padding: 16px;
box-sizing: border-box;
width: 36px;
}
#app-navigation .app-navigation-entry-utils-menu-button {
display: inline-block;
}
/* The sidebar wrapper contains the trigger for the sidebar and the sidebar
* itself placed in columns. To prevent the trigger from taking up space for the
* app content the trigger width is removed from the wrapper by pushing its left
* margin. */
#app-sidebar-wrapper {
display: flex;
margin-left: -44px;
}
#app-sidebar-trigger {
/* Higher than the z-index of the app-content */
z-index: 1050;
cursor: pointer;
}
/* Override server definitions to ensure that the sidebar is vertically
* stretched, as the header is part of the flex layout and its height does not
* need to be removed from the sidebar (specially in fullscreen mode where there
* is no header). */
#app-sidebar {
position: static;
height: unset;
top: 0;
}
/* The server sets the position of the sidebar as fixed when IE is used, so it
* needs to be pulled down to not overlap with the header. */
.ie #app-sidebar {
top: $header-height;
}
@include icon-black-white('menu-people', 'spreed', 1);
@include icon-black-white('no-password', 'spreed', 1);
@include icon-black-white('share-window', 'spreed', 1);
#app-sidebar .close {
position: absolute;
top: 0;
right: 0;
padding: 22px;
opacity: .3;
/* Higher index than the trigger to hide it when the sidebar is open */
z-index: 20;
}
#app-sidebar .close:hover,
#app-sidebar .close:focus {
opacity: 1;
}
/* make blue header bar transparent in shared room */
#body-public #app-content:not(.participants-1) #header.spreed-public {
background: transparent;
}
/* As the header is hidden (except for the logo), move the fullscreen button and
* sidebar to the top during calls */
#body-public #app-content:not(.participants-1) #app-sidebar,
#body-public #app-content:not(.participants-1) #app-sidebar-trigger,
#body-public #app-content:not(.participants-1) #video-fullscreen {
top: 0;
z-index: 3000;
}
#body-public #app-content:not(.participants-1) #video-fullscreen {
top: 44px;
}
/**
* Right sidebar
*/
#app-sidebar .detailCallInfoContainer {
padding: 15px;
clear: both;
}
.tabHeaders {
display: inline-block;
}
/* START: move padding fixes and icons-for-tabs capability into core */
.tabHeaders {
display: flex;
margin-top: 0;
margin-bottom: 10px;
min-height: 44px;
/* Prevent the chat view from vertically compressing the tab headers */
flex-shrink: 0;
}
.tabHeaders .tabHeader {
flex-basis: 50%;
flex-grow: 0;
padding: 12px;
text-align: center;
border-bottom: 1px solid var(--color-border);
margin-bottom: 0;
.icon, a {
color: var(--color-main-text);
opacity: .5;
}
}
.tabHeaders .tabHeader.selected,
.tabHeaders .tabHeader:hover,
.tabHeaders .tabHeader:focus {
.icon, a {
opacity: 1;
}
}
/* END: move padding fixes and icons-for-tabs capability into core */
/* In Talk clicking on the selected tab header has no effect, so the pointer
* cursor should not be used. */
.tabHeaders .tabHeader.selected,
.tabHeaders .tabHeader.selected .icon,
.tabHeaders .tabHeader.selected a {
cursor: default;
}
#app-sidebar.hidden {
display: none !important;
}
.participantWithList .participant-moderator-indicator {
color: var(--color-text-maxcontrast);
font-weight: 300;
padding-left: 5px;
}
.participantWithList .icon {
width: 16px;
display: inline-block;
opacity: .4;
margin-left: 5px;
margin-bottom: -4px;
&.hidden {
display: none;
}
}
.participantWithList .participant-offline {
& > a {
color: var(--color-text-maxcontrast);
}
.avatar {
opacity: .4;
}
}
.participantWithList > li {
position: relative;
width: 100%;
box-sizing: border-box;
}
.participantWithList > li > a {
display: block;
width: 100%;
line-height: 44px;
min-height: 44px;
overflow: hidden;
box-sizing: border-box;
white-space: nowrap;
text-overflow: ellipsis;
padding-left: 44px;
background-size: 16px 16px;
background: no-repeat 14px center;
}
/**
* App navigation utils, buttons and counters for drop down menu
*/
.participantWithList .participant-entry-utils {
position: absolute;
top: 0;
right: 0;
z-index: 105;
}
.participantWithList .active > .participant-entry-utils li {
display: inline-block;
}
.participantWithList .participant-entry-utils li {
width: 44px;
height: 44px;
}
.participantWithList .participant-entry-utils button,
.participantWithList .participant-entry-utils button + .icon-loading-small {
height: 100%;
width: 100%;
margin: 0;
box-shadow: none;
}
.participantWithList .participant-entry-utils-menu-button button {
border: 0;
opacity: .5;
background-color: transparent;
}
.participantWithList .participant-entry-utils-menu-button button:hover,
.participantWithList .participant-entry-utils-menu-button button:focus {
opacity: 1;
}
/**
* Sidebar details view
*/
.detailCallInfoContainer,
.authorRow {
.editable-text-label {
.label-wrapper {
display: flex;
align-items: center;
.edit-button {
opacity: .3;
&:hover,
&:focus,
&:active {
opacity: 1;
}
.icon {
background-color: transparent;
border: none;
padding: 13px 22px;
margin: 0;
}
}
}
.input-wrapper {
position: relative;
input[type="text"] {
& + .icon-confirm {
/* Needed to override an important rule set in the
* server. */
background-color: transparent !important;
}
}
}
.label {
margin-left: 5px;
}
}
.room-name-container {
display: flex;
/* Prevent the room name from overlapping the button to close the
* sidebar. */
margin-right: 29px;
a {
opacity: .6;
&:hover,
&:focus,
&:active {
opacity: 1;
}
/* The container height is 42px (line height of 30px and bottom
* margin of 12px, both defined for h2 in the server), so clear the
* extra height of the link below the icon; this limits the
* clickable area to 44x44px, as otherwise it was too near the call
* button. */
margin-bottom: 5px;
.icon {
display: block;
width: 44px;
height: 44px;
background-size: 24px;
/* Pull up the icon slightly to align it vertically with the
* label, which has a line height of 30px (defined in the
* server). */
margin-top: -7px;
}
}
}
.room-name {
display: block;
flex-grow: 1;
/* Limit the room name to the container width and prevent it from
* wrapping the full label when using a flex display; this is needed for
* the edit button and the ellipsis in the name to work as expected. */
overflow: hidden;
.label-wrapper {
.label {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.edit-button {
/* Use the same bottom margin as h2 (defined in the server) to
* align the button vertically with the label. */
margin-bottom: 12px;
}
}
.input-wrapper {
position: relative;
.username {
width: 100%;
margin: 4px 0 4px 0 !important;
font-size: 15px;
font-weight: 300;
text-overflow: ellipsis;
}
.icon-confirm.confirm-button {
padding: 12px 21px;
margin: 0;
}
input[type="text"] {
padding-right: 44px;
& + .icon-confirm {
top: 4px;
right: 0;
}
}
}
}
.guest-name p {
display: inline-block;
padding: 9px 0;
}
.call-controls-container {
display: flex;
.call-button,
.share-link-options {
flex-grow: 1;
flex-basis: 50%;
}
.call-button {
flex-grow: 0;
.join-call,
.leave-call {
width: 100%;
padding: 12px;
}
.icon-loading-small {
/* Prevent the text from being moved when the icon is shown. */
position: absolute;
margin-left: 5px;
margin-top: 1px;
/* Unset the background image set by the server for loading
* icons inside buttons, as in this case the pure CSS icon can
* be used instead of the image. */
background-image: unset;
&.hidden {
display: none;
}
}
}
}
.share-link-options {
display: flex;
align-items: center;
.link-checkbox-label {
white-space: nowrap;
padding: 12px;
/* If ".icon-loading-small" is set hide the checkbox and show a
* loading icon instead */
&.icon-loading-small:before {
background-image: none !important;
background-color: transparent !important;
border-color: transparent !important;
}
&.icon-loading-small:after {
top: 21px;
left: 23px;
}
}
.button {
cursor: pointer;
width: 44px;
height: 44px;
display: block;
background-color: transparent;
border: none;
margin: 0;
opacity: .5;
&:hover,
&:focus,
&:active {
opacity: 1;
}
}
.password-button {
position: relative;
.menuitem {
/* Override rule for menu items from server, as in this case
* only the button in the password field is clickable, so the
* pointer cursor should not be used for the whole item. */
cursor: default;
.password-form {
position: relative;
.password-confirm,
.password-loading {
/* Inputs in menu items do not have a right margin, so
* it does not need to be compensated. */
right: 0;
}
.password-confirm {
/* Needed to override an important rule set in the
* server. */
background-color: transparent !important;
}
}
}
}
}
}
/**
* Cascade parent element height to the chat view in the sidebar to limit the
* vertical scroll bar only to the list of messages. Otherwise, the vertical
* scroll bar would be shown for the whole sidebar and everything would be
* moved when scrolling to see overflown messages.
*
* The list of messages should stretch to fill the available space at the bottom
* of the right sidebar, so the height is cascaded using flex boxes.
*
* It is horrible, I know (but better than using JavaScript ;-) ). Please
* improve it if you know how :-)
*/
#app-sidebar {
display: flex;
flex-direction: column;
}
#app-sidebar .tabs {
display: flex;
flex-direction: column;
overflow: hidden;
flex-grow: 1;
}
#app-sidebar .tabsContainer {
display: flex;
flex-direction: column;
overflow: hidden;
flex-grow: 1;
}
#app-sidebar .tab {
display: flex;
flex-direction: column;
overflow: hidden;
flex-grow: 1;
}
#app-sidebar #chatView {
display: flex;
flex-direction: column;
overflow: hidden;
flex-grow: 1;
}
#app-sidebar .comments {
overflow-y: auto;
/* Needed for proper calculation of comment positions in the scrolling
container (as otherwise the comment position is calculated with respect
to the closest ancestor with a relative position) */
position: relative;
}
/**
* Place the scroll bar of the message list on the right edge of the sidebar,
* but keeping the padding of the tab view.
*
* The padding must be set on the left too to ensure that the contacts menu
* shown when clicking on an author name does not overflow the tab (as it would
* be hidden).
*
* The bottom padding is removed to extend the chat view to the bottom edge of
* the sidebar.
*/
#app-sidebar .tab-chat {
padding-left: 0;
padding-right: 0;
padding-bottom: 0;
}
#app-sidebar #chatView .newCommentRow,
#app-sidebar #chatView .comments {
padding-left: 15px;
padding-right: 15px;
}
#app-sidebar #chatView .comments .wrapper-background,
#app-sidebar #chatView .comments .wrapper {
/* Padding is not respected in the comment wrapper due to its absolute
* positioning, so it must be set through its position. */
left: 15px;
right: 15px;
}
#app-sidebar #chatView .newCommentForm.with-add-button {
/* Make room to show the "Add" button if needed when chat is shown in the
* sidebar. */
margin-right: 44px;
}
/**
* Limiting the scroll bar in the sidebar to the list of chat messages causes
* the scroll bar to be removed from the whole sidebar in other tabs too.
* Therefore, the scroll bars must be explicitly enabled in the other tab
* contents that need them.
*/
#app-sidebar #participantsTabView {
display: flex;
flex-direction: column;
overflow: hidden;
}
#app-sidebar .participantWithList {
overflow-y: auto;
padding-top: 8px;
}
#app-sidebar .participantWithList .participant:last-child {
/* Add room for the popovermenu on last user */
padding-bottom: 94px;
}
/**
* Place the scroll bar of the participants list on the right edge of the
* sidebar, but keeping the padding of the tab view.
*
* The bottom padding is removed to extend the participant view to the bottom
* edge of the sidebar.
*/
#app-sidebar .tab-participants {
padding-right: 0;
padding-bottom: 0;
}
/* Form needs margin, participant list needs padding
* So the form has margin from the right side, but the scroll bar of the
* participant list is directly on the right.
*/
#app-sidebar #participantsTabView form {
margin-right: 15px;
}
#app-sidebar #participantsTabView .participantWithList {
padding-right: 15px;
}
/**
* Add a little margin to the last participant so the list is nicely framed with
* the sides when fully scrolled to the bottom.
*/
#app-sidebar #participantsTabView .participant:last-child {
margin-bottom: 15px;
}
/**
* Dark-Theme fixes
*/
// We always want to use the white icons, this is why we don't use var(--color-white) here.
.avatar.icon {
&.icon-public {
background-image: url(icon-color-path('public', 'actions', 'fff', 1, true));
}
&.icon-contacts {
background-image: url(icon-color-path('contacts', 'places', 'fff', 1, true));
}
&.icon-password {
background-image: url(icon-color-path('password', 'actions', 'fff', 1, true));
}
&.icon-file {
background-image: url(icon-color-path('text', 'filetypes', 'fff', 1, true));
}
&.icon-mail {
background-image: url(icon-color-path('mail', 'actions', 'fff', 1, true));
}
}
#app-navigation > ul > li > a:first-child {
img {
filter: none !important;
}
}
|