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

726
LINES

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

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

Author comment

Began life as a copy of #1029713

download  show line numbers   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029808
Snippet name: style.css for AVOR Demonstrator
Eternal ID of this version: #1029808/1
Text MD5: 6f25a0b21eab1bbd4942824995f84a80
Author: stefan
Category: javax / css
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-18 12:53:42
Source code size: 14929 bytes / 726 lines
Pitched / IR pitched: No / No
Views / Downloads: 127 / 604
Referenced in: [show references]