Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

722
LINES

< > BotCompany Repo | #1031825 // style.css for AVOR Demonstrator 2021

Document

1  
#screenreadertrick {
2  
  position: absolute !important; /* Outside the DOM flow */
3  
  height: 1px; width: 1px; /* Nearly collapsed */
4  
  overflow: hidden;
5  
  clip: rect(1px 1px 1px 1px); /* IE 7+ only support clip without commas */
6  
  clip: rect(1px, 1px, 1px, 1px); /* All other browsers */
7  
}
8  
9  
/* old opener */
10  
11  
body {
12  
  font-family: 'Roboto', sans-serif;
13  
}
14  
15  
.chat-btn {
16  
    position: fixed;
17  
    bottom: /*2rem*/45px;
18  
    right: /*2rem*/45px;
19  
    z-index: 999999;
20  
    text-decoration: none;
21  
    display: -moz-flex;
22  
    display: -o-flex;
23  
    display: -webkit-flex;
24  
    display: flex;
25  
    -webkit-justify-content: center;
26  
    justify-content: center;
27  
    -webkit-align-items: center;
28  
    align-items: center;
29  
    width: 60px;
30  
    height: 60px;
31  
    background: linear-gradient(
32  
135deg
33  
, #000 0%, #3F3D39 100%);
34  
    color: #ffffff;
35  
    border-radius: 50%;
36  
    font-size: 30px;
37  
    will-change: transform;
38  
    transition: all 0.2s ease-in-out 0s;
39  
    box-shadow: rgb(170 170 170 / 50%) 0px 4px 24px;
40  
}
41  
42  
.chat-btn div {
43  
    display: inline;
44  
    transition: transform 0.8s;
45  
    visibility: visible;
46  
    opacity: 1;
47  
    position: absolute;
48  
    left: 50%;
49  
    top: 50%;
50  
    transform: translate(-50%, -50%) rotateZ(0);
51  
}
52  
53  
.chat-btn div.hide {
54  
    visibility: hidden;
55  
    opacity: 0;
56  
    transform: translate(-50%, -50%) rotateZ(180deg);
57  
    transition: transform 0.8s;
58  
}
59  
60  
.chat-btn .fa-comment-dots {
61  
    display: block;
62  
}
63  
64  
.chat-btn .fa-pencil-alt {
65  
    display: none;
66  
}
67  
68  
.chat-btn:hover i.fas.fa-comment-dots {
69  
  display: none;
70  
}
71  
72  
.chat-btn:hover i.fas.fa-pencil-alt {
73  
  display: block;
74  
}
75  
76  
.chat-btn:hover {
77  
    transform: scale(1.2);
78  
    background: #3f3d39 !important;
79  
    color: #fff;
80  
}
81  
    
82  
/*Chatbot Starts*/
83  
84  
.chat-icon button {
85  
  font-size: 32px;
86  
  line-height: 55px;
87  
  -webkit-transition: all .7s ease-out;
88  
  -moz-transition: all .7s ease-in-out;
89  
  transition: all .7s ease-in-out;
90  
  color: #fff;
91  
  background: transparent;
92  
  border: none;
93  
  /*width: 50px;*/
94  
  height: 50px;
95  
  line-height: 50px;
96  
  border-radius: 50px;
97  
}
98  
99  
/* country selector */
100  
.chat-bottom select {
101  
  float: left;
102  
  margin-left: 10px;
103  
  margin-top: 10px;
104  
}
105  
106  
#chat_countrycode {
107  
  display: none;
108  
}
109  
110  
#chat_countrycode.visible {
111  
  display: inline;
112  
}
113  
114  
.chat-bottom a button {
115  
    color: #3f3d39;
116  
    transition: 0.4s all ease-in;
117  
    cursor: pointer;
118  
    font-size: 18px;
119  
}
120  
121  
.chat-bottom a button:hover {
122  
    color: #f16e00;
123  
}
124  
125  
button.fa-paper-plane {
126  
  border: none;
127  
  padding: 0;
128  
  background: none;
129  
  height: 30px;
130  
}
131  
132  
/* get rid of this? */
133  
.chatbot {
134  
  font-family: 'Roboto', sans-serif;
135  
}
136  
137  
.chatbot .chat-box {
138  
    bottom: 20px;
139  
    position: fixed;
140  
    margin: 1em;
141  
    right: 0;
142  
    z-index: 10998;
143  
}
144  
145  
.chat-icon {
146  
    /* latest fixes */
147  
    /*display: block;*/
148  
    display: flex;
149  
    align-items: center;
150  
    justify-content: center;
151  
    
152  
    width: 56px;
153  
    height: 56px;
154  
    border-radius: 50%;
155  
    text-align: center;
156  
    color: #f0f0f0;
157  
    margin: 25px auto 0;
158  
    box-shadow: 0 0 4px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .28);
