sds-bosch commited on
Commit
4a699ce
1 Parent(s): f321807

updated CSS

Browse files
Files changed (2) hide show
  1. index.html +3 -526
  2. style.css +0 -28
index.html CHANGED
@@ -10,515 +10,7 @@
10
 
11
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans'>
12
  <link rel='stylesheet' href='css/jquery.mCustomScrollbar.min.css'>
13
-
14
- <style>
15
- /*--------------------
16
- Mixins
17
- --------------------*/
18
- /*--------------------
19
- Body
20
- --------------------*/
21
- *,
22
- *::before,
23
- *::after {
24
- box-sizing: border-box;
25
- }
26
-
27
- html,
28
- body {
29
- height: 100%;
30
- }
31
-
32
- body {
33
- /*background: linear-gradient(135deg, #044f48, #2a7561);
34
- background-size: cover;*/
35
- font-family: 'Bosch Sans' !important;
36
- font-size: 12px;
37
- line-height: 1.3;
38
- overflow: hidden;
39
- }
40
-
41
- .bg {
42
- width: 100%;
43
- height: 100%;
44
- top: 0;
45
- left: 0;
46
- z-index: 1;
47
- background: url("WhyBosch.jpg") no-repeat;
48
- background-size: cover;
49
- /*filter: blur(80px);
50
- transform: scale(1.2);*/
51
- }
52
-
53
- /*--------------------
54
- Chat
55
- --------------------*/
56
- .chat {
57
- position: absolute;
58
- top: 50%;
59
- left: 50%;
60
- transform: translate(-50%, -50%);
61
- width: 75%;
62
- height: 90vh;
63
- max-height: 500px;
64
- z-index: 2;
65
- overflow: hidden;
66
- box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
67
- background: rgba(255, 255, 255, 0.75);
68
- border-radius: 20px;
69
- display: flex;
70
- justify-content: space-between;
71
- flex-direction: column;
72
- }
73
-
74
- /*--------------------
75
- Chat Title
76
- --------------------*/
77
- .chat-title {
78
- flex: 0 1 45px;
79
- position: relative;
80
- z-index: 2;
81
- background: rgba(0, 0, 0, 0.2);
82
- color: #fff;
83
- text-transform: uppercase;
84
- text-align: left;
85
- padding: 10px 10px 10px 50px;
86
- }
87
-
88
- .chat-title h1,
89
- .chat-title h2 {
90
- font-weight: bold;
91
- font-size: 20px;
92
- margin: 0;
93
- padding: 0;
94
- color: #000;
95
- }
96
-
97
- .chat-title h2 {
98
- color: rgba(255, 255, 255, 0.5);
99
- font-size: 10px;
100
- letter-spacing: 1px;
101
- }
102
-
103
- .chat-title .avatar {
104
- position: absolute;
105
- z-index: 1;
106
- top: 8px;
107
- left: 9px;
108
- border-radius: 30px;
109
- width: 30px;
110
- height: 30px;
111
- overflow: hidden;
112
- margin: 0;
113
- padding: 0;
114
- border: 2px solid rgba(255, 255, 255, 0.24);
115
- }
116
-
117
- .chat-title .avatar img {
118
- width: 100%;
119
- height: auto;
120
- }
121
-
122
- /*--------------------
123
- Messages
124
- --------------------*/
125
- .messages {
126
- flex: 1 1 auto;
127
- /*color: rgba(255, 255, 255, 0.5);*/
128
- color: rgb(255 255 255);
129
- overflow: hidden;
130
- position: relative;
131
- width: 100%;
132
- }
133
-
134
- .messages .messages-content {
135
- position: absolute;
136
- top: 0;
137
- left: 0;
138
- height: 101%;
139
- width: 100%;
140
- }
141
-
142
- .messages .message {
143
- clear: both;
144
- float: left;
145
- padding: 6px 10px 7px;
146
- border-radius: 10px 10px 10px 0;
147
- background: rgba(0, 0, 0, 0.3);
148
- margin: 8px 0;
149
- font-size: 14px;
150
- line-height: 1.4;
151
- margin-left: 35px;
152
- position: relative;
153
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
154
- }
155
-
156
- .messages .message .timestamp {
157
- position: absolute;
158
- bottom: -15px;
159
- font-size: 9px;
160
- color: rgba(0, 0, 0, 0.75);
161
- }
162
-
163
- .messages .message::before {
164
- content: "";
165
- position: absolute;
166
- bottom: -6px;
167
- border-top: 6px solid rgba(0, 0, 0, 0.3);
168
- left: 0;
169
- border-right: 7px solid transparent;
170
- }
171
-
172
- .messages .message .avatar {
173
- position: absolute;
174
- z-index: 1;
175
- bottom: -15px;
176
- left: -35px;
177
- border-radius: 30px;
178
- width: 30px;
179
- height: 30px;
180
- overflow: hidden;
181
- margin: 0;
182
- padding: 0;
183
- border: 2px solid rgba(255, 255, 255, 0.24);
184
- }
185
-
186
- .messages .message .avatar.user {
187
- position: absolute;
188
- z-index: 1;
189
- bottom: -15px;
190
- left: 100%;
191
- border-radius: 30px;
192
- width: 30px;
193
- height: 30px;
194
- overflow: hidden;
195
- margin: 0;
196
- padding: 0;
197
- border: 2px solid rgba(255, 255, 255, 0.24);
198
- }
199
-
200
- .messages .message .avatar img {
201
- width: 100%;
202
- height: auto;
203
- }
204
-
205
- .messages .message.message-personal {
206
- float: right;
207
- color: #fff;
208
- text-align: right;
209
- background: linear-gradient(120deg, #248A52, #257287);
210
- border-radius: 10px 10px 0 10px;
211
- }
212
-
213
- .messages .message.message-personal::before {
214
- left: auto;
215
- right: 0;
216
- border-right: none;
217
- border-left: 5px solid transparent;
218
- border-top: 4px solid #257287;
219
- bottom: -4px;
220
- }
221
-
222
- .messages .message:last-child {
223
- margin-bottom: 30px;
224
- }
225
-
226
- .messages .message.new {
227
- transform: scale(0);
228
- transform-origin: 0 0;
229
- -webkit-animation: bounce 500ms linear both;
230
- animation: bounce 500ms linear both;
231
- }
232
-
233
- .messages .message.loading::before {
234
- position: absolute;
235
- top: 50%;
236
- left: 50%;
237
- transform: translate(-50%, -50%);
238
- content: "";
239
- display: block;
240
- width: 3px;
241
- height: 3px;
242
- border-radius: 50%;
243
- background: rgba(255, 255, 255, 0.5);
244
- z-index: 2;
245
- margin-top: 4px;
246
- -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
247
- animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
248
- border: none;
249
- -webkit-animation-delay: 0.15s;
250
- animation-delay: 0.15s;
251
- }
252
-
253
- .messages .message.loading span {
254
- display: block;
255
- font-size: 0;
256
- width: 20px;
257
- height: 10px;
258
- position: relative;
259
- }
260
-
261
- .messages .message.loading span::before {
262
- position: absolute;
263
- top: 50%;
264
- left: 50%;
265
- transform: translate(-50%, -50%);
266
- content: "";
267
- display: block;
268
- width: 3px;
269
- height: 3px;
270
- border-radius: 50%;
271
- background: rgba(255, 255, 255, 0.5);
272
- z-index: 2;
273
- margin-top: 4px;
274
- -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
275
- animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
276
- margin-left: -7px;
277
- }
278
-
279
- .messages .message.loading span::after {
280
- position: absolute;
281
- top: 50%;
282
- left: 50%;
283
- transform: translate(-50%, -50%);
284
- content: "";
285
- display: block;
286
- width: 3px;
287
- height: 3px;
288
- border-radius: 50%;
289
- background: rgba(255, 255, 255, 0.5);
290
- z-index: 2;
291
- margin-top: 4px;
292
- -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
293
- animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
294
- margin-left: 7px;
295
- -webkit-animation-delay: 0.3s;
296
- animation-delay: 0.3s;
297
- }
298
-
299
- /*--------------------
300
- Message Box
301
- --------------------*/
302
- .message-box {
303
- flex: 0 1 40px;
304
- width: 100%;
305
- background: rgba(0, 0, 0, 0.3);
306
- padding: 20px;
307
- position: relative;
308
- }
309
-
310
- .message-box .message-input {
311
- background: white;
312
- border: none;
313
- outline: none !important;
314
- resize: none;
315
- color: black;
316
- font-size: 16px;
317
- height: 40px;
318
- margin: 0;
319
- padding-right: 20px;
320
- padding-left: 10px;
321
- width: 92%;
322
- line-height: 25px;
323
- border-radius: 8px;
324
- }
325
-
326
- .message-box textarea:focus:-webkit-placeholder {
327
- color: transparent;
328
- }
329
-
330
- .message-box .message-submit {
331
- position: absolute;
332
- z-index: 1;
333
- color: #fff;
334
- border: none;
335
- background: #248A52;
336
- font-size: 14px;
337
- text-transform: uppercase;
338
- line-height: 1;
339
- padding: 14px 20px;
340
- border-radius: 10px;
341
- outline: none !important;
342
- transition: background 0.2s ease;
343
- margin-left: 12px;
344
- }
345
-
346
- .message-box .message-submit:hover {
347
- background: #1D7745;
348
- }
349
-
350
- /*--------------------
351
- Custom Srollbar
352
- --------------------*/
353
- .mCSB_scrollTools {
354
- margin: 1px -3px 1px 0;
355
- opacity: 0;
356
- }
357
-
358
- .mCSB_inside>.mCSB_container {
359
- margin-right: 0px;
360
- padding: 0 10px;
361
- }
362
-
363
- .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
364
- background-color: rgba(0, 0, 0, 0.5) !important;
365
- }
366
-
367
- /*--------------------
368
- Bounce
369
- --------------------*/
370
- @-webkit-keyframes bounce {
371
- 0% {
372
- transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
373
- }
374
-
375
- 4.7% {
376
- transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
377
- }
378
-
379
- 9.41% {
380
- transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
381
- }
382
-
383
- 14.11% {
384
- transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
385
- }
386
-
387
- 18.72% {
388
- transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
389
- }
390
-
391
- 24.32% {
392
- transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
393
- }
394
-
395
- 29.93% {
396
- transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
397
- }
398
-
399
- 35.54% {
400
- transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
401
- }
402
-
403
- 41.04% {
404
- transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
405
- }
406
-
407
- 52.15% {
408
- transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
409
- }
410
-
411
- 63.26% {
412
- transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
413
- }
414
-
415
- 85.49% {
416
- transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
417
- }
418
-
419
- 100% {
420
- transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
421
- }
422
- }
423
-
424
- @keyframes bounce {
425
- 0% {
426
- transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
427
- }
428
-
429
- 4.7% {
430
- transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
431
- }
432
-
433
- 9.41% {
434
- transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
435
- }
436
-
437
- 14.11% {
438
- transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
439
- }
440
-
441
- 18.72% {
442
- transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
443
- }
444
-
445
- 24.32% {
446
- transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
447
- }
448
-
449
- 29.93% {
450
- transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
451
- }
452
-
453
- 35.54% {
454
- transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
455
- }
456
-
457
- 41.04% {
458
- transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
459
- }
460
-
461
- 52.15% {
462
- transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
463
- }
464
-
465
- 63.26% {
466
- transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
467
- }
468
-
469
- 85.49% {
470
- transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
471
- }
472
-
473
- 100% {
474
- transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
475
- }
476
- }
477
-
478
- @-webkit-keyframes ball {
479
- from {
480
- transform: translateY(0) scaleY(0.8);
481
- }
482
-
483
- to {
484
- transform: translateY(-10px);
485
- }
486
- }
487
-
488
- @keyframes ball {
489
- from {
490
- transform: translateY(0) scaleY(0.8);
491
- }
492
-
493
- to {
494
- transform: translateY(-10px);
495
- }
496
- }
497
-
498
- .logo-upright {
499
- position: fixed;
500
- width: 10%;
501
- right: 12%;
502
- }
503
-
504
- .timendate {
505
- text-align: right;
506
- background: #fff;
507
- /* border-bottom: 1px solid #333; */
508
- box-shadow: 4px 3px 13px #eee;
509
- }
510
-
511
- .message.message-personal.new {
512
- margin-right: 35px;
513
- }
514
-
515
- h2.timetext {
516
- font-weight: normal;
517
- font-size: 18px;
518
- padding-right: 30px;
519
- }
520
- </style>
521
-
522
  <script>
