Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 1 | /** Variable and font definitions */ |
Adrien Beraud | 8e25afb | 2017-04-19 01:38:57 +0200 | [diff] [blame] | 2 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 3 | :root { |
| 4 | /* color definitions */ |
| 5 | --ring-light-blue: rgba(59, 193, 211, 0.3); |
| 6 | --ring-dark-blue: #003b4e; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 7 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 8 | /* main properties */ |
| 9 | --bg-color: #f2f2f2; /* same as macOS client */ |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame] | 10 | |
Hugo Lefeuvre | edad883 | 2018-05-14 16:36:06 -0400 | [diff] [blame] | 11 | /* navbar properties */ |
| 12 | --navbar-height: 40px; |
| 13 | --navbar-padding-top: 8px; |
| 14 | --navbar-padding-bottom: var(--navbar-padding-top); |
Hugo Lefeuvre | 368c47c | 2018-05-29 15:50:07 -0400 | [diff] [blame] | 15 | |
| 16 | /* message bar properties */ |
| 17 | --textarea-max-height: 150px; |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame] | 18 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 19 | /* button properties */ |
| 20 | --action-icon-color: var(--ring-dark-blue); |
Hugo Lefeuvre | edad883 | 2018-05-14 16:36:06 -0400 | [diff] [blame] | 21 | --deactivated-icon-color: #BEBEBE; |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 22 | --action-icon-hover-color: var(--ring-light-blue); |
Hugo Lefeuvre | edad883 | 2018-05-14 16:36:06 -0400 | [diff] [blame] | 23 | --action-critical-icon-hover-color: rgba(211, 77, 59, 0.3); /* complementary color of ring light blue */ |
| 24 | --action-critical-icon-press-color: rgba(211, 77, 59, 0.5); |
| 25 | --action-critical-icon-color: #4E1300; |
| 26 | --non-action-icon-color: #212121; |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 27 | --action-icon-press-color: rgba(59, 193, 211, 0.5); |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame] | 28 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 29 | /* hairline properties */ |
| 30 | --hairline-color: #d9d9d9; |
| 31 | --hairline-thickness: 0.2px; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 32 | } |
| 33 | |
Hugo Lefeuvre | 9186c60 | 2018-05-03 10:44:15 -0400 | [diff] [blame] | 34 | @font-face { |
| 35 | font-family: emoji; |
| 36 | |
| 37 | /* Fonts for text outside emoji blocks */ |
| 38 | src: local('Open sans'), |
| 39 | local('Helvetica'), |
| 40 | local('Segoe UI'), |
| 41 | local('sans-serif'); |
| 42 | } |
| 43 | |
| 44 | @font-face { |
| 45 | font-family: emoji; |
| 46 | |
| 47 | src: local('Noto Color Emoji'), |
| 48 | local('Android Emoji'), |
| 49 | local('Twitter Color Emoji'); |
| 50 | |
| 51 | /* Emoji unicode blocks */ |
| 52 | unicode-range: U+1F300-1F5FF, U+1F600-1F64F, U+1F680-1F6FF, U+2600-26FF; |
| 53 | } |
| 54 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 55 | /** Body */ |
| 56 | |
| 57 | body { |
Hugo Lefeuvre | 368c47c | 2018-05-29 15:50:07 -0400 | [diff] [blame] | 58 | --navbar-size: calc(var(--navbar-height) + var(--navbar-padding-top) + var(--navbar-padding-bottom)); |
| 59 | --messagebar-size: 57px; /* FIXME clean this up */ |
| 60 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 61 | margin: 0; |
| 62 | overflow: hidden; |
| 63 | background-color: var(--bg-color); |
Hugo Lefeuvre | edad883 | 2018-05-14 16:36:06 -0400 | [diff] [blame] | 64 | padding-top: var(--navbar-size); |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 65 | padding-bottom: var(--messagebar-size); |
Hugo Lefeuvre | 368c47c | 2018-05-29 15:50:07 -0400 | [diff] [blame] | 66 | |
| 67 | /* disable selection highlight because it looks very bad */ |
| 68 | -webkit-user-select: none; |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 69 | } |
| 70 | |
Hugo Lefeuvre | edad883 | 2018-05-14 16:36:06 -0400 | [diff] [blame] | 71 | /** Navbar */ |
| 72 | |
| 73 | .navbar-wrapper { |
| 74 | /* on top, over everything and full width */ |
| 75 | position: fixed; |
| 76 | left:0; right:0; |
| 77 | z-index: 500; |
| 78 | top: 0; |
| 79 | } |
| 80 | |
| 81 | #navbar { |
| 82 | background-color: var(--bg-color); |
| 83 | padding-right: 8px; |
| 84 | padding-left: 8px; |
| 85 | padding-top: var(--navbar-padding-top); |
| 86 | padding-bottom: var(--navbar-padding-bottom); |
| 87 | height: var(--navbar-height); |
| 88 | overflow: hidden; |
| 89 | align-items: center; |
| 90 | |
| 91 | /* takes whole width */ |
| 92 | left:0; right:0; |
| 93 | |
| 94 | /* hairline */ |
| 95 | border-bottom: var(--hairline-thickness) solid var(--hairline-color); |
Hugo Lefeuvre | edad883 | 2018-05-14 16:36:06 -0400 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | #navbar.hiddenState { |
| 99 | visibility: hidden; |
| 100 | } |
| 101 | |
| 102 | .svgicon { |
| 103 | display: block; |
| 104 | margin: auto; |
| 105 | height: 100%; |
| 106 | } |
| 107 | |
| 108 | .nav-button { |
| 109 | width: 40px; |
| 110 | height: 40px; |
| 111 | align-self: center; |
| 112 | display: flex; |
| 113 | cursor: pointer; |
| 114 | border-radius: 50%; |
| 115 | } |
| 116 | |
| 117 | .nav-button.deactivated { |
| 118 | width: 40px; |
| 119 | height: 40px; |
| 120 | align-self: center; |
| 121 | display: flex; |
| 122 | border-radius: 50%; |
| 123 | cursor: auto; |
| 124 | } |
| 125 | |
| 126 | .nav-right { |
| 127 | float: right; |
| 128 | } |
| 129 | |
| 130 | .nav-left { |
| 131 | float: left; |
| 132 | } |
| 133 | |
| 134 | #nav-contactid { |
| 135 | margin: 0px; |
| 136 | margin-left: 5px; |
| 137 | padding: 0px; |
| 138 | height: 100%; |
| 139 | font-family: emoji; |
| 140 | |
Hugo Lefeuvre | 368c47c | 2018-05-29 15:50:07 -0400 | [diff] [blame] | 141 | /* enable selection (it is globally disabled in the body) */ |
Hugo Lefeuvre | edad883 | 2018-05-14 16:36:06 -0400 | [diff] [blame] | 142 | -webkit-user-select: auto; |
| 143 | } |
| 144 | |
| 145 | #nav-contactid.oneEntry { |
| 146 | display: flex; |
| 147 | justify-content: center; |
| 148 | align-items: center; |
| 149 | } |
| 150 | |
| 151 | #nav-contactid-alias { |
| 152 | font-size: 14px; |
| 153 | font-weight: bold; |
| 154 | margin: 5px 0px 3px; |
| 155 | } |
| 156 | |
| 157 | #nav-contactid-bestId { |
| 158 | font-size: 11px; |
| 159 | } |
| 160 | |
| 161 | .oneEntry #nav-contactid-bestId { |
| 162 | visibility: hidden; |
| 163 | } |
| 164 | |
| 165 | .action-button svg { |
| 166 | fill: var(--action-icon-color); |
| 167 | } |
| 168 | |
| 169 | .action-button.deactivated svg { |
| 170 | fill: var(--deactivated-icon-color); |
| 171 | } |
| 172 | |
| 173 | .non-action-button svg { |
| 174 | fill: var(--non-action-icon-color); |
| 175 | } |
| 176 | |
| 177 | .non-action-button:hover, .action-button:hover { |
| 178 | background: var(--action-icon-hover-color); |
| 179 | } |
| 180 | |
| 181 | .non-action-button:active, .action-button:active { |
| 182 | background: var(--action-icon-press-color); |
| 183 | } |
| 184 | |
| 185 | .action-button.deactivated:hover, .action-button.deactivated:active { |
| 186 | background: none; |
| 187 | } |
| 188 | |
| 189 | .action-critical-button svg { |
| 190 | fill: var(--action-critical-icon-color); |
| 191 | } |
| 192 | |
| 193 | .action-critical-button:hover { |
| 194 | background: var(--action-critical-icon-hover-color); |
| 195 | } |
| 196 | |
| 197 | .action-critical-button:active { |
| 198 | background: var(--action-critical-icon-press-color); |
| 199 | } |
| 200 | |
| 201 | #navbar #addBannedContactButton, #navbar #addToConversationsButton { |
| 202 | display: none; |
| 203 | } |
| 204 | |
| 205 | #navbar.onBannedState #addToConvButton, #navbar.onBannedState #callButtons, #navbar.onBannedState #addToConversationsButton { |
| 206 | display: none; |
| 207 | } |
| 208 | |
| 209 | #navbar.onBannedState #addBannedContactButton { |
| 210 | display: flex; |
| 211 | } |
| 212 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 213 | /** Invitation bar */ |
| 214 | |
| 215 | #invitation { |
| 216 | visibility: hidden; |
| 217 | background: var(--ring-light-blue); |
| 218 | position: absolute; |
| 219 | width: 100%; |
| 220 | |
| 221 | /* hairline */ |
| 222 | border-bottom: var(--hairline-thickness) solid var(--hairline-color); |
| 223 | } |
| 224 | |
| 225 | #actions |
| 226 | { |
| 227 | margin: 10px; |
| 228 | list-style: none; |
| 229 | display: flex; |
| 230 | align-items: center; |
| 231 | justify-content: center; |
| 232 | } |
| 233 | |
| 234 | .invitation-button, |
| 235 | .flat-button { |
| 236 | margin: 5px; |
| 237 | border: 0; |
| 238 | border-radius: 5px; |
| 239 | transition: all 0.3s ease; |
Hugo Lefeuvre | edad883 | 2018-05-14 16:36:06 -0400 | [diff] [blame] | 240 | color: #f9f9f9; |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 241 | padding: 10px 20px 10px 20px; |
| 242 | vertical-align: middle; |
| 243 | cursor: pointer; |
| 244 | } |
| 245 | |
| 246 | .button-green { |
| 247 | background: #27ae60; |
| 248 | } |
| 249 | |
| 250 | .button-green:hover { |
| 251 | background: #1f8b4c; |
| 252 | } |
| 253 | |
| 254 | .button-red { |
| 255 | background: #dc3a37; |
| 256 | } |
| 257 | |
| 258 | .button-red:hover { |
| 259 | background: #b02e2c; |
| 260 | } |
| 261 | |
| 262 | #invitation #text h1 { |
| 263 | font-size: 1.5em; |
| 264 | } |
| 265 | |
| 266 | #invitation #text { |
| 267 | text-align: center; |
| 268 | width: 90%; |
| 269 | margin: auto; |
| 270 | margin-top: 10px; |
| 271 | font-size: 0.8em; |
| 272 | } |
| 273 | |
| 274 | /** Messaging bar */ |
| 275 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 276 | #sendMessage { |
| 277 | background-color: var(--bg-color); |
| 278 | display: flex; |
| 279 | position: relative; |
| 280 | padding-right: 10px; |
| 281 | padding-left: 8px; |
| 282 | overflow: hidden; |
| 283 | padding-top: 8px; |
| 284 | padding-bottom: 8px; |
| 285 | align-items: center; |
| 286 | |
| 287 | position: fixed; |
| 288 | left:0; right:0; |
| 289 | z-index: 500; |
| 290 | bottom: 0; |
| 291 | /* hairline */ |
| 292 | border-top: var(--hairline-thickness) solid var(--hairline-color); |
| 293 | } |
| 294 | |
| 295 | #sendMessage.hiddenState { |
| 296 | visibility: hidden; |
| 297 | } |
| 298 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 299 | #message { |
Hugo Lefeuvre | 368c47c | 2018-05-29 15:50:07 -0400 | [diff] [blame] | 300 | font-family: emoji; |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 301 | flex: 1; |
| 302 | background-color: var(--bg-color); |
| 303 | border: 0; |
| 304 | overflow-y: scroll; |
| 305 | color: black; |
Hugo Lefeuvre | 368c47c | 2018-05-29 15:50:07 -0400 | [diff] [blame] | 306 | max-height: var(--textarea-max-height); |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 307 | margin-right: 10px; |
| 308 | resize: none; |
Hugo Lefeuvre | 368c47c | 2018-05-29 15:50:07 -0400 | [diff] [blame] | 309 | |
| 310 | /* enable selection (it is globally disabled in the body) */ |
| 311 | -webkit-user-select: auto; |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 312 | } |
| 313 | |
| 314 | #message:focus, |
| 315 | #message.focus { |
| 316 | outline: none; |
| 317 | } |
| 318 | |
| 319 | #container[disabled] { |
| 320 | background-color: #ccc; |
| 321 | } |
| 322 | |
| 323 | input[placeholder], [placeholder], *[placeholder] { |
| 324 | color: #d3d3d3; |
| 325 | } |
| 326 | |
| 327 | /** Main chat view */ |
| 328 | |
Hugo Lefeuvre | f9bb72b | 2018-07-03 14:11:17 -0400 | [diff] [blame] | 329 | #lazyloading-icon { |
| 330 | margin: auto; |
| 331 | margin-bottom: 10px; |
| 332 | margin-top: 5px; |
| 333 | vertical-align: center; |
| 334 | width: 30px; |
| 335 | display: flex; |
| 336 | } |
| 337 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 338 | #container { |
| 339 | position: relative; |
| 340 | height: 100%; |
| 341 | width: 100%; |
| 342 | display: flex; |
| 343 | flex-direction: column; |
| 344 | margin: 0; |
| 345 | padding: 0; |
| 346 | justify-content: flex-end; |
| 347 | } |
| 348 | |
| 349 | a:link { |
| 350 | text-decoration: none; |
| 351 | color: #0e649b; |
| 352 | transition: all 0.2s ease-in-out; |
| 353 | border-bottom: dotted 1px; |
| 354 | } |
| 355 | |
| 356 | a:hover { |
| 357 | border: 0; |
| 358 | } |
| 359 | |
| 360 | #messages { |
| 361 | position: relative; |
| 362 | z-index: 0; |
| 363 | width: 100%; |
| 364 | overflow-y: scroll; |
| 365 | height: auto; |
| 366 | padding-top: 0.5em; |
Hugo Lefeuvre | 0babe2b | 2018-06-27 12:14:27 -0400 | [diff] [blame] | 367 | } |
| 368 | |
| 369 | .last-message { |
Hugo Lefeuvre | f9bb72b | 2018-07-03 14:11:17 -0400 | [diff] [blame] | 370 | padding-bottom: 1.5em !important; |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 371 | } |
| 372 | |
| 373 | /* General messages */ |
| 374 | |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 375 | .message_wrapper { |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 376 | max-width: 70%; |
| 377 | margin: 8px 0 0 0; |
| 378 | display: inline-block; |
| 379 | padding: 1em; |
| 380 | border-radius: 10px; |
| 381 | position: relative; |
Hugo Lefeuvre | 8127fe1 | 2018-05-23 10:53:12 -0400 | [diff] [blame] | 382 | } |
| 383 | |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 384 | .message { |
Hugo Lefeuvre | 9186c60 | 2018-05-03 10:44:15 -0400 | [diff] [blame] | 385 | font: 0.875em emoji; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 386 | margin: 0; |
| 387 | display: flex; |
| 388 | justify-content: flex-start; |
| 389 | align-items: top; |
| 390 | overflow: hidden; |
Hugo Lefeuvre | 368c47c | 2018-05-29 15:50:07 -0400 | [diff] [blame] | 391 | |
| 392 | /* enable selection (it is globally disabled in the body) */ |
| 393 | -webkit-user-select: auto; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 394 | } |
| 395 | |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 396 | .menu_interaction |
| 397 | { |
| 398 | margin: 5px; |
| 399 | padding: 10px; |
| 400 | padding-top: 0; |
| 401 | opacity: 0; |
| 402 | height: 20px; |
| 403 | transition:visibility 0.3s linear,opacity 0.3s linear; |
| 404 | } |
| 405 | |
| 406 | .message_type_contact .menu_interaction |
| 407 | { |
| 408 | display: none; |
| 409 | visibility: hidden; |
| 410 | } |
| 411 | |
| 412 | .message_type_call .menu_interaction |
| 413 | { |
| 414 | margin: auto; |
| 415 | padding: 0; |
| 416 | vertical-align: center; |
| 417 | } |
| 418 | |
| 419 | .message_type_call .menu_interaction .dropdown |
| 420 | { |
| 421 | margin-top: -17px; |
| 422 | } |
| 423 | |
| 424 | .message:hover .menu_interaction |
| 425 | { |
| 426 | display: block; |
| 427 | opacity: 1; |
| 428 | } |
| 429 | |
| 430 | .dropdown { |
| 431 | display: none; |
| 432 | z-index: 1; |
| 433 | position: absolute; |
| 434 | background-color: #fff; |
| 435 | padding-top: 3px; |
| 436 | padding-bottom: 3px; |
| 437 | } |
| 438 | |
| 439 | .dropdown div |
| 440 | { |
| 441 | color: #111; |
| 442 | padding: 10px; |
| 443 | } |
| 444 | |
| 445 | .dropdown div:hover |
| 446 | { |
| 447 | background-color: #ddd; |
| 448 | } |
| 449 | |
| 450 | #showmenu:checked ~ .dropdown{ |
| 451 | display:block; |
| 452 | } |
| 453 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 454 | .message_in { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 455 | padding-left: 25%; |
AmarOk | 6286ad4 | 2017-07-14 12:11:08 -0400 | [diff] [blame] | 456 | } |
| 457 | |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 458 | .message_out { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 459 | padding-right: 25%; |
| 460 | flex-direction: row-reverse; |
Sébastien Blin | c6f3a26 | 2017-07-28 16:12:24 -0400 | [diff] [blame] | 461 | } |
| 462 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 463 | .message_in + .message_in .sender_image { |
| 464 | opacity: 0; |
| 465 | } |
| 466 | |
| 467 | .message_out + .message_out .sender_image { |
| 468 | opacity: 0; |
| 469 | } |
| 470 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 471 | .message_delivery_status { |
| 472 | margin: 10px 10px; |
| 473 | color: #A0A0A0; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 474 | } |
| 475 | |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 476 | .message_sender { |
| 477 | display: none; |
| 478 | } |
| 479 | |
| 480 | .sender_image { |
| 481 | border-radius: 50%; |
Frédéric Guimont | 3e5f1b6 | 2016-11-22 11:41:38 -0500 | [diff] [blame] | 482 | margin: 10px; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 483 | } |
| 484 | |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 485 | .message_out > .message_wrapper { |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 486 | background-color: #cfd8dc; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 487 | border-top-right-radius: 0; |
| 488 | transform-origin: top right; |
| 489 | } |
| 490 | |
| 491 | .message_out + .message_out > .message_wrapper { |
| 492 | border-top-right-radius: 10px; |
| 493 | } |
| 494 | |
| 495 | .message_in > .message_wrapper { |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 496 | background-color: #fdfdfd; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 497 | border-top-left-radius: 0; |
| 498 | transform-origin: top left; |
| 499 | } |
| 500 | |
| 501 | .message_in + .message_in > .message_wrapper { |
| 502 | border-top-left-radius: 10px; |
| 503 | } |
| 504 | |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 505 | |
| 506 | @-webkit-keyframes fade-in { |
| 507 | from { |
| 508 | opacity: 0; |
| 509 | } |
| 510 | to { |
| 511 | opacity: 1; |
| 512 | } |
| 513 | } |
| 514 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 515 | .timestamp { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 516 | display: flex; |
| 517 | justify-content: flex-start; |
| 518 | color: #333; |
| 519 | font-size: 10px; |
| 520 | padding: 5px; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 521 | } |
| 522 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 523 | .timestamp_out { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 524 | flex-direction: row-reverse; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 525 | } |
| 526 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 527 | /* Buttons */ |
| 528 | |
| 529 | .flat-button { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 530 | flex: 1; |
| 531 | padding: 0; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 532 | } |
| 533 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 534 | .left_buttons { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 535 | display: flex; |
| 536 | align-self: center; |
| 537 | max-width: 90px; |
| 538 | padding-left: 1em; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 539 | } |
| 540 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 541 | /* Status */ |
| 542 | |
| 543 | .status_circle { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 544 | fill: #A0A0A0; |
| 545 | -webkit-animation: circle-dance; |
| 546 | -webkit-animation-duration: 0.8s; |
| 547 | -webkit-animation-iteration-count: infinite; |
| 548 | -webkit-animation-direction: alternate; |
| 549 | -webkit-animation-timing-function: ease-in-out; |
aviau | 32b8dd6 | 2016-11-02 00:36:57 -0400 | [diff] [blame] | 550 | } |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame] | 551 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 552 | .anim-first { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 553 | -webkit-animation-delay: 0.7s; |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame] | 554 | } |
| 555 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 556 | .anim-second { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 557 | -webkit-animation-delay: 0.9s; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 558 | } |
| 559 | |
| 560 | .anim-third { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 561 | -webkit-animation-delay: 1.1s; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 562 | } |
| 563 | |
| 564 | @-webkit-keyframes circle-dance { |
| 565 | 0%,50% { |
| 566 | -webkit-transform: translateY(0); |
| 567 | fill: #A0A0A0; |
| 568 | } |
| 569 | 100% { |
| 570 | -webkit-transform: translateY(-8px); |
| 571 | fill: #000; |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | .status-x { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 576 | stroke-dasharray: 12; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 577 | } |
| 578 | |
| 579 | /* Contact + Call interactions */ |
| 580 | .message_type_contact .message_wrapper, |
| 581 | .message_type_call .message_wrapper { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 582 | width: auto; |
| 583 | margin-left: 30%; |
| 584 | margin-right: 30%; |
| 585 | display: flex; |
| 586 | flex-wrap: wrap; |
| 587 | background-color: #f2f2f2; |
| 588 | padding: 0; |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame] | 589 | } |
| 590 | |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame] | 591 | .message_type_contact .message_wrapper:before, |
| 592 | .message_type_call .message_wrapper:before { |
| 593 | display: none; |
| 594 | } |
| 595 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 596 | .message_type_contact .text, |
| 597 | .message_type_call .text { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 598 | align-self: center; |
| 599 | font-size: 1.2em; |
| 600 | padding: 1em; |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame] | 601 | } |
| 602 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 603 | /* file interactions */ |
Sébastien Blin | f4f9028 | 2017-10-03 14:07:16 -0400 | [diff] [blame] | 604 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 605 | .message_type_data_transfer .message_wrapper { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 606 | padding: 0; |
| 607 | width: 30%; |
| 608 | display: flex; |
| 609 | flex-wrap: wrap; |
Guillaume Roguez | 5b137be | 2018-02-21 10:44:58 -0500 | [diff] [blame] | 610 | } |
| 611 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 612 | .accept, .refuse { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 613 | border-radius: 50%; |
| 614 | cursor: pointer; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 615 | } |
| 616 | |
| 617 | .accept svg, |
| 618 | .refuse svg { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 619 | padding: 8px; |
| 620 | width: 24px; |
| 621 | height: 24px; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 622 | } |
| 623 | |
| 624 | .accept { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 625 | fill: #219d55; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 626 | } |
| 627 | |
| 628 | .accept:hover { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 629 | fill: white; |
| 630 | background: #219d55; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 631 | } |
| 632 | |
| 633 | .refuse { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 634 | fill: #dc2719; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 635 | } |
| 636 | |
| 637 | .refuse:hover { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 638 | fill: white; |
| 639 | background: #dc2719; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 640 | } |
| 641 | |
| 642 | .message_type_data_transfer .text { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 643 | padding: 1em; |
| 644 | text-align: left; |
| 645 | align-self: left; |
| 646 | max-width: calc(100% - 180px); |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 647 | } |
| 648 | |
| 649 | .message_type_data_transfer .filename { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 650 | cursor: pointer; |
| 651 | font-size: 1.1em; |
| 652 | overflow: hidden; |
Guillaume Roguez | 5b137be | 2018-02-21 10:44:58 -0500 | [diff] [blame] | 653 | } |
| 654 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 655 | .message_type_data_transfer .informations { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 656 | color: #555; |
| 657 | font-size: 0.8em; |
Guillaume Roguez | 5b137be | 2018-02-21 10:44:58 -0500 | [diff] [blame] | 658 | } |
| 659 | |
| 660 | .message_progress_bar { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 661 | width: 100%; |
| 662 | height: 1em; |
| 663 | position: relative; |
| 664 | overflow: hidden; |
| 665 | background-color: #eee; |
| 666 | border-radius: 0; |
| 667 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset; |
Guillaume Roguez | 5b137be | 2018-02-21 10:44:58 -0500 | [diff] [blame] | 668 | } |
| 669 | |
| 670 | .message_progress_bar > span { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 671 | display: inline; |
| 672 | height: 100%; |
| 673 | background-color: #01a2b8; |
| 674 | position: absolute; |
| 675 | overflow: hidden; |
Guillaume Roguez | 5b137be | 2018-02-21 10:44:58 -0500 | [diff] [blame] | 676 | } |
| 677 | |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 678 | /* text interactions */ |
| 679 | |
| 680 | .message_type_text .message_wrapper { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 681 | max-width: 40%; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 682 | } |
| 683 | |
| 684 | .message_type_text .message_text { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 685 | padding: 0px; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 686 | } |
| 687 | |
| 688 | .message_text { |
| 689 | hyphens: auto; /* When webkitgtk+ will supports this, intelligent word-breaking */ |
| 690 | word-break: break-word; |
| 691 | word-wrap: break-word; |
| 692 | display: block; |
| 693 | } |
| 694 | |
| 695 | pre { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 696 | font : inherit; |
| 697 | font-family : inherit; |
| 698 | font-size : inherit; |
| 699 | font-style : inherit; |
| 700 | font-variant : inherit; |
| 701 | font-weight : inherit; |
| 702 | margin: 0; |
| 703 | padding: 0; |
Guillaume Roguez | 5b137be | 2018-02-21 10:44:58 -0500 | [diff] [blame] | 704 | } |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 705 | |
| 706 | /* Media interactions */ |
| 707 | .media_wrapper img { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 708 | max-width: 800px; |
| 709 | max-height: 700px; |
| 710 | margin: 5px 0 0 0; |
| 711 | border-radius: 10px; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 712 | } |
| 713 | |
| 714 | .playVideo { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 715 | background-color: rgba(0, 0, 0, 0.6); |
| 716 | height: 50px; |
| 717 | width: 50px; |
| 718 | border-radius: 5px; |
| 719 | float: right; |
| 720 | position: absolute; |
| 721 | top: calc(50% - 25px); |
| 722 | left: calc(50% - 25px); |
| 723 | z-index: 3; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 724 | } |
| 725 | |
| 726 | .containerVideo { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 727 | width: 100%; |
| 728 | position: relative; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 729 | } |
| 730 | |
| 731 | .playVideo svg { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 732 | height: 40px; |
| 733 | width: 40px; |
| 734 | margin: 5px; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 735 | } |
| 736 | |
| 737 | /* Text interaction */ |
| 738 | .failure, |
| 739 | .sending { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 740 | margin: 10px 10px; |
| 741 | color: #A0A0A0; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 742 | } |
| 743 | |
| 744 | /* Classic screens */ |
| 745 | @media screen and (max-width: 1920px), screen and (max-height: 1080px) { |
| 746 | .message_in { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 747 | padding-left: 15%; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 748 | } |
| 749 | |
| 750 | .message_out { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 751 | padding-right: 15%; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 752 | } |
| 753 | |
| 754 | .message_type_text .message_wrapper { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 755 | max-width: 60%; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 756 | } |
| 757 | |
| 758 | /* File interactions */ |
| 759 | .message_type_data_transfer .message_wrapper { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 760 | width: 40%; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 761 | } |
| 762 | |
| 763 | /* Media interactions */ |
| 764 | .media_wrapper img { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 765 | max-width: 450px; |
| 766 | max-height: 450px; |
| 767 | } |
| 768 | |
| 769 | .menu_interaction |
| 770 | { |
| 771 | margin: 5px; |
| 772 | padding: 2px; |
| 773 | height: 10px; |
| 774 | font-size: 0.7em; |
| 775 | transition:visibility 0.3s linear,opacity 0.3s linear; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 776 | } |
| 777 | } |
| 778 | |
| 779 | /* lower resolutions */ |
| 780 | @media screen and (max-width: 1000px), screen and (max-height: 480px) { |
| 781 | .message_in { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 782 | padding-left: 0; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 783 | } |
| 784 | |
| 785 | .message_out { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 786 | padding-right: 0; |
| 787 | } |
| 788 | |
| 789 | .message_type_contact, |
| 790 | .message_type_call { |
| 791 | max-width: 100%; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 792 | } |
| 793 | |
| 794 | .message_type_text .message_wrapper { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 795 | max-width: 90%; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 796 | } |
| 797 | |
| 798 | /* File interactions */ |
| 799 | .message_type_data_transfer .message_wrapper { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 800 | width: 70%; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 801 | } |
| 802 | |
| 803 | /* Media interactions */ |
| 804 | .media_wrapper img { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 805 | max-width: 200px; |
| 806 | max-height: 200px; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 807 | } |
| 808 | } |
| 809 | |
| 810 | /* Special case */ |
| 811 | @media screen and (max-width: 300px) { |
| 812 | .sender_image { |
| 813 | visibility: hidden; |
| 814 | display: none; |
| 815 | } |
| 816 | |
| 817 | /* File interactions */ |
| 818 | .message_type_data_transfer .left_buttons { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 819 | max-width: 100%; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 820 | } |
| 821 | |
| 822 | .message_type_data_transfer .text { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 823 | max-width: 100%; |
| 824 | padding-left: 0; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 825 | } |
| 826 | } |
| 827 | |
| 828 | .message_type_contact .message_wrapper:hover .timestamp_action, |
| 829 | .message_type_call .message_wrapper:hover .timestamp_action { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 830 | opacity: 1; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 831 | } |
| 832 | |
| 833 | .timestamp_action { |
Sébastien Blin | d2ea6dd | 2018-04-18 11:35:33 -0400 | [diff] [blame] | 834 | margin: auto; |
| 835 | padding: 0; |
| 836 | vertical-align: center; |
| 837 | opacity:0; |
| 838 | transition:visibility 0.3s linear,opacity 0.3s linear; |
Sébastien Blin | 82d0d2d | 2018-03-14 17:21:42 -0400 | [diff] [blame] | 839 | } |