159  
    cursor: pointer;
160  
    -webkit-transition: all .1s ease-out;
161  
    transition: all .1s ease-out;
162  
    position: relative;
163  
    z-index: 10998;
164  
    overflow: hidden;
165  
    background: #42a5f5;
166  
}
167  
168  
.chat-icon i {
169  
    font-size: 2em;
170  
    line-height: 55px;
171  
    -webkit-transition: all .2s ease-out;
172  
    -webkit-transition: all .2s ease-in-out;
173  
    transition: all .2s ease-in-out;
174  
}
175  
176  
/*Chatbox*/
177  
178  
.chat {
179  
    width: 450px; /* default chat width */
180  
    position: fixed;
181  
    right: 85px;
182  
    bottom: 20px;
183  
    /*font-size: 14px;*/
184  
    line-height: 25px;
185  
    font-weight: 500;
186  
    -webkit-font-smoothing: antialiased;
187  
    font-smoothing: antialiased;
188  
    opacity: 0;
189  
    display: none; /* XXX */
190  
    box-shadow: 1px 1px 100px 2px rgba(0, 0, 0, 0.22);
191  
    border-radius: 10px;
192  
    -webkit-transition: all .2s ease-out;
193  
    -webkit-transition: all .2s ease-in-out;
194  
    transition: all .2s ease-in-out;
195  
}
196  
197  
.chat_fullscreen {
198  
    position: fixed;
199  
    right: 0px;
200  
    bottom: 0px;
201  
    top: 0px;
202  
}
203  
204  
.chat, .chat_header {
205  
    font-family: 'Roboto', sans-serif;
206  
}
207  
208  
.chat_header {
209  
    text-align: center;
210  
    font-weight: 500;
211  
    color: #fff;
212  
    height: 55px;
213  
    background: #42a5f5;
214  
    border-top-left-radius: 10px;
215  
    border-top-right-radius: 10px;
216  
    display: flex;
217  
    align-items: center;
218  
    background: linear-gradient(135deg, #000 0%, #3F3D39 100%) !important;
219  
    padding: 25px;
220  
}
221  
222  
.chat_header {
223  
  position: relative;
224  
}
225  
226  
.chat_header img.header-user {
227  
  width: 50px;
228  
  height: 50px;
229  
  border-radius: 50px;
230  
  margin-right: 10px;
231  
}
232  
233  
.chat_header h2 {
234  
  font-size: 24px;
235  
  margin: 0;
236  
  color: #ffffff;
237  
  font-weight: normal;
238  
}
239  
240  
.chat_header button {
241  
  background: transparent;
242  
  border: none;
243  
  color: #fff;
244  
  padding: 0;
245  
  margin: 0;
246  
  font-size: 20px !important;
247  
}    
248  
    
249  
.chat_header button {
250  
  position: absolute;
251  
  top: 50%;
252  
  right: 20px;
253  
  transform: translateY(-50%);
254  
  background-color: transparent !important;
255  
}
256  
257  
.header-bottom {
258  
    padding: 25px;
259  
    background-image: linear-gradient(135deg, rgba(42, 39, 218, 0.72) 0%, rgba(0, 204, 255, 0.72) 100%);
260  
    color: #fff;
261  
    position: relative;
262  
    clear: both;
263  
}
264  
265  
.header-bottom::before {
266  
    content: "";
267  
    display: block;
268  
    width: 12px;
269  
    height: 12px;
270  
    position: absolute;
271  
    top: calc(50% - 4px);
272  
    background: rgb(117 218 95);
273  
    border-radius: 50%;
274  
    left: 25px;
275  
}
276  
277  
.header-bottom::after {
278  
    content: "";
279  
    position: absolute;
280  
    width: 100%;
281  
    bottom: -8px;
282  
    left: 0px;
283  
    border-image-source: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNzIgMTUiPgogIDxwYXRoIGQ9Ik0zNDkuOCAxLjRDMzM0LjUuNCAzMTguNSAwIDMwMiAwaC0yLjVjLTkuMSAwLTE4LjQuMS0yNy44LjQtMzQuNSAxLTY4LjMgMy0xMDIuMyA0LjctMTQgLjUtMjggMS4yLTQxLjUgMS42Qzg0IDcuNyA0MS42IDUuMyAwIDIuMnY4LjRjNDEuNiAzIDg0IDUuMyAxMjguMiA0LjEgMTMuNS0uNCAyNy41LTEuMSA0MS41LTEuNiAzMy45LTEuNyA2Ny44LTMuNiAxMDIuMy00LjcgOS40LS4zIDE4LjctLjQgMjcuOC0uNGgyLjVjMTYuNSAwIDMyLjQuNCA0Ny44IDEuNCA4LjQuMyAxNS42LjcgMjIgMS4yVjIuMmMtNi41LS41LTEzLjgtLjUtMjIuMy0uOHoiIGZpbGw9IiNmZmYiLz4KPC9zdmc+Cg==);
284  
    border-image-slice: 0 0 100%;
285  
    border-image-repeat: stretch;
286  
    border-width: 0px 0px 15px;
287  
    border-bottom-style: solid;
288  
}
289  
290  
.header-bottom .online {
291  
    color: #fff;
292  
    padding-left: 25px;
293  
    font-size: 18px;
294  
    font-weight: normal;
295  
}
296  
297  
.chat_header .span {
298  
    float: right;
299  
}
300  
301  
.chat.is-visible {
302  
    display: block; /* XXX */
303  
    opacity: 1;
304  
    -webkit-animation: zoomIn .2s cubic-bezier(.42, 0, .58, 1);
305  
    animation: zoomIn .2s cubic-bezier(.42, 0, .58, 1);
306  
}
307  
308  
.is-hide {
309  
    opacity: 0
310  
}
311  
312  
.chat_field {
313  
    position: relative;
314  
    margin: 5px 0 5px 0;
315  
    width: 65%;
316  
    font-size: 17px;
317  
    line-height: 30px;
318  
    font-weight: 500;
319  
    color: #4b4b4b;
320  
    -webkit-font-smoothing: antialiased;
321  
    font-smoothing: antialiased;
322  
    border: none;
323  
    outline: none;
324  
    display: inline-block;
325  
}
326  
327  
.chat_field.chat_message {
328  
    height: 30px;
329  
    resize: none;
330  
    font-size: 17px;
331  
    line-height: 20px;
332  
    font-weight: 400;
333  
    font-family: inherit;
334  
}
335  
336  
.chat-bottom {
337  
    width: 100%;
338  
    display: inline-block;
339  
    text-align: center;
340  
    background: #fff;
341  
    border-top: 1px solid #eee;
342  
    border-bottom-right-radius: 10px;
343  
    border-bottom-left-radius: 10px;
344  
}
345  
346  
.chat-bottom a {
347  
    display: inline-block;
348  
    text-align: center;
349  
}
350  
351  
.chat-bottom .camera-icon {
352  
    float: left;
353  
    background: rgba(0, 0, 0, 0);
354  
}
355  
356  
.chat-bottom .send-icon {
357  
    float: right;
358  
    background: rgba(0, 0, 0, 0);
359  
}
360  
361  
.chat-bottom a {
362  
    width: 35px;
363  
    height: 35px;
364  
    box-shadow: none;
365  
    margin: 5px 10px 5px 5px;
366  
}
367  
368  
.chat-bottom a i {
369  
    font-size: 1.6em;
370  
    line-height: 35px;
371  
    color: #bbb;
372  
}
373  
374  
.chat-bottom a i:hover {
375  
    color: #42a5f5;
376  
}
377  
378  
.chat_converse:focus, button.fas:focus, .chat_message:focus {
379  
  outline: .2rem solid #8c9856; /* avor gold */
380  
}
381  
382  
.chat-icon button:focus {
383  
  outline: none !important;
384  
  box-shadow: 0 0 3pt 2pt #8c9856; /* avor gold */
385  
}
386  
387  
.chat-icon {
388  
  padding: 3px;
389  
}
390  
391  
.chat_converse {
392  
    position: relative;
393  
    background: #3F3D39;
394  
    margin: 0px;
395  
    height: 250px; /* default chat height */
396  
    /*max-height: 250px;
397  
    min-height: 150px;*/
398  
    font-size: 17px; /* chat font size */
399  
    line-height: 25px;
400  
    overflow-y: auto;
401  
    width: 100%;
402  
    float: right;
403  
    padding-bottom: 50px;
404  
}
405  
406  
.chat .chat_converse .chat_msg_item {
407  
    position: relative;
408  
    margin: 8px 0 15px 0;
409  
    padding: 8px 15px;
410  
    max-width: 75%;
411  
    display: block;
412  
    word-wrap: break-word;
413  
    border-radius: 20px;
414  
    -webkit-animation: zoomIn .5s cubic-bezier(.42, 0, .58, 1);
415  
    animation: zoomIn .5s cubic-bezier(.42, 0, .58, 1);
416  
    clear: both;
417  
    z-index: 10999;
418  
        font-weight: normal;
419  
    font-size: 14px;
420  
    line-height: 25px;
421  
}
422  
423  
.status {
424  
    margin: 45px -50px 0 0;
425  
    float: right;
426  
    font-size: 11px;
427  
    opacity: 0.3;
428  
}
429  
430  
.status2 {
431  
    margin: -10px 20px 0 0;
432  
    float: right;
433  
    display: block;
434  
    font-size: 11px;
435  
    opacity: 0.3;
436  
    clear: both;
437  
}
438  
439  
.chat .chat_converse .chat_msg_item .chat_avatar {
440  
    position: absolute;
441  
    top: 0;
442  
}
443  
444  
.chat .chat_converse .chat_msg_item.chat_msg_item_admin .chat_avatar {
445  
    left: -42px;
446  
    background: rgb(240, 242, 247);
447  
}
448  
449  
.chat .chat_converse .chat_msg_item .chat_avatar,
450  
.chat_avatar img {
451  
    width: 40px;
452  
    height: 40px;
453  
    text-align: center;
454  
    border-radius: 50%;
455  
}
456  
457  
.chat .chat_converse .chat_msg_item.chat_msg_item_admin {
458  
    margin-left: 60px;
459  
    float: left;
460  
    /*background: rgb(240, 242, 247);*/
461  
    color: #fff;
462  
}
463  
464  
.chat .chat_converse .chat_msg_item.chat_msg_item_user {
465  
    margin-right: 20px;
466  
    float: right;
467  
    background: linear-gradient(135deg, #000 0%, #3F3D39 100%);
468  
    color: #eceff1;
469  
}
470  
471  
.chat .chat_converse .chat_msg_item.chat_msg_item_admin:before {
472  
    /*content: '';
473  
    position: absolute;
474  
    top: 15px;
475  
    left: -12px;
476  
    z-index: 10998;
477  
    border: 6px solid transparent;
478  
    border-right-color: rgba(255, 255, 255, .4);*/
479  
}
480  
481  
#otherSideTyping {
482  
    background-color: #fff;
483  
    margin-left: 30px;
484  
    display: flex;
485  
    width: 50%;
486  
    align-items: center;
487  
}
488  
489  
#otherSideTyping h4 {
490  
  margin-right: 10px;
