Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 1 | body { |
Adrien Beraud | 8e25afb | 2017-04-19 01:38:57 +0200 | [diff] [blame] | 2 | margin: 0; |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 3 | overflow: hidden; |
Adrien Beraud | 8e25afb | 2017-04-19 01:38:57 +0200 | [diff] [blame] | 4 | } |
| 5 | |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame^] | 6 | #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; |
| 35 | |
| 36 | } |
| 37 | |
| 38 | .button-green { |
| 39 | background: #27ae60; |
| 40 | } |
| 41 | |
| 42 | .button-green:hover { |
| 43 | background: #219d55; |
| 44 | } |
| 45 | |
| 46 | .button-red { |
| 47 | background: #dc3a37; |
| 48 | } |
| 49 | |
| 50 | .button-red:hover { |
| 51 | background: #dc2719; |
| 52 | } |
| 53 | |
| 54 | #invitation #text h1 { |
| 55 | font-size: 1.5em; |
| 56 | } |
| 57 | |
| 58 | #invitation #text { |
| 59 | text-align: center; |
| 60 | width: 90%; |
| 61 | margin: auto; |
| 62 | margin-top: 10px; |
| 63 | font-size: 0.8em; |
| 64 | } |
| 65 | |
Sébastien Blin | 23c09e0 | 2017-07-28 16:19:17 -0400 | [diff] [blame] | 66 | a:link { |
| 67 | text-decoration: none; |
| 68 | color: #0e649b; |
| 69 | transition: all 0.2s ease-in-out; |
| 70 | border-bottom: dotted 1px; |
| 71 | } |
| 72 | |
| 73 | a:hover { |
| 74 | border: 0; |
| 75 | } |
| 76 | |
| 77 | .message_out #cardWrapper { |
| 78 | display: inline-block; |
| 79 | text-align: right; |
| 80 | width: 100%; |
| 81 | } |
| 82 | |
| 83 | .message_out #cardWrapper a { |
| 84 | border: 0; |
| 85 | } |
| 86 | |
| 87 | .message_out #containerVideo { |
| 88 | float: right; |
| 89 | } |
| 90 | |
| 91 | #playVideo { |
| 92 | background-color: rgba(0, 0, 0, 0.4); |
| 93 | height: 50px; |
| 94 | width: 50px; |
| 95 | border-radius: 5px; |
| 96 | float: right; |
| 97 | position: absolute; |
| 98 | top: calc(50% - 25px); |
| 99 | left: calc(50% - 25px); |
| 100 | z-index: 3; |
| 101 | } |
| 102 | |
| 103 | #containerVideo { |
| 104 | max-width: 350px; |
| 105 | position: relative; |
| 106 | } |
| 107 | |
| 108 | #playVideo svg { |
| 109 | height: 40px; |
| 110 | width: 40px; |
| 111 | margin: 5px; |
| 112 | } |
| 113 | |
Adrien Beraud | 8e25afb | 2017-04-19 01:38:57 +0200 | [diff] [blame] | 114 | #container { |
| 115 | position: relative; |
| 116 | height: 100%; |
| 117 | width: 100%; |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 118 | display: flex; |
| 119 | flex-direction: column; |
| 120 | margin: 0; |
| 121 | padding: 0; |
AmarOk | d55d85e | 2017-07-14 09:44:05 -0400 | [diff] [blame] | 122 | justify-content: flex-end; |
Adrien Beraud | 8e25afb | 2017-04-19 01:38:57 +0200 | [diff] [blame] | 123 | } |
| 124 | |
| 125 | #messages { |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 126 | position: relative; |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 127 | z-index: 0; |
Adrien Beraud | 8e25afb | 2017-04-19 01:38:57 +0200 | [diff] [blame] | 128 | width: 100%; |
Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 129 | overflow-y: scroll; |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 130 | height: auto; |
AmarOk | d55d85e | 2017-07-14 09:44:05 -0400 | [diff] [blame] | 131 | max-height: calc(100% - 50px); |
Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 132 | } |
| 133 | |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 134 | #sendMessage { |
| 135 | display: flex; |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 136 | position: relative; |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 137 | border-top : 2px solid #d3d3d3; |
AmarOk | 6286ad4 | 2017-07-14 12:11:08 -0400 | [diff] [blame] | 138 | margin-left: 10px; |
| 139 | margin-right: 10px; |
| 140 | padding-left: 8px; |
| 141 | overflow: hidden; |
| 142 | padding-top: 8px; |
| 143 | padding-bottom: 8px; |
| 144 | align-items: center; |
| 145 | |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 146 | } |
| 147 | |
| 148 | #message { |
AmarOk | d55d85e | 2017-07-14 09:44:05 -0400 | [diff] [blame] | 149 | flex: 1; |
AmarOk | 6286ad4 | 2017-07-14 12:11:08 -0400 | [diff] [blame] | 150 | margin-right: 10px; |
| 151 | border: 0; |
| 152 | overflow-y: scroll; |
| 153 | color: black; |
| 154 | max-height: 150px; |
| 155 | padding-left: 8px; |
| 156 | resize: none; |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 157 | } |
| 158 | |
| 159 | #message:focus, |
| 160 | #message.focus { |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 161 | outline: none; |
| 162 | } |
| 163 | |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame^] | 164 | #container[disabled] { |
| 165 | background-color: #ccc; |
| 166 | } |
| 167 | |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 168 | input[placeholder], [placeholder], *[placeholder] { |
| 169 | color: #d3d3d3; |
| 170 | } |
| 171 | |
| 172 | #sendBtn { |
| 173 | border-radius: 50%; |
| 174 | border: 0; |
| 175 | width: 40px; |
| 176 | height: 40px; |
AmarOk | 6286ad4 | 2017-07-14 12:11:08 -0400 | [diff] [blame] | 177 | align-self: center; |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 178 | transition: all 0.3s ease; |
| 179 | } |
| 180 | |
| 181 | #sendBtn.hover, |
| 182 | #sendBtn:hover { |
| 183 | background: #bae5f0; |
| 184 | } |
| 185 | |
| 186 | #sendBtn.hover svg, |
| 187 | #sendBtn:hover svg { |
| 188 | fill: black; |
| 189 | } |
| 190 | |
| 191 | #sendMessage svg { |
| 192 | fill: #666; |
| 193 | padding: 5px; |
| 194 | width: 100%; |
| 195 | height: 100%; |
| 196 | transition: all 0.3s ease; |
| 197 | } |
| 198 | |
| 199 | |
Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 200 | .wc { |
| 201 | will-change: transform; |
| 202 | } |
| 203 | |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 204 | .status_circle { |
| 205 | fill: #A0A0A0; |
| 206 | -webkit-animation: circle-dance; |
| 207 | -webkit-animation-duration: 0.8s; |
| 208 | -webkit-animation-iteration-count: infinite; |
| 209 | -webkit-animation-direction: alternate; |
| 210 | -webkit-animation-timing-function: ease-in-out; |
| 211 | } |
| 212 | |
| 213 | .anim-first { |
| 214 | -webkit-animation-delay: 0.7s; |
| 215 | } |
| 216 | |
| 217 | .anim-second { |
| 218 | -webkit-animation-delay: 0.9s; |
| 219 | } |
| 220 | |
| 221 | .anim-third { |
| 222 | -webkit-animation-delay: 1.1s; |
| 223 | } |
| 224 | |
| 225 | @-webkit-keyframes circle-dance { |
| 226 | 0%,50% { |
| 227 | -webkit-transform: translateY(0); |
| 228 | fill: #A0A0A0; |
| 229 | } |
| 230 | 100% { |
| 231 | -webkit-transform: translateY(-8px); |
| 232 | fill: #000; |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | .status-check { |
Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 237 | stroke-dasharray: 17; |
| 238 | stroke-dashoffset: 17; |
| 239 | -webkit-animation: dash-check; |
| 240 | -webkit-animation-duration: 0.4s; |
| 241 | -webkit-animation-delay: 0.7s; |
| 242 | -webkit-animation-fill-mode: forwards; |
| 243 | -webkit-animation-timing-function: ease-in-out; |
| 244 | display: none; |
| 245 | } |
| 246 | |
| 247 | .message--sent .status-check { |
| 248 | display: inline-block; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 249 | } |
| 250 | |
| 251 | @-webkit-keyframes dash-check{ |
| 252 | from { |
| 253 | stroke-dashoffset: 17; |
| 254 | } |
| 255 | to { |
| 256 | stroke-dashoffset: 0; |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | .status-x { |
| 261 | stroke-dasharray: 12; |
| 262 | stroke-dashoffset: 12; |
| 263 | -webkit-animation: dash-x; |
| 264 | -webkit-animation-duration: 0.2s; |
| 265 | -webkit-animation-fill-mode: forwards; |
| 266 | -webkit-animation-timing-function: ease-in-out; |
| 267 | } |
| 268 | |
| 269 | .x-first { |
| 270 | -webkit-animation-delay: 0.7s; |
| 271 | } |
| 272 | |
| 273 | .x-second { |
| 274 | -webkit-animation-delay: 0.9s; |
| 275 | } |
| 276 | |
| 277 | @-webkit-keyframes dash-x{ |
| 278 | from { |
| 279 | stroke-dashoffset: 12; |
| 280 | } |
| 281 | to { |
| 282 | stroke-dashoffset: 0; |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | .message_wrapper { |
| 287 | transform: scale(0); |
Sébastien Blin | 23c09e0 | 2017-07-28 16:19:17 -0400 | [diff] [blame] | 288 | max-width: 70%; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 289 | margin: 10px 0; |
| 290 | display: inline-block; |
Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 291 | padding: 10px; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 292 | border-radius: 10px; |
| 293 | position: relative; |
| 294 | -webkit-animation: talk; |
| 295 | -webkit-animation-duration: 0.3s; |
| 296 | -webkit-animation-delay: 0.1s; |
| 297 | -webkit-animation-fill-mode: forwards; |
| 298 | -webkit-animation-timing-function: ease-in-out; |
| 299 | } |
| 300 | |
| 301 | .message { |
| 302 | font: 0.875em "Open sans",Helvetica,"Segoe UI",sans-serif; |
| 303 | margin: 0; |
| 304 | display: flex; |
| 305 | justify-content: flex-start; |
| 306 | align-items: top; |
| 307 | overflow: hidden; |
| 308 | } |
| 309 | |
Sébastien Blin | 23c09e0 | 2017-07-28 16:19:17 -0400 | [diff] [blame] | 310 | #msg_content img { |
| 311 | max-width: 300px; |
| 312 | align-content: center; |
| 313 | } |
| 314 | |
| 315 | #msg_content img:first-of-type { |
| 316 | margin: 5px; |
| 317 | } |
| 318 | |
AmarOk | 6286ad4 | 2017-07-14 12:11:08 -0400 | [diff] [blame] | 319 | pre { |
| 320 | font : inherit; |
| 321 | font-family : inherit; |
| 322 | font-size : inherit; |
| 323 | font-style : inherit; |
| 324 | font-variant : inherit; |
| 325 | font-weight : inherit; |
| 326 | margin: 0; |
| 327 | padding: 0; |
| 328 | } |
| 329 | |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 330 | .message_out { |
| 331 | flex-direction: row-reverse; |
| 332 | } |
| 333 | |
Sébastien Blin | c6f3a26 | 2017-07-28 16:12:24 -0400 | [diff] [blame] | 334 | .timestamp |
| 335 | { |
| 336 | display: flex; |
| 337 | justify-content: flex-start; |
| 338 | color: #333; |
| 339 | font-size: 10px; |
| 340 | padding: 5px; |
| 341 | } |
| 342 | |
| 343 | .timestamp_out { |
| 344 | flex-direction: row-reverse; |
| 345 | } |
| 346 | |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 347 | .message_sender { |
| 348 | display: none; |
| 349 | } |
| 350 | |
| 351 | .sender_image { |
| 352 | border-radius: 50%; |
| 353 | transition: transform 0.2s ease-in-out; |
Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 354 | margin: 10px; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 355 | } |
| 356 | |
| 357 | .message_in .sender_image { |
| 358 | -webkit-animation-name: enter-stage-left; |
| 359 | -webkit-animation-duration: 0.2s; |
| 360 | -webkit-animation-timing-function: ease-in-out; |
| 361 | } |
| 362 | |
| 363 | .message_out .sender_image { |
| 364 | -webkit-animation-name: enter-stage-right; |
| 365 | -webkit-animation-duration: 0.2s; |
| 366 | -webkit-animation-timing-function: ease-in-out; |
| 367 | } |
| 368 | |
| 369 | @-webkit-keyframes enter-stage-left { |
| 370 | from { |
| 371 | transform: translateX(-100%); |
| 372 | } |
| 373 | to { |
| 374 | transform: translateX(0); |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | @-webkit-keyframes enter-stage-right { |
| 379 | from { |
| 380 | transform: translateX(100%); |
| 381 | } |
| 382 | to { |
| 383 | transform: translateX(0); |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | .message_out > .message_wrapper { |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 388 | background-color: #cfebf5; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 389 | border-top-right-radius: 0; |
| 390 | transform-origin: top right; |
| 391 | } |
| 392 | |
| 393 | .message_out + .message_out > .message_wrapper { |
| 394 | border-top-right-radius: 10px; |
| 395 | } |
| 396 | |
| 397 | .message_in > .message_wrapper { |
| 398 | background-color: #DEDEE0; |
| 399 | border-top-left-radius: 0; |
| 400 | transform-origin: top left; |
| 401 | } |
| 402 | |
| 403 | .message_in + .message_in > .message_wrapper { |
| 404 | border-top-left-radius: 10px; |
| 405 | } |
| 406 | |
| 407 | .message_timestamp { |
Sébastien Blin | c6f3a26 | 2017-07-28 16:12:24 -0400 | [diff] [blame] | 408 | color: #333; |
| 409 | font-size: 0.8em; |
| 410 | margin-top: 0.5em; |
| 411 | transition: opacity 0.3s ease-in-out; |
| 412 | line-height: 1em; |
| 413 | display: inline-block; |
| 414 | opacity: 0; |
| 415 | float: right; |
| 416 | } |
| 417 | |
| 418 | .message_wrapper:hover .message_timestamp { |
| 419 | opacity: 1; |
Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 420 | } |
| 421 | |
| 422 | .sent-checkmark { |
Sébastien Blin | c6f3a26 | 2017-07-28 16:12:24 -0400 | [diff] [blame] | 423 | margin-left: 0.313em; |
| 424 | float: right; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 425 | } |
| 426 | |
| 427 | @-webkit-keyframes fade-in { |
| 428 | from { |
| 429 | opacity: 0; |
| 430 | } |
| 431 | to { |
| 432 | opacity: 1; |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | .message_text { |
| 437 | word-wrap: break-word; |
Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 438 | display: block; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 439 | } |
| 440 | |
| 441 | @-webkit-keyframes talk { |
| 442 | from { |
| 443 | transform: scale(0); |
| 444 | } |
| 445 | to { |
| 446 | transform: scale(1); |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | .message_in > .message_wrapper:before { |
| 451 | content: ""; |
| 452 | width: 10px; |
| 453 | height: 10px; |
| 454 | position: absolute; |
| 455 | left: -10px; |
| 456 | top: 0; |
| 457 | 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"); |
| 458 | transform-origin: top left; |
| 459 | } |
| 460 | |
| 461 | .message_in + .message_in > .message_wrapper:before { |
| 462 | display: none; |
| 463 | } |
| 464 | |
| 465 | .message_out + .message_out > .message_wrapper:after { |
| 466 | display: none; |
| 467 | } |
| 468 | |
| 469 | .message_out > .message_wrapper:after { |
| 470 | content: ""; |
| 471 | width: 10px; |
| 472 | height: 10px; |
| 473 | position: absolute; |
| 474 | right: -10px; |
| 475 | top: 0; |
AmarOk | b425324 | 2017-07-13 11:21:39 -0400 | [diff] [blame] | 476 | 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"); |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 477 | transform-origin: top right; |
| 478 | } |
| 479 | |
| 480 | .message_delivery_status { |
| 481 | margin: 10px 10px; |
| 482 | color: #A0A0A0; |
| 483 | opacity: 0; |
| 484 | -webkit-animation-name: fade-in; |
| 485 | -webkit-animation-duration: 0.2s; |
| 486 | -webkit-animation-timing-function: ease-in-out; |
| 487 | -webkit-animation-delay: 0.4s; |
| 488 | -webkit-animation-fill-mode: forwards; |
| 489 | transition: opacity 0.5s ease-in-out; |
| 490 | } |
| 491 | |
| 492 | .message_in + .message_in .sender_image { |
| 493 | opacity: 0; |
| 494 | } |
| 495 | |
| 496 | .message_out + .message_out .sender_image { |
| 497 | opacity: 0; |
| 498 | } |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame^] | 499 | |
| 500 | .message_type_contact, |
| 501 | .message_type_call { |
| 502 | width: 100%; |
| 503 | } |
| 504 | |
| 505 | .message_type_call .sent-checkmark, |
| 506 | .message_type_call .message_sender, |
| 507 | .message_type_call .message_delivery_status, |
| 508 | .message_type_call .message_timestamp, |
| 509 | .message_type_call .message_sender_image, |
| 510 | .message_type_contact .sent-checkmark, |
| 511 | .message_type_contact .message_sender, |
| 512 | .message_type_contact .message_delivery_status, |
| 513 | .message_type_contact .message_timestamp, |
| 514 | .message_type_contact .message_sender_image { |
| 515 | visibility: hidden; |
| 516 | display: none; |
| 517 | } |
| 518 | |
| 519 | /* NOTE: This rule is temporary to deactivate status for message while the |
| 520 | patch for re-implementing status for interactions is not in LRC */ |
| 521 | .message_delivery_status |
| 522 | { |
| 523 | visibility: hidden; |
| 524 | display: none; |
| 525 | } |
| 526 | |
| 527 | .message_type_contact .message_wrapper:before, |
| 528 | .message_type_call .message_wrapper:before { |
| 529 | display: none; |
| 530 | } |
| 531 | |
| 532 | .message_type_call .message_wrapper:after, |
| 533 | .message_type_contact .message_wrapper:after { |
| 534 | display: none; |
| 535 | } |
| 536 | |
| 537 | .message_type_call .message_wrapper, |
| 538 | .message_type_contact .message_wrapper { |
| 539 | background: #fff; |
| 540 | width: 100%; |
| 541 | max-width: 100%; |
| 542 | text-align: center; |
| 543 | margin: 0; |
| 544 | padding: 0; |
| 545 | color: #888; |
| 546 | font-style: italic; |
| 547 | border-radius: 0; |
| 548 | } |
| 549 | |
| 550 | .message_type_call .message_text, |
| 551 | .message_type_contact .message_text { |
| 552 | overflow: hidden; |
| 553 | text-align: center; |
| 554 | padding-bottom: 5px; |
| 555 | margin-bottom: 5px; |
| 556 | border-bottom: 1px solid #ccc; |
| 557 | margin-left: 20px; |
| 558 | } |
| 559 | |
| 560 | .message_type_call .message_text { |
| 561 | border-bottom: 1px dotted #ccc; |
| 562 | } |
| 563 | |
| 564 | #green { |
| 565 | color: green; |
| 566 | } |
| 567 | |
| 568 | #red { |
| 569 | color: red; |
| 570 | font-size: 1.25em; |
| 571 | } |