blob: 07be2e560fb59e2ac292594a937e4bfb9ce3e0f2 [file] [log] [blame]
Frédéric Guimont3e5f1b62016-11-22 11:41:38 -05001body {
Adrien Beraud8e25afb2017-04-19 01:38:57 +02002 margin: 0;
AmarOkb4253242017-07-13 11:21:39 -04003 overflow: hidden;
Adrien Beraud8e25afb2017-04-19 01:38:57 +02004}
5
Sébastien Blinf4f90282017-10-03 14:07:16 -04006#invitation {
7 visibility: hidden;
8 width: 100%;
9 background: #bae5f0;
10 z-index: 2;
11 position: absolute;
12 margin: 0 auto;
13 left:0;
14 right:0;
15 top:0;
16}
17
18#actions
19{
20 margin: 10px;
21 list-style: none;
22 display: flex;
23 align-items: center;
24 justify-content: center;
25}
26
27.flat-button {
28 margin: 5px;
29 border: 0;
30 border-radius: 5px;
31 transition: all 0.3s ease;
32 color: white;
33 padding: 10px 20px 10px 20px;
34 vertical-align: middle;
Sébastien Blinf4f90282017-10-03 14:07:16 -040035}
36
37.button-green {
38 background: #27ae60;
39}
40
41.button-green:hover {
42 background: #219d55;
43}
44
45.button-red {
46 background: #dc3a37;
47}
48
49.button-red:hover {
50 background: #dc2719;
51}
52
53#invitation #text h1 {
54 font-size: 1.5em;
55}
56
57#invitation #text {
58 text-align: center;
59 width: 90%;
60 margin: auto;
61 margin-top: 10px;
62 font-size: 0.8em;
63}
64
Sébastien Blin23c09e02017-07-28 16:19:17 -040065a:link {
66 text-decoration: none;
67 color: #0e649b;
68 transition: all 0.2s ease-in-out;
69 border-bottom: dotted 1px;
70}
71
72a:hover {
73 border: 0;
74}
75
76.message_out #cardWrapper {
77 display: inline-block;
78 text-align: right;
79 width: 100%;
80}
81
82.message_out #cardWrapper a {
83 border: 0;
84}
85
86.message_out #containerVideo {
87 float: right;
88}
89
90#playVideo {
91 background-color: rgba(0, 0, 0, 0.4);
92 height: 50px;
93 width: 50px;
94 border-radius: 5px;
95 float: right;
96 position: absolute;
97 top: calc(50% - 25px);
98 left: calc(50% - 25px);
99 z-index: 3;
100}
101
102#containerVideo {
103 max-width: 350px;
104 position: relative;
105}
106
107#playVideo svg {
108 height: 40px;
109 width: 40px;
110 margin: 5px;
111}
112
Adrien Beraud8e25afb2017-04-19 01:38:57 +0200113#container {
114 position: relative;
115 height: 100%;
116 width: 100%;
AmarOkb4253242017-07-13 11:21:39 -0400117 display: flex;
118 flex-direction: column;
119 margin: 0;
120 padding: 0;
AmarOkd55d85e2017-07-14 09:44:05 -0400121 justify-content: flex-end;
Adrien Beraud8e25afb2017-04-19 01:38:57 +0200122}
123
124#messages {
AmarOkb4253242017-07-13 11:21:39 -0400125 position: relative;
AmarOkb4253242017-07-13 11:21:39 -0400126 z-index: 0;
Adrien Beraud8e25afb2017-04-19 01:38:57 +0200127 width: 100%;
Frédéric Guimont3e5f1b62016-11-22 11:41:38 -0500128 overflow-y: scroll;
AmarOkb4253242017-07-13 11:21:39 -0400129 height: auto;
AmarOkd55d85e2017-07-14 09:44:05 -0400130 max-height: calc(100% - 50px);
Frédéric Guimont3e5f1b62016-11-22 11:41:38 -0500131}
132
AmarOkb4253242017-07-13 11:21:39 -0400133#sendMessage {
134 display: flex;
AmarOkb4253242017-07-13 11:21:39 -0400135 position: relative;
AmarOkb4253242017-07-13 11:21:39 -0400136 border-top : 2px solid #d3d3d3;
AmarOk6286ad42017-07-14 12:11:08 -0400137 margin-left: 10px;
138 margin-right: 10px;
139 padding-left: 8px;
140 overflow: hidden;
141 padding-top: 8px;
142 padding-bottom: 8px;
143 align-items: center;
144
AmarOkb4253242017-07-13 11:21:39 -0400145}
146
147#message {
AmarOkd55d85e2017-07-14 09:44:05 -0400148 flex: 1;
AmarOk6286ad42017-07-14 12:11:08 -0400149 margin-right: 10px;
150 border: 0;
151 overflow-y: scroll;
152 color: black;
153 max-height: 150px;
154 padding-left: 8px;
155 resize: none;
AmarOkb4253242017-07-13 11:21:39 -0400156}
157
158#message:focus,
159#message.focus {
AmarOkb4253242017-07-13 11:21:39 -0400160 outline: none;
161}
162
Sébastien Blinf4f90282017-10-03 14:07:16 -0400163#container[disabled] {
164 background-color: #ccc;
165}
166
AmarOkb4253242017-07-13 11:21:39 -0400167input[placeholder], [placeholder], *[placeholder] {
168 color: #d3d3d3;
169}
170
Guillaume Roguez5b137be2018-02-21 10:44:58 -0500171.msg-button {
AmarOkb4253242017-07-13 11:21:39 -0400172 border-radius: 50%;
173 border: 0;
174 width: 40px;
175 height: 40px;
AmarOk6286ad42017-07-14 12:11:08 -0400176 align-self: center;
AmarOkb4253242017-07-13 11:21:39 -0400177 transition: all 0.3s ease;
178}
179
Guillaume Roguez5b137be2018-02-21 10:44:58 -0500180.msg-button.hover,
181.msg-button:hover {
AmarOkb4253242017-07-13 11:21:39 -0400182 background: #bae5f0;
183}
184
Guillaume Roguez5b137be2018-02-21 10:44:58 -0500185.msg-button.hover svg,
186.msg-button:hover svg {
AmarOkb4253242017-07-13 11:21:39 -0400187 fill: black;
188}
189
190#sendMessage svg {
191 fill: #666;
192 padding: 5px;
193 width: 100%;
194 height: 100%;
195 transition: all 0.3s ease;
196}
197
198
Frédéric Guimont3e5f1b62016-11-22 11:41:38 -0500199.wc {
200 will-change: transform;
201}
202
aviau32b8dd62016-11-02 00:36:57 -0400203.status_circle {
204 fill: #A0A0A0;
205 -webkit-animation: circle-dance;
206 -webkit-animation-duration: 0.8s;
207 -webkit-animation-iteration-count: infinite;
208 -webkit-animation-direction: alternate;
209 -webkit-animation-timing-function: ease-in-out;
210}
211
212.anim-first {
213 -webkit-animation-delay: 0.7s;
214}
215
216.anim-second {
217 -webkit-animation-delay: 0.9s;
218}
219
220.anim-third {
221 -webkit-animation-delay: 1.1s;
222}
223
224@-webkit-keyframes circle-dance {
225 0%,50% {
226 -webkit-transform: translateY(0);
227 fill: #A0A0A0;
228 }
229 100% {
230 -webkit-transform: translateY(-8px);
231 fill: #000;
232 }
233}
234
235.status-check {
Frédéric Guimont3e5f1b62016-11-22 11:41:38 -0500236 stroke-dasharray: 17;
237 stroke-dashoffset: 17;
238 -webkit-animation: dash-check;
239 -webkit-animation-duration: 0.4s;
240 -webkit-animation-delay: 0.7s;
241 -webkit-animation-fill-mode: forwards;
242 -webkit-animation-timing-function: ease-in-out;
243 display: none;
244}
245
246.message--sent .status-check {
247 display: inline-block;
aviau32b8dd62016-11-02 00:36:57 -0400248}
249
250@-webkit-keyframes dash-check{
251 from {
252 stroke-dashoffset: 17;
253 }
254 to {
255 stroke-dashoffset: 0;
256 }
257}
258
259.status-x {
260 stroke-dasharray: 12;
261 stroke-dashoffset: 12;
262 -webkit-animation: dash-x;
263 -webkit-animation-duration: 0.2s;
264 -webkit-animation-fill-mode: forwards;
265 -webkit-animation-timing-function: ease-in-out;
266}
267
268.x-first {
269 -webkit-animation-delay: 0.7s;
270}
271
272.x-second {
273 -webkit-animation-delay: 0.9s;
274}
275
276@-webkit-keyframes dash-x{
277 from {
278 stroke-dashoffset: 12;
279 }
280 to {
281 stroke-dashoffset: 0;
282 }
283}
284
285.message_wrapper {
286 transform: scale(0);
Sébastien Blin23c09e02017-07-28 16:19:17 -0400287 max-width: 70%;
aviau32b8dd62016-11-02 00:36:57 -0400288 margin: 10px 0;
289 display: inline-block;
Frédéric Guimont3e5f1b62016-11-22 11:41:38 -0500290 padding: 10px;
aviau32b8dd62016-11-02 00:36:57 -0400291 border-radius: 10px;
292 position: relative;
293 -webkit-animation: talk;
294 -webkit-animation-duration: 0.3s;
295 -webkit-animation-delay: 0.1s;
296 -webkit-animation-fill-mode: forwards;
297 -webkit-animation-timing-function: ease-in-out;
298}
299
300.message {
301 font: 0.875em "Open sans",Helvetica,"Segoe UI",sans-serif;
302 margin: 0;
303 display: flex;
304 justify-content: flex-start;
305 align-items: top;
306 overflow: hidden;
307}
308
Sébastien Blin23c09e02017-07-28 16:19:17 -0400309#msg_content img {
310 max-width: 300px;
311 align-content: center;
312}
313
314#msg_content img:first-of-type {
315 margin: 5px;
316}
317
AmarOk6286ad42017-07-14 12:11:08 -0400318pre {
319 font : inherit;
320 font-family : inherit;
321 font-size : inherit;
322 font-style : inherit;
323 font-variant : inherit;
324 font-weight : inherit;
325 margin: 0;
326 padding: 0;
327}
328
aviau32b8dd62016-11-02 00:36:57 -0400329.message_out {
330 flex-direction: row-reverse;
331}
332
Sébastien Blinc6f3a262017-07-28 16:12:24 -0400333.timestamp
334{
335 display: flex;
336 justify-content: flex-start;
337 color: #333;
338 font-size: 10px;
339 padding: 5px;
340}
341
342.timestamp_out {
343 flex-direction: row-reverse;
344}
345
aviau32b8dd62016-11-02 00:36:57 -0400346.message_sender {
347 display: none;
348}
349
350.sender_image {
351 border-radius: 50%;
352 transition: transform 0.2s ease-in-out;
Frédéric Guimont3e5f1b62016-11-22 11:41:38 -0500353 margin: 10px;
aviau32b8dd62016-11-02 00:36:57 -0400354}
355
356.message_in .sender_image {
357 -webkit-animation-name: enter-stage-left;
358 -webkit-animation-duration: 0.2s;
359 -webkit-animation-timing-function: ease-in-out;
360}
361
362.message_out .sender_image {
363 -webkit-animation-name: enter-stage-right;
364 -webkit-animation-duration: 0.2s;
365 -webkit-animation-timing-function: ease-in-out;
366}
367
368@-webkit-keyframes enter-stage-left {
369 from {
370 transform: translateX(-100%);
371 }
372 to {
373 transform: translateX(0);
374 }
375}
376
377@-webkit-keyframes enter-stage-right {
378 from {
379 transform: translateX(100%);
380 }
381 to {
382 transform: translateX(0);
383 }
384}
385
386.message_out > .message_wrapper {
AmarOkb4253242017-07-13 11:21:39 -0400387 background-color: #cfebf5;
aviau32b8dd62016-11-02 00:36:57 -0400388 border-top-right-radius: 0;
389 transform-origin: top right;
390}
391
392.message_out + .message_out > .message_wrapper {
393 border-top-right-radius: 10px;
394}
395
396.message_in > .message_wrapper {
397 background-color: #DEDEE0;
398 border-top-left-radius: 0;
399 transform-origin: top left;
400}
401
402.message_in + .message_in > .message_wrapper {
403 border-top-left-radius: 10px;
404}
405
406.message_timestamp {
Sébastien Blinc6f3a262017-07-28 16:12:24 -0400407 color: #333;
408 font-size: 0.8em;
409 margin-top: 0.5em;
410 transition: opacity 0.3s ease-in-out;
411 line-height: 1em;
412 display: inline-block;
413 opacity: 0;
414 float: right;
415}
416
417.message_wrapper:hover .message_timestamp {
418 opacity: 1;
Frédéric Guimont3e5f1b62016-11-22 11:41:38 -0500419}
420
421.sent-checkmark {
Sébastien Blinc6f3a262017-07-28 16:12:24 -0400422 margin-left: 0.313em;
423 float: right;
aviau32b8dd62016-11-02 00:36:57 -0400424}
425
426@-webkit-keyframes fade-in {
427 from {
428 opacity: 0;
429 }
430 to {
431 opacity: 1;
432 }
433}
434
435.message_text {
436 word-wrap: break-word;
Frédéric Guimont3e5f1b62016-11-22 11:41:38 -0500437 display: block;
aviau32b8dd62016-11-02 00:36:57 -0400438}
439
440@-webkit-keyframes talk {
441 from {
442 transform: scale(0);
443 }
444 to {
445 transform: scale(1);
446 }
447}
448
449.message_in > .message_wrapper:before {
450 content: "";
451 width: 10px;
452 height: 10px;
453 position: absolute;
454 left: -10px;
455 top: 0;
456 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E %3Cpath d= 'M10,0 L0,0 C10,0 10,10 10,10' fill='%23DEDEE0'/%3E %3C/svg%3E");
457 transform-origin: top left;
458}
459
460.message_in + .message_in > .message_wrapper:before {
461 display: none;
462}
463
464.message_out + .message_out > .message_wrapper:after {
465 display: none;
466}
467
468.message_out > .message_wrapper:after {
469 content: "";
470 width: 10px;
471 height: 10px;
472 position: absolute;
473 right: -10px;
474 top: 0;
AmarOkb4253242017-07-13 11:21:39 -0400475 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E %3Cpath d= 'M0,0 L10,0 C0,0 0,10 0,10' fill='%23cfebf5'/%3E %3C/svg%3E");
aviau32b8dd62016-11-02 00:36:57 -0400476 transform-origin: top right;
477}
478
479.message_delivery_status {
480 margin: 10px 10px;
481 color: #A0A0A0;
482 opacity: 0;
483 -webkit-animation-name: fade-in;
484 -webkit-animation-duration: 0.2s;
485 -webkit-animation-timing-function: ease-in-out;
486 -webkit-animation-delay: 0.4s;
487 -webkit-animation-fill-mode: forwards;
488 transition: opacity 0.5s ease-in-out;
489}
490
491.message_in + .message_in .sender_image {
492 opacity: 0;
493}
494
495.message_out + .message_out .sender_image {
496 opacity: 0;
497}
Sébastien Blinf4f90282017-10-03 14:07:16 -0400498
499.message_type_contact,
500.message_type_call {
501 width: 100%;
502}
503
Guillaume Roguez5b137be2018-02-21 10:44:58 -0500504.message_type_data_transfer .message_timestamp,
505.message_type_data_transfer .message_delivery_status,
506.message_type_data_transfer .sent-checkmark,
Sébastien Blinf4f90282017-10-03 14:07:16 -0400507.message_type_call .sent-checkmark,
508.message_type_call .message_sender,
509.message_type_call .message_delivery_status,
510.message_type_call .message_timestamp,
511.message_type_call .message_sender_image,
Guillaume Roguez5b137be2018-02-21 10:44:58 -0500512.message_type_call .message_progress_bar,
Sébastien Blinf4f90282017-10-03 14:07:16 -0400513.message_type_contact .sent-checkmark,
514.message_type_contact .message_sender,
515.message_type_contact .message_delivery_status,
516.message_type_contact .message_timestamp,
Guillaume Roguez5b137be2018-02-21 10:44:58 -0500517.message_type_contact .message_sender_image,
518.message_type_contact .message_progress_bar,
519.message_type_text .message_progress_bar {
Sébastien Blinf4f90282017-10-03 14:07:16 -0400520 visibility: hidden;
521 display: none;
522}
523
Sébastien Blinf4f90282017-10-03 14:07:16 -0400524.message_type_contact .message_wrapper:before,
Guillaume Roguez5b137be2018-02-21 10:44:58 -0500525.message_type_data_transfer .message_wrapper:before,
Sébastien Blinf4f90282017-10-03 14:07:16 -0400526.message_type_call .message_wrapper:before {
527 display: none;
528}
529
530.message_type_call .message_wrapper:after,
Guillaume Roguez5b137be2018-02-21 10:44:58 -0500531.message_type_data_transfer .message_wrapper:after,
Sébastien Blinf4f90282017-10-03 14:07:16 -0400532.message_type_contact .message_wrapper:after {
533 display: none;
534}
535
536.message_type_call .message_wrapper,
537.message_type_contact .message_wrapper {
538 background: #fff;
539 width: 100%;
540 max-width: 100%;
541 text-align: center;
542 margin: 0;
543 padding: 0;
544 color: #888;
545 font-style: italic;
546 border-radius: 0;
547}
548
549.message_type_call .message_text,
550.message_type_contact .message_text {
551 overflow: hidden;
552 text-align: center;
553 padding-bottom: 5px;
554 margin-bottom: 5px;
555 border-bottom: 1px solid #ccc;
556 margin-left: 20px;
557}
558
559.message_type_call .message_text {
560 border-bottom: 1px dotted #ccc;
561}
562
563#green {
564 color: green;
565}
566
567#red {
568 color: red;
569 font-size: 1.25em;
570}
Guillaume Roguez5b137be2018-02-21 10:44:58 -0500571
572.message_type_data_transfer .message_wrapper
573{
574 padding: 0;
575 width: 30%;
576 display: flex;
577 flex-wrap: wrap;
578}
579
580.message_type_data_transfer #left_buttons
581{
582 width: 25%;
583 display: flex;
584 padding-left: 5px;
585 overflow: hidden;
586}
587
588.message_type_data_transfer #text
589{
590 width: 70%;
591 text-align: center;
592 padding-top: 14px;
593 margin-bottom: 12px;
594}
595
596.message_type_data_transfer #filename
597{
598 font-weight: bold;
599 overflow: hidden;
600}
601
602.message_type_data_transfer #informations
603{
604 color: #555;
605 font-size: 0.8em;
606}
607
608.message_progress_bar {
609 margin-top: 12px;
610 width: 100%;
611 height: 12px;
612 position: relative;
613 overflow: hidden;
614 background-color: #eee;
615 border-radius: 2px;
616 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
617}
618
619.message_progress_bar > span {
620 display: inline;
621 height: 100%;
622 background-color: #01a2b8;
623 position: absolute;
624 overflow: hidden;
625}
626
627.message_type_data_transfer .flat-button
628{
629 padding: 0;
630}