491  
  margin-left: 15px;
492  
}
493  
494  
#otherSideTyping .dot {
495  
    display: inline-block;
496  
    width: 12px;
497  
    height: 12px;
498  
    border-radius: 50%;
499  
    margin-right: 3px;
500  
    background: #303131;
501  
    animation: wave 1.3s linear infinite;
502  
}
503  
504  
#otherSideTyping .dot:nth-child(2) {
505  
    animation-delay: -1.1s;
506  
}
507  
508  
#otherSideTyping .dot:nth-child(3) {
509  
    animation-delay: -0.9s;
510  
}
511  
512  
.chat_username {
513  
    clear: both;
514  
}
515  
.chat_username p {
516  
    position: relative;
517  
    float: right;
518  
    margin: 0px 20px -5px 0px;
519  
    font-size: 12px;
520  
    color: #ccc;
521  
}
522  
523  
.chat_botname {
524  
  clear: both;
525  
}
526  
527  
.chat_botname p {
528  
    position: relative;
529  
    float: left;
530  
    margin: 0px 0px -6px 60px;
531  
    font-size: 12px;
532  
    color: #42a5f5;
533  
}
534  
535  
.chat-btn, .chat_header, .chat .chat_converse .chat_msg_item.chat_msg_item_user, .chat_header .fa-redo {
536  
    background-color: #3f3d39;
537  
    color: #ffffff;
538  
}
539  
540  
/* limit embedded videos to chat width */
541  
.chat_converse iframe {
542  
  max-width: 100% !important;
543  
}
544  
545  
@keyframes wave {
546  
    0%,
547  
    60%,
548  
    100% {
549  
        transform: initial;
550  
    }
551  
    30% {
552  
        transform: translateY(-15px);
553  
    }
554  
}
555  
556  
557  
/*Chatbox scrollbar*/
558  
::-webkit-scrollbar {
559  
    width: 6px;
560  
}
561  
562  
::-webkit-scrollbar-track {
563  
    border-radius: 0;
564  
}
565  
566  
::-webkit-scrollbar-thumb {
567  
    margin: 2px;
568  
    border-radius: 10px;
569  
    background: rgba(0, 0, 0, 0.2);
570  
}
571  
572  
573  
/*Element state*/
574  
.is-active {
575  
    -webkit-transform: rotate(180deg);
576  
    transform: rotate(180deg);
577  
    -webkit-transition: all 1s ease-in-out;
578  
    transition: all 1s ease-in-out;
579  
}
580  
581  
.is-float {
582  
    box-shadow: 0 0 6px rgba(0, 0, 0, .16), 0 6px 12px rgba(0, 0, 0, .32);
583  
}
584  
585  
586  
/*Animation*/
587  
588  
@-webkit-keyframes zoomIn {
589  
    0% {
590  
        -webkit-transform: scale(0);
591  
        transform: scale(0);
592  
        opacity: 0.0;
593  
    }
594  
    100% {
595  
        -webkit-transform: scale(1);
596  
        transform: scale(1);
597  
        opacity: 1;
598  
    }
599  
}
600  
601  
@keyframes zoomIn {
602  
    0% {
603  
        -webkit-transform: scale(0);
604  
        transform: scale(0);
605  
        opacity: 0.0;
606  
    }
607  
    100% {
608  
        -webkit-transform: scale(1);
609  
        transform: scale(1);
610  
        opacity: 1;
611  
    }
612  
}
613  
614  
@-webkit-keyframes load {
615  
    0% {
616  
        -webkit-transform: scale(0);
617  
        transform: scale(0);
618  
        opacity: 0.0;
619  
    }
620  
    50% {
621  
        -webkit-transform: scale(1.5);
622  
        transform: scale(1.5);
623  
        opacity: 1;
624  
    }
625  
    100% {
626  
        -webkit-transform: scale(1);
627  
        transform: scale(1);
628  
        opacity: 0;
629  
    }
630  
}
631  
632  
@keyframes load {
633  
    0% {
634  
        -webkit-transform: scale(0);
635  
        transform: scale(0);
636  
        opacity: 0.0;
637  
    }
638  
    50% {
639  
        -webkit-transform: scale(1.5);
640  
        transform: scale(1.5);
641  
        opacity: 1;
642  
    }
643  
    100% {
644  
        -webkit-transform: scale(1);
645  
        transform: scale(1);
646  
        opacity: 0;
647  
    }
648  
}
649  
650  
@media only screen and (min-width: 360px) and (max-width: 399px) {
651  
    .chat {
652  
        width: 275px; /* adapted chat width */
653  
    }
654  
    /*.chat_field {
655  
        width: 50%;
656  
    }*/
657  
}
658  
659  
@media only screen and (min-width: 400px) and (max-width: 1023px) {
660  
    .chat {
661  
        width: 400px; /* adapted chat width */
662  
    }
663  
    /*.chat_field {
664  
        width: 50%;/*65%;*/
665  
    }*/
666  
}
667  
668  
669  
/* safari fixes */
670  
671  
@media (min-width: 375px) and (max-width: 812px) {
672  
  .chat_converse {
673  
    height: 280px;  /* adapted chat height */
674  
    /*max-height: 280px;*/
675  
  }
676  
  
677  
  .chat-icon {
678  
      width: 90px!important;
679  
      height: 90px!important;
680  
  }
681  
  
682  
  .chat-icon button {
683  
      margin-top: 17px;
684  
      margin-left: -47px;
685  
      font-size: 48px!important;
686  
  }
687  
}
688  
689  
@media (min-width: 768px) and (max-width: 1024px) {
690  
  .chat-icon {
691  
      width: 90px!important;
692  
      height: 90px!important;
693  
  }
694  
  
695  
  .chat-icon button {
696  
      margin-top: 17px;
697  
      margin-left: -47px;
698  
      font-size: 48px!important;
699  
  }
700  
}
701  
702  
703  
/* Make the icon link position relative*/
704  
.chat-icon {
705  
    position: relative;
706  
}
707  
708  
/* Make the icon link position absolute and position it in center */
709  
.chat-icon button {
710  
    position: absolute;
711  
    top: 50%;
712  
    left: 50%;
713  
    transform: translate(-50%, -50%);
714  
    margin: 0 !important;
715  
}
716  
717  
/* smaller heading on mobile */
718  
@media (max-width: 614px) {
719  
  .chat_header h2 {
720  
    font-size: 1.5em;
721  
  }
722  
}

Author comment

Began life as a copy of #1029808

download  show line numbers   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031825
Snippet name: style.css for AVOR Demonstrator 2021
Eternal ID of this version: #1031825/14
Text MD5: 0c70aa4636864cfa3f480fc3de9b494f
Author: stefan
Category: javax / css
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-14 20:06:42
Source code size: 14976 bytes / 722 lines
Pitched / IR pitched: No / No
Views / Downloads: 102 / 138
Version history: 13 change(s)
Referenced in: [show references]