523
  window.console = window.console || function (t) { };
524
  </script>
@@ -533,7 +25,7 @@ Bounce
533
  <div class="chat">
534
  <div class="chat-title">
535
  <h1>BSH</h1>
536
- <h2>Effortless living with Bosch home appliances chatbot - troubleshoot, maintain, and get answers with ease.</h2>
537
  <figure class="avatar">
538
  <img src="bot.png" />
539
  </figure>
@@ -610,22 +102,7 @@ Bounce
610
  }
611
  });
612
 
613
- var Fake = [
614
- 'Hi there, I\'m AI ML and you?',
615
- 'Nice to meet you',
616
- 'How are you?',
617
- 'Not too bad, thanks',
618
- 'What do you do?',
619
- 'That\'s awesome',
620
- 'Codepen is a nice place to stay',
621
- 'I think you\'re a nice person',
622
- 'Why do you think that?',
623
- 'Can you explain?',
624
- 'Anyway I\'ve gotta go now',
625
- 'It was a pleasure chat with you',
626
- 'Time to make a new codepen',
627
- 'Bye',
628
- ':)'];
629
 
630
 
631
  function fakeMessage() {
 
10
 
11
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans'>
12
  <link rel='stylesheet' href='css/jquery.mCustomScrollbar.min.css'>
13
+ <link rel="stylesheet" href="css/style.css">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  <script>
15
  window.console = window.console || function (t) { };
16
  </script>
 
25
  <div class="chat">
26
  <div class="chat-title">
27
  <h1>BSH</h1>
28
+ <h2>Bosch home appliances chatbot - troubleshoot, maintain, and get answers with ease.</h2>
29
  <figure class="avatar">
30
  <img src="bot.png" />
31
  </figure>
 
102
  }
103
  });
104
 
105
+ var Fake = ['I am Bob/Wiki'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
 
107
 
108
  function fakeMessage() {
style.css DELETED
@@ -1,28 +0,0 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }