2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2018 Signal Messenger, LLC
|
2020-10-30 20:34:04 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
// Using BEM syntax explained here: https://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/
|
|
|
|
|
2022-09-29 22:40:09 +00:00
|
|
|
// CAUTION: these styles are often overridden by other components
|
|
|
|
// if you make changes to these, you must check EVERY component that uses <Modal.../>
|
|
|
|
|
2023-07-26 22:23:32 +00:00
|
|
|
#app-container {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.inbox {
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2021-02-01 20:01:25 +00:00
|
|
|
.module-title-bar-drag-area {
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
height: var(--title-bar-drag-area-height);
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2021-02-01 20:01:25 +00:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-on-top-of-everything;
|
2021-02-01 20:01:25 +00:00
|
|
|
}
|
|
|
|
|
2020-05-15 18:28:13 +00:00
|
|
|
.module-splash-screen {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-03-05 21:24:51 +00:00
|
|
|
.module-splash-screen__logo {
|
|
|
|
@include color-svg('../images/signal-logo.svg', $color-white);
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 24px;
|
|
|
|
margin-inline: 0;
|
2020-03-05 21:24:51 +00:00
|
|
|
|
|
|
|
&.module-img--256 {
|
|
|
|
height: 256px;
|
|
|
|
width: 256px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.module-img--200 {
|
|
|
|
height: 200px;
|
|
|
|
width: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.module-img--150 {
|
|
|
|
height: 150px;
|
|
|
|
width: 150px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.module-img--128 {
|
|
|
|
height: 128px;
|
|
|
|
width: 128px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.module-logo-blue {
|
2021-05-28 16:15:17 +00:00
|
|
|
background-color: $color-ultramarine-icon;
|
2020-03-05 21:24:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
// Module: Message
|
|
|
|
|
|
|
|
.module-message {
|
2018-08-11 00:15:00 +00:00
|
|
|
position: relative;
|
2022-03-03 20:23:10 +00:00
|
|
|
display: flex;
|
2018-07-09 21:29:13 +00:00
|
|
|
flex-direction: row;
|
|
|
|
align-items: stretch;
|
2019-11-07 21:36:16 +00:00
|
|
|
outline: none;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 16px;
|
2023-03-20 22:23:53 +00:00
|
|
|
transition-property: background, translate;
|
|
|
|
transition-duration: 0.1s;
|
|
|
|
transition-timing-function: ease-out;
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
2022-05-10 19:02:21 +00:00
|
|
|
.module-message__quote-story-reaction-header {
|
|
|
|
@include font-subtitle;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
|
|
|
.module-message__container-outgoing & {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__container-incoming & {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
.module-message--expired {
|
|
|
|
animation: module-message__shake 0.2s linear infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes module-message__shake {
|
|
|
|
0% {
|
2023-04-20 17:03:43 +00:00
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
2018-07-09 21:29:13 +00:00
|
|
|
transform: translateX(0px);
|
|
|
|
}
|
|
|
|
25% {
|
2023-04-20 17:03:43 +00:00
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
2018-07-09 21:29:13 +00:00
|
|
|
transform: translateX(-5px);
|
|
|
|
}
|
|
|
|
50% {
|
2023-04-20 17:03:43 +00:00
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
2018-07-09 21:29:13 +00:00
|
|
|
transform: translateX(0px);
|
|
|
|
}
|
|
|
|
75% {
|
2023-04-20 17:03:43 +00:00
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
2018-07-09 21:29:13 +00:00
|
|
|
transform: translateX(5px);
|
|
|
|
}
|
|
|
|
100% {
|
2023-04-20 17:03:43 +00:00
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
2018-07-09 21:29:13 +00:00
|
|
|
transform: translateX(0px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 21:20:40 +00:00
|
|
|
@keyframes module-message__highlight {
|
|
|
|
0% {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
33% {
|
|
|
|
filter: brightness(50%);
|
|
|
|
}
|
|
|
|
66% {
|
|
|
|
filter: brightness(50%);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-22 19:06:08 +00:00
|
|
|
@keyframes module-message__highlight-lighter {
|
|
|
|
0% {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
33% {
|
|
|
|
filter: brightness(76%);
|
|
|
|
}
|
|
|
|
66% {
|
|
|
|
filter: brightness(76%);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
.module-message--outgoing {
|
2022-03-03 20:23:10 +00:00
|
|
|
flex-direction: row-reverse;
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__buttons {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message:hover .module-message__buttons {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2018-08-11 00:15:00 +00:00
|
|
|
.module-message__buttons--incoming {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-start: 8px;
|
2021-10-12 23:59:08 +00:00
|
|
|
|
|
|
|
& > * {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 12px;
|
2021-10-12 23:59:08 +00:00
|
|
|
&:first-child {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 0;
|
2021-10-12 23:59:08 +00:00
|
|
|
}
|
|
|
|
}
|
2018-08-11 00:15:00 +00:00
|
|
|
}
|
2021-10-12 23:59:08 +00:00
|
|
|
|
2018-08-11 00:15:00 +00:00
|
|
|
.module-message__buttons--outgoing {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-end: 8px;
|
2020-01-23 23:57:37 +00:00
|
|
|
flex-direction: row-reverse;
|
2021-10-12 23:59:08 +00:00
|
|
|
|
|
|
|
& > * {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 12px;
|
2021-10-12 23:59:08 +00:00
|
|
|
&:first-child {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 0;
|
2021-10-12 23:59:08 +00:00
|
|
|
}
|
|
|
|
}
|
2018-08-11 00:15:00 +00:00
|
|
|
}
|
|
|
|
|
2022-03-08 14:32:42 +00:00
|
|
|
@mixin module-message__buttons__button($light-icon, $dark-icon: $light-icon) {
|
|
|
|
cursor: pointer;
|
2023-05-04 18:04:22 +00:00
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2022-03-08 14:32:42 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2022-03-08 14:32:42 +00:00
|
|
|
@include color-svg($light-icon, $color-gray-45);
|
2019-10-04 18:06:17 +00:00
|
|
|
&:hover {
|
2022-03-08 14:32:42 +00:00
|
|
|
@include color-svg($light-icon, $color-gray-90);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-08 14:32:42 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include dark-theme {
|
2022-03-08 14:32:42 +00:00
|
|
|
@include color-svg($dark-icon, $color-gray-45);
|
2019-10-04 18:06:17 +00:00
|
|
|
&:hover {
|
2022-03-08 21:55:48 +00:00
|
|
|
@include color-svg($dark-icon, $color-gray-02);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
2023-03-20 22:23:53 +00:00
|
|
|
.module-message--targeted & {
|
2022-03-08 14:32:42 +00:00
|
|
|
@include mouse-mode {
|
2022-03-17 21:20:40 +00:00
|
|
|
background-color: $color-gray-60;
|
2020-01-23 23:57:37 +00:00
|
|
|
}
|
2022-03-08 14:32:42 +00:00
|
|
|
@include dark-mouse-mode {
|
|
|
|
background-color: $color-white;
|
2020-01-23 23:57:37 +00:00
|
|
|
}
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2022-03-08 14:32:42 +00:00
|
|
|
.module-message:focus & {
|
|
|
|
@include keyboard-mode {
|
2022-03-17 21:20:40 +00:00
|
|
|
background-color: $color-gray-60;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2022-03-08 14:32:42 +00:00
|
|
|
@include dark-keyboard-mode {
|
|
|
|
background-color: $color-white;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-08 14:32:42 +00:00
|
|
|
.module-message__buttons__download {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include module-message__buttons__button('../images/icons/v3/save/save.svg');
|
2022-03-08 14:32:42 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2022-03-08 14:32:42 +00:00
|
|
|
.module-message__buttons__react {
|
|
|
|
@include module-message__buttons__button(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/heart/heart-plus.svg'
|
2022-03-08 14:32:42 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__buttons__reply {
|
|
|
|
@include module-message__buttons__button(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/reply/reply.svg'
|
2022-03-08 14:32:42 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__buttons__menu {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include module-message__buttons__button('../images/icons/v3/more/more.svg');
|
2021-10-05 13:58:34 +00:00
|
|
|
|
|
|
|
&--container {
|
|
|
|
border-radius: 4px;
|
2023-05-04 18:04:22 +00:00
|
|
|
height: 20px;
|
2021-10-05 13:58:34 +00:00
|
|
|
// the z-index here is so that this container is above the message and when
|
|
|
|
// clicked on, doesn't propagate the click event to the message.
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2021-10-05 13:58:34 +00:00
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__error-container {
|
2020-03-25 22:48:10 +00:00
|
|
|
min-width: 28px;
|
2018-07-09 21:29:13 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__error {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 4px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
2021-05-06 00:09:29 +00:00
|
|
|
.module-message__error--paused {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
2021-05-06 00:09:29 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
|
|
|
$color-gray-45
|
|
|
|
);
|
2021-05-06 00:09:29 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
|
|
|
|
.module-message__error--outgoing {
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 8px;
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__error--incoming {
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 8px;
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
2021-01-27 21:15:43 +00:00
|
|
|
.module-message__container-outer {
|
|
|
|
line-height: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-09-30 21:24:23 +00:00
|
|
|
min-width: 0;
|
2023-03-20 22:23:53 +00:00
|
|
|
max-width: min(306px, calc(100% - 16px - 22px));
|
2021-10-14 16:54:20 +00:00
|
|
|
|
|
|
|
.module-timeline--width-wide &,
|
|
|
|
.module-message-detail & {
|
|
|
|
// NOTE(evanhahn): I wanted this to be 66% of the timeline, but I could not make that
|
|
|
|
// work without introducing layout bugs for some message types. This constant,
|
|
|
|
// though not ideal, fixes those bugs.
|
|
|
|
max-width: 50vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-timeline--width-medium & {
|
|
|
|
max-width: 370px;
|
|
|
|
}
|
2021-01-27 21:15:43 +00:00
|
|
|
}
|
2022-05-11 20:59:58 +00:00
|
|
|
|
|
|
|
$message-padding-vertical: 8px;
|
|
|
|
$message-padding-horizontal: 12px;
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
.module-message__container {
|
2022-03-08 14:32:42 +00:00
|
|
|
$collapsed-border-radius: 4px;
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2022-03-08 14:32:42 +00:00
|
|
|
border-radius: 18px;
|
2023-03-21 21:00:03 +00:00
|
|
|
outline: none;
|
2022-03-16 21:16:33 +00:00
|
|
|
margin-bottom: 6px;
|
|
|
|
margin-top: 6px;
|
2018-09-28 23:04:16 +00:00
|
|
|
min-width: 0px;
|
2021-01-07 19:32:12 +00:00
|
|
|
overflow: hidden;
|
2019-08-22 21:11:36 +00:00
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: $message-padding-horizontal;
|
|
|
|
padding-top: $message-padding-vertical;
|
|
|
|
padding-bottom: $message-padding-vertical;
|
2021-10-04 22:42:26 +00:00
|
|
|
|
2022-03-08 14:32:42 +00:00
|
|
|
.module-message--collapsed-above & {
|
|
|
|
margin-top: 1px;
|
2019-08-22 21:11:36 +00:00
|
|
|
}
|
2022-03-08 14:32:42 +00:00
|
|
|
.module-message--collapsed-below & {
|
|
|
|
margin-bottom: 1px;
|
2019-08-22 21:11:36 +00:00
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
|
2022-03-08 14:32:42 +00:00
|
|
|
.module-message--incoming.module-message--collapsed-above & {
|
2023-04-20 17:03:43 +00:00
|
|
|
border-start-start-radius: $collapsed-border-radius;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2022-03-08 14:32:42 +00:00
|
|
|
.module-message--incoming.module-message--collapsed-below & {
|
2023-04-20 17:03:43 +00:00
|
|
|
border-end-start-radius: $collapsed-border-radius;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2022-03-08 14:32:42 +00:00
|
|
|
.module-message--outgoing.module-message--collapsed-above & {
|
2023-04-20 17:03:43 +00:00
|
|
|
border-start-end-radius: $collapsed-border-radius;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2022-03-08 14:32:42 +00:00
|
|
|
.module-message--outgoing.module-message--collapsed-below & {
|
2023-04-20 17:03:43 +00:00
|
|
|
border-end-end-radius: $collapsed-border-radius;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
|
|
|
|
2023-03-20 22:23:53 +00:00
|
|
|
.module-message__container--targeted {
|
2019-11-21 19:16:06 +00:00
|
|
|
@include mouse-mode {
|
2022-03-22 19:06:08 +00:00
|
|
|
animation: module-message__highlight 1.2s cubic-bezier(0.17, 0.17, 0, 1);
|
|
|
|
}
|
|
|
|
}
|
2023-03-20 22:23:53 +00:00
|
|
|
.module-message__container--targeted-lighter {
|
2022-03-22 19:06:08 +00:00
|
|
|
@include mouse-mode {
|
|
|
|
animation: module-message__highlight-lighter 1.2s
|
|
|
|
cubic-bezier(0.17, 0.17, 0, 1);
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
|
|
|
|
2023-03-20 22:23:53 +00:00
|
|
|
.module-message__wrapper {
|
|
|
|
position: relative;
|
|
|
|
transition: background 0.1s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__wrapper--select-mode {
|
|
|
|
.module-message--incoming {
|
2023-04-20 17:03:43 +00:00
|
|
|
&:dir(ltr) {
|
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
|
|
translate: calc(16px + 22px) 0;
|
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
|
|
translate: calc(-16px - 22px) 0;
|
|
|
|
}
|
2023-03-20 22:23:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__alt-accessibility-tree {
|
|
|
|
@include sr-only;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__wrapper--selected {
|
|
|
|
background: rgba($color-ultramarine, 8%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__select-checkbox {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 16px;
|
|
|
|
transform: translateY(-50%);
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2023-03-20 22:23:53 +00:00
|
|
|
border-radius: 9999px;
|
|
|
|
background: transparent;
|
|
|
|
border: 1px solid $color-gray-20;
|
|
|
|
animation: module-message__select-checkbox--fadeIn 0.2s ease-out;
|
|
|
|
transition: background 0.1s ease-out, border-color 0.1s ease-out;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
margin: 2px;
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/check/check-compact-bold.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
2023-03-20 22:23:53 +00:00
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.1s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__wrapper--selected & {
|
|
|
|
background: $color-ultramarine;
|
|
|
|
border-color: $color-ultramarine;
|
|
|
|
&::before {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes module-message__select-checkbox--fadeIn {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-26 00:19:00 +00:00
|
|
|
.module-message:focus-within {
|
2022-03-08 14:32:42 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
background: $color-selected-message-background-light;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2022-03-08 14:32:42 +00:00
|
|
|
@include dark-keyboard-mode {
|
|
|
|
background: $color-selected-message-background-dark;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
2021-10-06 17:37:53 +00:00
|
|
|
.module-message__container--emoji {
|
2022-03-17 21:20:40 +00:00
|
|
|
padding-top: 4px;
|
2021-10-07 22:27:08 +00:00
|
|
|
|
|
|
|
.module-message__text--outgoing {
|
2023-04-20 17:03:43 +00:00
|
|
|
text-align: end;
|
2021-10-07 22:27:08 +00:00
|
|
|
}
|
2021-10-06 17:37:53 +00:00
|
|
|
}
|
|
|
|
|
2018-10-09 22:56:14 +00:00
|
|
|
.module-message__container--outgoing {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2021-05-28 16:15:17 +00:00
|
|
|
background-color: $color-ultramarine;
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-white;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-ultramarine;
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// In case the color gets messed up
|
2018-10-09 22:56:14 +00:00
|
|
|
.module-message__container--incoming {
|
2021-05-28 16:15:17 +00:00
|
|
|
background-color: $color-gray-05;
|
|
|
|
color: $color-gray-90;
|
2018-07-09 21:29:13 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-75;
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-09-26 00:26:06 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@each $color, $value in $conversation-colors {
|
2021-05-28 16:15:17 +00:00
|
|
|
.module-message__container--outgoing-#{$color} {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $value;
|
2021-05-28 16:15:17 +00:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $value;
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2018-09-26 00:26:06 +00:00
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
.module-message__container--outgoing-custom {
|
|
|
|
background-attachment: fixed;
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@each $color, $value in $conversation-colors-gradient {
|
|
|
|
.module-message__container--outgoing-#{$color} {
|
|
|
|
background-attachment: fixed;
|
|
|
|
background-image: linear-gradient(
|
|
|
|
map-get($value, 'deg'),
|
|
|
|
map-get($value, 'start'),
|
|
|
|
map-get($value, 'end')
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
.module-message__container--with-tap-to-view {
|
|
|
|
min-width: 148px;
|
|
|
|
cursor: pointer;
|
2021-07-12 19:58:45 +00:00
|
|
|
user-select: none;
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
.module-message__container--with-tap-to-view-pending {
|
|
|
|
background-color: $color-gray-15;
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__container--with-tap-to-view-pending {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__container--with-tap-to-view-expired {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
border: 1px solid $color-gray-15;
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border: 1px solid $color-gray-60;
|
2020-01-08 18:46:09 +00:00
|
|
|
background-color: $color-gray-95;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__container--with-tap-to-view-error {
|
|
|
|
width: auto;
|
|
|
|
cursor: default;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
border: 1px solid $color-deep-red;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-black;
|
|
|
|
border: 1px solid $color-deep-red;
|
|
|
|
}
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
|
2022-04-07 16:58:15 +00:00
|
|
|
.module-message__container--deleted-for-everyone {
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
border: 1px solid $color-gray-25;
|
2022-11-04 13:22:07 +00:00
|
|
|
background-color: transparent;
|
2022-04-07 16:58:15 +00:00
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
border: 1px solid $color-gray-75;
|
2022-11-04 13:22:07 +00:00
|
|
|
background-color: transparent;
|
2022-04-07 16:58:15 +00:00
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-30 16:24:28 +00:00
|
|
|
.module-message__attachment-too-big {
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
margin-inline: -$message-padding-horizontal;
|
|
|
|
margin-top: -$message-padding-vertical;
|
|
|
|
margin-bottom: -$message-padding-vertical;
|
|
|
|
padding-top: $message-padding-vertical;
|
|
|
|
padding-bottom: $message-padding-vertical;
|
|
|
|
padding-inline: $message-padding-horizontal;
|
|
|
|
|
|
|
|
border-radius: 18px;
|
|
|
|
|
|
|
|
@include font-body-1-italic;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
border: 1px solid $color-gray-05;
|
|
|
|
background-color: $color-white;
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
border: 1px solid $color-gray-75;
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__attachment-too-big--content-above {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
|
|
|
.module-message__attachment-too-big--content-below {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
|
|
border-bottom: none;
|
|
|
|
margin-bottom: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__attachment-too-big--collapse-above--incoming {
|
|
|
|
border-top-left-radius: 4px;
|
|
|
|
}
|
|
|
|
.module-message__attachment-too-big--collapse-above--outgoing {
|
|
|
|
border-top-right-radius: 4px;
|
|
|
|
}
|
|
|
|
.module-message__attachment-too-big--collapse-below--incoming {
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
}
|
|
|
|
.module-message__attachment-too-big--collapse-below--outgoing {
|
|
|
|
border-bottom-right-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2019-06-26 19:33:13 +00:00
|
|
|
.module-message__tap-to-view {
|
|
|
|
margin-top: 2px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.module-message__tap-to-view--with-content-above {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
.module-message__tap-to-view--with-content-below {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__tap-to-view__spinner-container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 6px;
|
2019-06-26 19:33:13 +00:00
|
|
|
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__tap-to-view__icon {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 6px;
|
2019-06-26 19:33:13 +00:00
|
|
|
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/view_once/view_once.svg',
|
|
|
|
$color-gray-90
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/view_once/view_once.svg',
|
|
|
|
$color-gray-05
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__icon--expired {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/view_once/view_once-dash.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/view_once/view_once-dash.svg',
|
|
|
|
$color-gray-05
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
2021-06-02 19:52:25 +00:00
|
|
|
.module-message__tap-to-view__icon--outgoing {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
2019-06-26 19:33:13 +00:00
|
|
|
.module-message__tap-to-view__text {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-1-bold;
|
2019-06-26 19:33:13 +00:00
|
|
|
|
2021-06-02 19:52:25 +00:00
|
|
|
color: $color-gray-05;
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__text--incoming {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__text--incoming-expired {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__text--incoming-error {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__tap-to-view__text--outgoing {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-white;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__text--outgoing-expired {
|
2021-06-02 19:52:25 +00:00
|
|
|
color: $color-gray-05;
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
.module-message__attachment-container {
|
2019-05-16 22:32:11 +00:00
|
|
|
// To ensure that images are centered if they aren't full width of bubble
|
2018-06-27 20:53:49 +00:00
|
|
|
text-align: center;
|
|
|
|
position: relative;
|
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: -$message-padding-horizontal;
|
|
|
|
margin-top: -$message-padding-vertical;
|
|
|
|
margin-bottom: -$message-padding-vertical;
|
2018-08-01 22:40:13 +00:00
|
|
|
|
2020-08-12 22:47:20 +00:00
|
|
|
line-height: 0;
|
2018-08-01 22:40:13 +00:00
|
|
|
overflow: hidden;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
}
|
2018-08-01 22:40:13 +00:00
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
&--with-content-below {
|
|
|
|
margin-bottom: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--with-content-above {
|
|
|
|
margin-top: 4px;
|
2021-04-27 22:11:59 +00:00
|
|
|
}
|
2018-08-01 22:40:13 +00:00
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
.module-message__sticker-container {
|
|
|
|
// To ensure that images are centered if they aren't full width of bubble
|
|
|
|
text-align: center;
|
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: -$message-padding-horizontal;
|
|
|
|
margin-top: -$message-padding-vertical - 1px;
|
|
|
|
margin-bottom: -$message-padding-vertical + 3px;
|
2019-05-16 22:32:11 +00:00
|
|
|
|
|
|
|
&--with-content-below {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--with-content-above {
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
2018-08-01 22:40:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__img-attachment {
|
|
|
|
margin-bottom: -3px;
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
// redundant with attachment-container, but we get cursor flashing on move otherwise
|
2018-06-27 20:53:49 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment {
|
2019-11-07 21:36:16 +00:00
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-01-30 20:15:07 +00:00
|
|
|
align-items: center;
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment--with-content-below {
|
|
|
|
padding-bottom: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment--with-content-above {
|
|
|
|
padding-top: 4px;
|
|
|
|
}
|
|
|
|
|
2020-05-27 21:37:06 +00:00
|
|
|
.module-message__generic-attachment--not-active {
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2018-10-04 01:12:42 +00:00
|
|
|
.module-message__generic-attachment__icon-container {
|
|
|
|
position: relative;
|
2021-07-12 19:58:45 +00:00
|
|
|
user-select: none;
|
2018-10-04 01:12:42 +00:00
|
|
|
}
|
2019-01-30 20:15:07 +00:00
|
|
|
.module-message__generic-attachment__spinner-container {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 4px;
|
2019-01-30 20:15:07 +00:00
|
|
|
}
|
2018-10-04 01:12:42 +00:00
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
.module-message__generic-attachment__icon {
|
|
|
|
background: url('../images/file-gradient.svg') no-repeat center;
|
|
|
|
height: 44px;
|
|
|
|
width: 56px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: -13px -14px;
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-bottom: -4px;
|
|
|
|
|
|
|
|
// So we can center the extension text inside this icon
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2018-10-04 01:12:42 +00:00
|
|
|
.module-message__generic-attachment__icon-dangerous-container {
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: -1px;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: -4px;
|
2018-10-04 01:12:42 +00:00
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__icon-dangerous {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-solid-24.svg',
|
|
|
|
$color-accent-red
|
|
|
|
);
|
2018-10-04 01:12:42 +00:00
|
|
|
}
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
.module-message__generic-attachment__icon__extension {
|
|
|
|
font-size: 10px;
|
|
|
|
line-height: 13px;
|
|
|
|
letter-spacing: 0.1px;
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
|
|
// Along with flow layout in parent item, centers text
|
|
|
|
text-align: center;
|
|
|
|
width: 25px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
|
|
|
// We don't have much room for text here, cut it off without ellipse
|
|
|
|
overflow-x: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: clip;
|
2018-08-14 00:06:50 +00:00
|
|
|
|
2018-10-09 22:56:14 +00:00
|
|
|
color: $color-gray-90;
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__text {
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 8px;
|
2021-03-29 15:19:29 +00:00
|
|
|
// The width of the icon plus our 8px margin plus 1px leeway
|
|
|
|
max-width: calc(100% - 36px);
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__file-name {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-2-bold;
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-top: 2px;
|
2021-07-12 19:58:45 +00:00
|
|
|
user-select: none;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
|
|
|
// Handling really long filenames - cut them off
|
|
|
|
overflow-x: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-white;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__file-name--incoming {
|
2018-10-09 22:56:14 +00:00
|
|
|
color: $color-white;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__file-size {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-2;
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-top: 3px;
|
2021-07-12 19:58:45 +00:00
|
|
|
user-select: none;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-white;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2019-01-16 03:03:56 +00:00
|
|
|
.module-message__generic-attachment__file-size--incoming {
|
|
|
|
color: $color-white;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2019-01-16 03:03:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview {
|
2021-03-15 22:57:02 +00:00
|
|
|
cursor: pointer;
|
2021-02-02 17:09:53 +00:00
|
|
|
|
|
|
|
&--nonclickable {
|
|
|
|
cursor: inherit;
|
2022-12-01 01:24:38 +00:00
|
|
|
.module-image__image,
|
|
|
|
.module-image__border-overlay--with-click-handler {
|
2021-02-02 17:09:53 +00:00
|
|
|
cursor: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-19 23:03:00 +00:00
|
|
|
display: block;
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: -$message-padding-horizontal;
|
2019-11-19 23:03:00 +00:00
|
|
|
width: calc(100% + 24px);
|
2021-04-15 18:31:31 +00:00
|
|
|
outline: none;
|
2019-11-19 23:03:00 +00:00
|
|
|
|
2022-05-11 20:59:58 +00:00
|
|
|
margin-top: -$message-padding-vertical;
|
2019-01-16 03:03:56 +00:00
|
|
|
margin-bottom: 5px;
|
2019-09-04 00:07:47 +00:00
|
|
|
overflow: hidden;
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
2019-01-16 03:03:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview--with-content-above {
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__content {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: $message-padding-vertical;
|
|
|
|
padding-inline: $message-padding-horizontal;
|
2019-01-16 03:03:56 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: flex-start;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-01-07 19:32:12 +00:00
|
|
|
background-color: $color-gray-02;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-01-07 19:32:12 +00:00
|
|
|
background-color: $color-gray-80;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-01-16 03:03:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__icon_container {
|
|
|
|
margin: -2px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 8px;
|
2019-01-16 03:03:56 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__text--with-icon {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__title {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-1-bold;
|
2019-01-16 03:03:56 +00:00
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-01-16 03:03:56 +00:00
|
|
|
}
|
|
|
|
|
2020-08-29 01:27:45 +00:00
|
|
|
.module-message__link-preview__description {
|
|
|
|
@include font-body-2;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 5;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__footer {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-2;
|
|
|
|
|
2020-08-29 01:27:45 +00:00
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
align-items: center;
|
2021-01-07 19:32:12 +00:00
|
|
|
margin-top: 2px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2020-08-29 01:27:45 +00:00
|
|
|
|
|
|
|
> *:not(:first-child) {
|
|
|
|
display: flex;
|
2021-03-29 21:36:03 +00:00
|
|
|
flex-grow: 1;
|
2020-08-29 01:27:45 +00:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '•';
|
|
|
|
font-size: 50%;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 0.2rem;
|
2020-08-29 01:27:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__location {
|
|
|
|
text-transform: lowercase;
|
2019-01-16 03:03:56 +00:00
|
|
|
}
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
.module-message__author {
|
2019-10-21 22:28:53 +00:00
|
|
|
@include font-body-2-bold;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
height: 18px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2021-07-12 19:58:45 +00:00
|
|
|
user-select: none;
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2019-06-26 19:33:13 +00:00
|
|
|
.module-message__author--with-tap-to-view-expired {
|
2019-10-21 22:28:53 +00:00
|
|
|
@include font-body-2-bold;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2019-06-26 19:33:13 +00:00
|
|
|
height: 18px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-75;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
.module-message__author_with_sticker {
|
2019-10-21 22:28:53 +00:00
|
|
|
@include font-body-2-bold;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
height: 18px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
// Stickers are pretty narrow, so we allow this one element of a sticker
|
|
|
|
// message to go wider than normal.
|
|
|
|
// There's a tension here, since this is width and not max-width; things will
|
|
|
|
// look bad for RTL users if we make it too wide.
|
|
|
|
width: 300px;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__text {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-1;
|
|
|
|
|
2018-08-03 16:26:36 +00:00
|
|
|
text-align: start;
|
2018-07-09 21:29:13 +00:00
|
|
|
overflow-wrap: break-word;
|
|
|
|
word-wrap: break-word;
|
|
|
|
word-break: break-word;
|
|
|
|
white-space: pre-wrap;
|
2018-08-07 01:22:30 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-white-alpha-90;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-white-alpha-90;
|
|
|
|
}
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
2019-11-21 19:16:06 +00:00
|
|
|
outline: none;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-white-alpha-90;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
outline: 1px solid $color-gray-90;
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-11-21 19:16:06 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white-alpha-90;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-keyboard-mode {
|
2019-11-21 19:16:06 +00:00
|
|
|
&:focus {
|
|
|
|
outline: 1px solid $color-white-alpha-90;
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__text--incoming {
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
2019-11-21 19:16:06 +00:00
|
|
|
outline: none;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2019-11-21 19:16:06 +00:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include keyboard-mode {
|
2019-11-21 19:16:06 +00:00
|
|
|
&:focus {
|
|
|
|
outline: 1px solid $color-gray-90;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-05;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-keyboard-mode {
|
2019-11-21 19:16:06 +00:00
|
|
|
&:focus {
|
|
|
|
outline: 1px solid $color-gray-05;
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
.module-message__text--error {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-1-italic;
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
2022-04-07 16:58:15 +00:00
|
|
|
.module-message__text--delete-for-everyone {
|
2022-06-23 16:18:02 +00:00
|
|
|
user-select: none;
|
|
|
|
|
2022-04-07 16:58:15 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
.module-message__metadata {
|
2022-03-08 14:32:42 +00:00
|
|
|
align-items: center;
|
2018-06-27 20:53:49 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2022-03-08 14:32:42 +00:00
|
|
|
justify-content: flex-end;
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-top: 3px;
|
2022-04-07 16:58:15 +00:00
|
|
|
font-style: normal;
|
2020-02-03 20:02:49 +00:00
|
|
|
|
2022-03-08 14:32:42 +00:00
|
|
|
&--inline {
|
2023-04-20 17:03:43 +00:00
|
|
|
float: inline-end;
|
2022-03-08 14:32:42 +00:00
|
|
|
margin-top: -14px;
|
2020-02-03 20:02:49 +00:00
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2023-03-27 23:48:57 +00:00
|
|
|
.module-message__metadata__edited {
|
|
|
|
@include button-reset;
|
|
|
|
@include font-caption;
|
|
|
|
color: $color-gray-60;
|
|
|
|
cursor: pointer;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 6px;
|
2023-03-27 23:48:57 +00:00
|
|
|
z-index: $z-index-base;
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__container--outgoing .module-message__metadata__edited {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
|
2018-08-07 21:54:08 +00:00
|
|
|
// With an image and no caption, this section needs to be on top of the image overlay
|
2018-06-27 20:53:49 +00:00
|
|
|
.module-message__metadata--with-image-no-caption {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 9px;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
// Because this is absolutely positioned, we 100% is too big, take it down by parent
|
|
|
|
// padding sizes.
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-end: 24px;
|
2019-11-19 23:03:00 +00:00
|
|
|
|
|
|
|
// This is so all clicks go right through to the underlying image.
|
|
|
|
pointer-events: none;
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2023-10-30 16:24:28 +00:00
|
|
|
.module-message__metadata--outline-only-bubble {
|
2022-04-07 16:58:15 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
.module-message__metadata__date {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-caption;
|
2021-07-12 19:58:45 +00:00
|
|
|
user-select: none;
|
2021-10-14 16:54:20 +00:00
|
|
|
white-space: nowrap;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
2020-08-07 01:22:52 +00:00
|
|
|
.module-message__metadata__tapable {
|
|
|
|
@include button-reset;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
.module-message__metadata__date--incoming {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-white-alpha-80;
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
.module-message__metadata__date--with-image-no-caption {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
2023-10-30 16:24:28 +00:00
|
|
|
.module-message__metadata__date--outline-only-bubble {
|
2022-04-07 16:58:15 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
2020-01-07 21:19:48 +00:00
|
|
|
.module-message__metadata__date.module-message__metadata__date--incoming-with-tap-to-view-expired {
|
2019-06-26 19:33:13 +00:00
|
|
|
color: $color-gray-75;
|
2020-01-07 21:19:48 +00:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module-message__metadata__date.module-message__metadata__date--outgoing-with-tap-to-view-expired {
|
2021-06-02 19:52:25 +00:00
|
|
|
color: $color-white-alpha-80;
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
2020-01-07 21:19:48 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
.module-message__metadata__date--with-sticker {
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
|
|
|
|
.module-message__metadata__status-icon {
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
display: inline-block;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 6px;
|
2022-04-07 16:58:15 +00:00
|
|
|
// High margin to leave space for the increase when we go to two checks
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
|
|
|
|
2021-05-06 00:09:29 +00:00
|
|
|
.module-message__metadata__status-icon--paused,
|
2018-07-09 21:29:13 +00:00
|
|
|
.module-message__metadata__status-icon--sending {
|
2021-07-30 18:35:43 +00:00
|
|
|
@include only-when-page-is-visible {
|
|
|
|
animation: rotate 4s linear infinite;
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
2023-05-04 21:39:13 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/message_status/messagestatus-sending.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
.module-message__metadata__status-icon--sent {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 21:39:13 +00:00
|
|
|
'../images/icons/v3/message_status/messagestatus-sent.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 21:39:13 +00:00
|
|
|
'../images/icons/v3/message_status/messagestatus-sent.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
.module-message__metadata__status-icon--delivered {
|
2022-04-07 16:58:15 +00:00
|
|
|
// We reduce the margin size to keep the overall width the same
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 0px;
|
2018-06-27 20:53:49 +00:00
|
|
|
width: 18px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2023-05-04 21:39:13 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/message_status/messagestatus-delivered.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2023-05-04 21:39:13 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/message_status/messagestatus-delivered.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
2021-07-27 15:42:25 +00:00
|
|
|
.module-message__metadata__status-icon--read,
|
|
|
|
.module-message__metadata__status-icon--viewed {
|
2022-04-07 16:58:15 +00:00
|
|
|
// We reduce the margin size to keep the overall width the same
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 0px;
|
2018-06-27 20:53:49 +00:00
|
|
|
width: 18px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2023-05-04 21:39:13 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/message_status/messagestatus-read.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2023-05-04 21:39:13 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/message_status/messagestatus-read.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// When status indicators are overlaid on top of an image, they use different colors
|
|
|
|
.module-message__metadata__status-icon--with-image-no-caption {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module-message__metadata__status-icon--with-sticker {
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-30 16:24:28 +00:00
|
|
|
.module-message__metadata__status-icon--outline-only-bubble {
|
2022-04-07 16:58:15 +00:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
.module-message__metadata__spinner-container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 6px;
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__send-message-button {
|
2019-11-07 21:36:16 +00:00
|
|
|
@include button-reset;
|
|
|
|
|
2019-11-15 02:12:31 +00:00
|
|
|
width: calc(100% + 24px);
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include font-body-2-bold;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
2022-05-11 20:59:58 +00:00
|
|
|
margin-top: $message-padding-vertical;
|
|
|
|
margin-bottom: -$message-padding-vertical;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: -$message-padding-horizontal;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px;
|
|
|
|
|
2022-04-12 00:26:09 +00:00
|
|
|
border-bottom-left-radius: 18px;
|
|
|
|
border-bottom-right-radius: 18px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-ultramarine;
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-02;
|
|
|
|
border: 1px solid $color-black-alpha-20;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-ultramarine-light;
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-75;
|
|
|
|
border: 1px solid $color-gray-45;
|
|
|
|
}
|
2019-11-15 02:12:31 +00:00
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2019-11-15 02:12:31 +00:00
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2022-04-12 00:26:09 +00:00
|
|
|
.module-message__send-message-button--no-bottom-left-curve {
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
}
|
|
|
|
.module-message__send-message-button--no-bottom-right-curve {
|
|
|
|
border-bottom-right-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2021-01-27 21:15:43 +00:00
|
|
|
.module-message__author-avatar-container {
|
|
|
|
align-items: flex-end;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 8px;
|
2023-10-06 21:30:36 +00:00
|
|
|
min-width: 28px;
|
2022-03-08 14:32:42 +00:00
|
|
|
padding-bottom: 6px;
|
2021-01-27 21:15:43 +00:00
|
|
|
|
|
|
|
&--with-reactions {
|
2022-03-08 14:32:42 +00:00
|
|
|
padding-bottom: 15px;
|
2021-01-27 21:15:43 +00:00
|
|
|
}
|
2023-10-02 20:18:28 +00:00
|
|
|
|
|
|
|
&--typing {
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
overflow-y: clip;
|
|
|
|
}
|
2021-01-27 21:15:43 +00:00
|
|
|
}
|
|
|
|
|
2023-09-28 16:54:56 +00:00
|
|
|
.module-message__container-outer--typing-bubble {
|
|
|
|
overflow-y: clip;
|
2023-09-27 21:23:52 +00:00
|
|
|
}
|
|
|
|
|
2023-09-18 21:17:26 +00:00
|
|
|
.module-message__typing-avatar-container {
|
|
|
|
flex-direction: row-reverse;
|
2023-09-28 16:54:56 +00:00
|
|
|
overflow-y: clip;
|
2023-09-18 21:17:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__typing-avatar {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2023-09-28 16:54:56 +00:00
|
|
|
position: relative;
|
2023-09-18 21:17:26 +00:00
|
|
|
z-index: $z-index-base;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-inline-start: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--overflow-count {
|
|
|
|
.module-Avatar__contents {
|
|
|
|
@include light-theme() {
|
|
|
|
background: $color-gray-05;
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-75;
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-Avatar__label {
|
|
|
|
@include font-caption-bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-Avatar {
|
|
|
|
min-width: 28px;
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-Avatar__contents {
|
|
|
|
outline: 3px solid;
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
outline-color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
outline-color: $color-gray-95;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-06 21:30:36 +00:00
|
|
|
.module-message__typing-avatar-spacer {
|
|
|
|
flex: 0 1 24px;
|
|
|
|
}
|
|
|
|
|
2022-05-11 20:59:58 +00:00
|
|
|
.module-message__unopened-gift-badge {
|
|
|
|
width: 240px;
|
|
|
|
height: 132px;
|
|
|
|
background-color: $color-ultramarine;
|
|
|
|
position: relative;
|
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: -$message-padding-horizontal;
|
|
|
|
margin-top: -$message-padding-vertical;
|
|
|
|
margin-bottom: $message-padding-vertical;
|
2022-05-11 20:59:58 +00:00
|
|
|
|
2022-05-16 19:54:38 +00:00
|
|
|
&--outgoing {
|
|
|
|
@include light-theme {
|
|
|
|
border-bottom: 1px solid $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-bottom: 1px solid $color-gray-95;
|
|
|
|
}
|
2022-05-11 20:59:58 +00:00
|
|
|
}
|
2022-05-16 19:54:38 +00:00
|
|
|
|
|
|
|
&__container {
|
|
|
|
cursor: default;
|
|
|
|
user-select: none;
|
2022-05-11 20:59:58 +00:00
|
|
|
}
|
|
|
|
|
2022-05-16 19:54:38 +00:00
|
|
|
&__ribbon-horizontal {
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline: 0;
|
2022-05-16 19:54:38 +00:00
|
|
|
height: 16px;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2022-05-11 20:59:58 +00:00
|
|
|
|
2022-05-16 19:54:38 +00:00
|
|
|
&__ribbon-vertical {
|
2023-04-20 17:03:43 +00:00
|
|
|
@include position-absolute-center-x;
|
2022-05-16 19:54:38 +00:00
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 16px;
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2022-05-11 20:59:58 +00:00
|
|
|
|
2022-05-16 19:54:38 +00:00
|
|
|
&__bow {
|
|
|
|
// Centered
|
2023-04-20 17:03:43 +00:00
|
|
|
@include position-absolute-center;
|
2022-05-11 20:59:58 +00:00
|
|
|
|
2022-05-16 19:54:38 +00:00
|
|
|
// For proper alignment with the ribbons
|
|
|
|
margin-top: 3px;
|
2022-05-11 20:59:58 +00:00
|
|
|
|
2022-05-16 19:54:38 +00:00
|
|
|
// 75.26px by 51.93px in Figma, but there's a buffer in the SVG file
|
|
|
|
width: 81px;
|
|
|
|
height: 60px;
|
2022-05-11 20:59:58 +00:00
|
|
|
}
|
2022-05-16 19:54:38 +00:00
|
|
|
|
|
|
|
&__text {
|
|
|
|
@include font-body-2-italic;
|
|
|
|
|
|
|
|
&--incoming {
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
2022-05-11 20:59:58 +00:00
|
|
|
}
|
|
|
|
|
2022-05-16 19:54:38 +00:00
|
|
|
&__container .module-message__text--incoming {
|
|
|
|
@include font-body-2-italic;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2022-05-11 20:59:58 +00:00
|
|
|
}
|
2022-05-16 19:54:38 +00:00
|
|
|
&__container .module-message__text--outgoing {
|
|
|
|
@include font-body-2-italic;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2022-05-11 20:59:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__redeemed-gift-badge {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__badge {
|
|
|
|
height: 64px;
|
|
|
|
width: 64px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 4px 12px;
|
2022-05-11 20:59:58 +00:00
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
&--missing-incoming {
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&--missing-outgoing {
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white-alpha-20;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-white-alpha-20;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-top: 19px;
|
|
|
|
}
|
|
|
|
&__title {
|
|
|
|
margin-bottom: 6px;
|
|
|
|
@include font-body-1;
|
|
|
|
}
|
|
|
|
&__remaining {
|
|
|
|
@include font-subtitle;
|
|
|
|
|
|
|
|
&--incoming {
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-75;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&--outgoing {
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
@include button-reset;
|
|
|
|
@include button-secondary;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2022-05-11 20:59:58 +00:00
|
|
|
width: 216px;
|
|
|
|
margin-bottom: 7px;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
@include font-body-1-bold;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&--incoming {
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
background-color: $color-gray-62;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Disabling hover
|
|
|
|
&:hover {
|
|
|
|
@include mouse-mode {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
background-color: $color-gray-62;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--outgoing {
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
@include mouse-mode {
|
|
|
|
background-color: $color-white-alpha-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
background-color: $color-white-alpha-90;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
|
|
|
box-shadow: 0px 0px 0px 3px $color-ultramarine-light;
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
box-shadow: 0px 0px 0px 3px $color-ultramarine-light;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
// We need to include all four here for specificity precedence
|
|
|
|
|
|
|
|
@include mouse-mode {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
height: 36px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__icon-check {
|
|
|
|
height: 19px;
|
|
|
|
width: 19px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 5px;
|
2022-05-11 20:59:58 +00:00
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
&--incoming {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/check/check-circle.svg',
|
2022-05-11 20:59:58 +00:00
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/check/check-circle.svg',
|
2022-05-11 20:59:58 +00:00
|
|
|
$color-gray-05
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--outgoing {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/check/check-circle.svg',
|
2022-05-11 20:59:58 +00:00
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/check/check-circle.svg',
|
2022-05-11 20:59:58 +00:00
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-27 21:23:52 +00:00
|
|
|
.module-message__typing-animation-container {
|
2018-11-14 19:10:32 +00:00
|
|
|
height: 16px;
|
2023-09-28 16:54:56 +00:00
|
|
|
overflow-y: clip;
|
2018-11-14 19:10:32 +00:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-01-17 22:23:19 +00:00
|
|
|
.module-message__reactions {
|
2021-01-27 21:15:43 +00:00
|
|
|
position: relative;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2020-02-03 20:02:49 +00:00
|
|
|
height: 22px;
|
|
|
|
display: flex;
|
2021-07-12 19:58:45 +00:00
|
|
|
user-select: none;
|
2021-01-27 21:15:43 +00:00
|
|
|
|
|
|
|
&--incoming {
|
|
|
|
align-self: flex-end;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-end: 8px;
|
|
|
|
margin-inline-start: 8px;
|
2021-01-27 21:15:43 +00:00
|
|
|
}
|
|
|
|
&--outgoing {
|
|
|
|
align-self: flex-start;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-start: 8px;
|
|
|
|
margin-inline-end: 8px;
|
2021-01-27 21:15:43 +00:00
|
|
|
}
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__reactions__reaction {
|
|
|
|
@include button-reset;
|
|
|
|
|
2020-02-03 20:02:49 +00:00
|
|
|
min-width: 28px;
|
|
|
|
height: 22px;
|
2020-01-17 22:23:19 +00:00
|
|
|
border: 1px solid;
|
|
|
|
border-radius: 33px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-02-03 20:02:49 +00:00
|
|
|
&--with-count {
|
|
|
|
min-width: 40px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 6px;
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
|
2020-02-03 20:02:49 +00:00
|
|
|
&__count {
|
|
|
|
@include font-caption-bold;
|
2020-01-17 22:23:19 +00:00
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 4px;
|
2020-02-03 20:02:49 +00:00
|
|
|
|
|
|
|
&--no-emoji {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 0px;
|
2020-02-03 20:02:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--is-me {
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-15;
|
|
|
|
}
|
|
|
|
}
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
border-color: $color-white;
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
border-color: $color-gray-95;
|
2021-06-01 23:37:12 +00:00
|
|
|
background: $color-gray-90;
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--is-me {
|
|
|
|
@include dark-theme() {
|
2021-06-01 23:37:12 +00:00
|
|
|
background: $color-gray-60;
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme() {
|
2021-06-01 23:37:12 +00:00
|
|
|
background: $color-gray-25;
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
// Module: Expire Timer
|
|
|
|
|
|
|
|
.module-expire-timer {
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
display: inline-block;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 6px;
|
2018-07-09 21:29:13 +00:00
|
|
|
margin-bottom: 2px;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/message_timer/messagetimer-60.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/message_timer/messagetimer-60.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2019-10-17 17:50:57 +00:00
|
|
|
$timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
|
|
|
'00';
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2019-10-17 17:50:57 +00:00
|
|
|
@each $timer-icon in $timer-icons {
|
2019-10-04 18:06:17 +00:00
|
|
|
.module-expire-timer--#{$timer-icon} {
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/message_timer/messagetimer-#{$timer-icon}.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/message_timer/messagetimer-#{$timer-icon}.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-expire-timer--incoming {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
2020-01-07 21:19:48 +00:00
|
|
|
.module-expire-timer.module-expire-timer--incoming-with-tap-to-view-expired {
|
2019-06-26 19:33:13 +00:00
|
|
|
background-color: $color-gray-75;
|
2020-01-07 21:19:48 +00:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module-expire-timer.module-expire-timer--outgoing-with-tap-to-view-expired {
|
2021-06-02 19:52:25 +00:00
|
|
|
background-color: $color-white-alpha-80;
|
2019-06-26 19:33:13 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
.module-expire-timer--with-sticker {
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
|
|
|
|
// When status indicators are overlaid on top of an image, they use different colors
|
|
|
|
.module-expire-timer--with-image-no-caption {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
2023-10-30 16:24:28 +00:00
|
|
|
.module-expire-timer--outline-only-bubble {
|
2022-04-07 16:58:15 +00:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-26 01:01:19 +00:00
|
|
|
.module-about {
|
|
|
|
&__container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2021-01-26 01:01:19 +00:00
|
|
|
max-width: 248px;
|
2021-01-28 00:18:50 +00:00
|
|
|
text-align: center;
|
2021-01-26 01:01:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
|
|
|
@include font-body-1;
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
max-width: 400px;
|
|
|
|
|
2021-01-28 00:18:50 +00:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
display: -webkit-box;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
2021-01-26 01:01:19 +00:00
|
|
|
img.emoji {
|
|
|
|
height: 1em;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 3px;
|
2021-01-26 01:01:19 +00:00
|
|
|
margin-bottom: 3px;
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
// Module: Embedded Contact
|
|
|
|
|
|
|
|
.module-embedded-contact {
|
2019-11-07 21:36:16 +00:00
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
width: 100%;
|
2019-11-15 02:12:31 +00:00
|
|
|
padding: 5px;
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-01-30 20:15:07 +00:00
|
|
|
align-items: center;
|
2019-11-15 02:12:31 +00:00
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact--outgoing {
|
2021-05-28 16:15:17 +00:00
|
|
|
@include keyboard-mode {
|
2019-11-21 19:16:06 +00:00
|
|
|
&:focus {
|
|
|
|
box-shadow: 0px 0px 0px 2px $color-white;
|
|
|
|
}
|
2019-11-15 02:12:31 +00:00
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact--with-content-above {
|
|
|
|
padding-top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact--with-content-below {
|
|
|
|
padding-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
2019-01-30 20:15:07 +00:00
|
|
|
.module-embedded-contact__spinner-container {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 5px;
|
2019-01-30 20:15:07 +00:00
|
|
|
}
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
.module-embedded-contact__text-container {
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 8px;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
|
|
|
max-width: calc(100% - 58px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact__contact-name {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-1-bold;
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-top: 6px;
|
|
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact__contact-name--incoming {
|
2018-10-09 22:56:14 +00:00
|
|
|
color: $color-white;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact__contact-method {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-2;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
margin-top: 3px;
|
2018-06-27 20:53:49 +00:00
|
|
|
max-width: 100%;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact__contact-method--incoming {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-white-alpha-80;
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Contact Detail
|
|
|
|
|
|
|
|
.module-contact-detail {
|
|
|
|
text-align: center;
|
|
|
|
max-width: 300px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2018-09-27 00:23:17 +00:00
|
|
|
.module-contact-detail__avatar {
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__contact-name {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-1-bold;
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__contact-method {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-2;
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__send-message {
|
2019-11-07 21:36:16 +00:00
|
|
|
@include button-reset;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
|
|
|
border-radius: 4px;
|
2021-05-28 16:15:17 +00:00
|
|
|
background-color: $color-ultramarine;
|
2018-06-27 20:53:49 +00:00
|
|
|
display: inline-block;
|
|
|
|
padding: 6px;
|
|
|
|
margin-top: 20px;
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
color: $color-white;
|
2018-06-27 20:53:49 +00:00
|
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__send-message__inner {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-end: 5px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include font-body-2-bold;
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__send-message__bubble-icon {
|
|
|
|
height: 17px;
|
|
|
|
width: 18px;
|
|
|
|
display: inline-block;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 5px;
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/chat/chat.svg', $color-white);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/chat/chat.svg', $color-white);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__additional-contact {
|
2023-04-20 17:03:43 +00:00
|
|
|
text-align: start;
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-top: 15px;
|
|
|
|
padding-top: 8px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
border-top: 1px solid $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-top: 1px solid $color-gray-75;
|
|
|
|
}
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__additional-contact__type {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-caption-bold;
|
|
|
|
|
|
|
|
color: $color-gray-45;
|
|
|
|
|
2018-06-27 20:53:49 +00:00
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
|
|
|
|
2019-11-07 21:36:16 +00:00
|
|
|
// Module: Inline Notification Wrapper
|
|
|
|
|
|
|
|
.module-inline-notification-wrapper {
|
|
|
|
outline: none;
|
|
|
|
|
2020-10-30 17:35:31 +00:00
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
2022-03-08 14:32:42 +00:00
|
|
|
background: $color-selected-message-background-light;
|
2020-10-30 17:35:31 +00:00
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
2022-03-08 14:32:42 +00:00
|
|
|
background: $color-selected-message-background-dark;
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
// Module: Group Notification
|
2018-06-27 20:53:49 +00:00
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
.module-group-notification__contact {
|
2019-10-04 18:06:17 +00:00
|
|
|
font-weight: bold;
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
2021-08-26 20:51:55 +00:00
|
|
|
.module-safety-number__bold-name {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2021-08-05 23:34:49 +00:00
|
|
|
// Module: Error Boundary
|
|
|
|
|
2021-08-02 20:55:47 +00:00
|
|
|
.module-error-boundary-notification {
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus &__message {
|
|
|
|
@include keyboard-mode {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__message {
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__icon-container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2021-08-02 20:55:47 +00:00
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__icon {
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
opacity: 0.6;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-solid-24.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-solid-24.svg',
|
|
|
|
$color-gray-05
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
.module-notification--with-click-handler {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-notification__icon {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2018-06-27 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2020-07-24 01:35:32 +00:00
|
|
|
// Module: In Contacts Icon
|
|
|
|
|
|
|
|
.module-in-contacts-icon__icon {
|
|
|
|
display: inline-block;
|
2023-05-04 18:04:22 +00:00
|
|
|
height: 14px;
|
|
|
|
width: 14px;
|
2020-07-24 01:35:32 +00:00
|
|
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/person/person-circle-compact.svg',
|
2020-07-24 01:35:32 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/person/person-circle-compact.svg',
|
2020-07-24 01:35:32 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/person/person-circle-compact.svg',
|
2021-05-28 16:15:17 +00:00
|
|
|
$color-ultramarine
|
2020-07-24 01:35:32 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 21:19:24 +00:00
|
|
|
// Module: Conversation Details
|
|
|
|
|
|
|
|
.conversation-details-panel {
|
|
|
|
max-width: 750px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0;
|
|
|
|
margin-inline: auto;
|
2024-01-03 20:28:57 +00:00
|
|
|
user-select: none;
|
2021-01-29 21:19:24 +00:00
|
|
|
|
|
|
|
@at-root .conversation #{&} {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Brought this up here to add specificity
|
2021-10-20 23:46:41 +00:00
|
|
|
button.ConversationDetails__action-button {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 16px;
|
2021-01-29 21:19:24 +00:00
|
|
|
}
|
|
|
|
|
2018-07-18 00:15:34 +00:00
|
|
|
// Module: Media Gallery
|
|
|
|
|
|
|
|
.module-media-gallery {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-11-07 21:36:16 +00:00
|
|
|
outline: none;
|
2018-07-18 00:15:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-gallery__content {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow-y: auto;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-gallery__sections {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Attachment Section
|
|
|
|
|
|
|
|
.module-attachment-section {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-attachment-section__header {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-1-bold;
|
2018-07-18 00:15:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-attachment-section__items {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Document List Item
|
|
|
|
|
|
|
|
.module-document-list-item {
|
|
|
|
width: 100%;
|
|
|
|
height: 72px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item--with-separator {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
border-bottom: 1px solid $color-gray-02;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-bottom: 1px solid $color-gray-75;
|
|
|
|
}
|
2018-07-18 00:15:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__content {
|
2019-11-07 21:36:16 +00:00
|
|
|
@include button-reset;
|
2019-11-21 19:16:06 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2018-07-18 00:15:34 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: center;
|
2019-11-21 19:16:06 +00:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-18 00:15:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__icon {
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg('../images/file.svg', $color-gray-45);
|
2018-07-18 00:15:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__metadata {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 8px;
|
2018-07-18 00:15:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__file-size {
|
|
|
|
display: inline-block;
|
|
|
|
margin-top: 8px;
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-2;
|
2018-07-18 00:15:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__date {
|
|
|
|
display: inline-block;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Media Grid Item
|
|
|
|
|
|
|
|
.module-media-grid-item {
|
2019-11-07 21:36:16 +00:00
|
|
|
@include button-reset;
|
|
|
|
|
2018-07-18 00:15:34 +00:00
|
|
|
height: 94px;
|
|
|
|
width: 94px;
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-05;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 4px;
|
2018-07-18 00:15:34 +00:00
|
|
|
margin-bottom: 4px;
|
2018-07-20 23:37:57 +00:00
|
|
|
position: relative;
|
2019-11-21 19:16:06 +00:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-18 00:15:34 +00:00
|
|
|
}
|
2018-07-18 23:00:51 +00:00
|
|
|
|
2018-07-18 00:15:34 +00:00
|
|
|
.module-media-grid-item__image {
|
|
|
|
height: 94px;
|
2021-09-17 13:46:19 +00:00
|
|
|
width: 100%;
|
2018-07-18 00:15:34 +00:00
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
2018-07-20 23:37:57 +00:00
|
|
|
.module-media-grid-item__icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 15px;
|
|
|
|
bottom: 15px;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline: 15px;
|
2018-07-20 23:37:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-grid-item__icon-image {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg('../images/image.svg', $color-gray-45);
|
2018-07-20 23:37:57 +00:00
|
|
|
}
|
|
|
|
|
2018-07-18 23:00:51 +00:00
|
|
|
.module-media-grid-item__image-container {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-grid-item__circle-overlay {
|
2023-04-20 17:03:43 +00:00
|
|
|
@include position-absolute-center;
|
2018-07-18 23:00:51 +00:00
|
|
|
width: 42px;
|
|
|
|
height: 42px;
|
|
|
|
background-color: $color-white;
|
|
|
|
border-radius: 21px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-grid-item__play-overlay {
|
2023-04-20 17:03:43 +00:00
|
|
|
@include position-absolute-center;
|
2019-10-04 18:06:17 +00:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/play/play-fill.svg',
|
2021-05-28 16:15:17 +00:00
|
|
|
$color-ultramarine
|
2019-10-04 18:06:17 +00:00
|
|
|
);
|
2018-07-18 23:00:51 +00:00
|
|
|
}
|
|
|
|
|
2018-07-20 23:37:57 +00:00
|
|
|
.module-media-grid-item__icon-video {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg('../images/movie.svg', $color-gray-45);
|
2018-07-20 23:37:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-grid-item__icon-generic {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg('../images/file.svg', $color-gray-45);
|
2018-07-20 23:37:57 +00:00
|
|
|
}
|
|
|
|
|
2018-07-18 23:00:51 +00:00
|
|
|
/* Module: Empty State*/
|
2018-07-18 00:15:34 +00:00
|
|
|
|
|
|
|
.module-empty-state {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-grow: 1;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include font-title-1;
|
|
|
|
|
|
|
|
color: $color-gray-45;
|
2018-07-18 00:15:34 +00:00
|
|
|
}
|
|
|
|
|
2020-05-27 21:37:06 +00:00
|
|
|
// Module: Message Request Actions
|
|
|
|
|
|
|
|
.module-message-request-actions {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px 12px;
|
|
|
|
padding-inline: 16px;
|
2020-05-27 21:37:06 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-95;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__message {
|
|
|
|
@include font-body-2;
|
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__name {
|
|
|
|
@include font-body-2-bold;
|
|
|
|
}
|
2020-10-16 18:31:57 +00:00
|
|
|
|
|
|
|
&__learn-more {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-05-27 21:37:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__buttons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
|
2021-04-06 22:14:18 +00:00
|
|
|
.module-Button {
|
2020-05-27 21:37:06 +00:00
|
|
|
min-width: 80px;
|
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 8px;
|
2020-05-27 21:37:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-14 18:47:19 +00:00
|
|
|
// Module: Image
|
|
|
|
|
|
|
|
.module-image {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2018-12-02 01:48:53 +00:00
|
|
|
vertical-align: middle;
|
2018-11-14 18:47:19 +00:00
|
|
|
}
|
|
|
|
|
2022-12-14 00:06:15 +00:00
|
|
|
.module-image--hidden {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2021-04-27 22:11:59 +00:00
|
|
|
.module-image--tap-to-play,
|
2021-01-29 22:58:28 +00:00
|
|
|
.module-image--not-downloaded {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
|
2021-04-27 22:11:59 +00:00
|
|
|
span {
|
2021-01-29 22:58:28 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
border-radius: 48px;
|
|
|
|
height: 48px;
|
|
|
|
width: 48px;
|
2021-04-27 22:11:59 +00:00
|
|
|
background-color: $color-black-alpha-70;
|
2021-01-29 22:58:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2021-04-27 22:11:59 +00:00
|
|
|
span {
|
|
|
|
background-color: $color-black-alpha-80;
|
2021-01-29 22:58:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2021-04-27 22:11:59 +00:00
|
|
|
span {
|
2021-01-29 22:58:28 +00:00
|
|
|
background-color: $color-gray-75;
|
2021-05-28 16:15:17 +00:00
|
|
|
border: 4px solid $color-ultramarine;
|
2021-01-29 22:58:28 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-27 22:11:59 +00:00
|
|
|
.module-image--not-downloaded {
|
|
|
|
span:after {
|
|
|
|
content: '';
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/arrow/arrow-down.svg', $color-white);
|
2021-04-27 22:11:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-image--tap-to-play {
|
|
|
|
span:after {
|
2021-05-11 22:25:28 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-04-27 22:11:59 +00:00
|
|
|
content: 'GIF';
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
@include font-body-1;
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 22:58:28 +00:00
|
|
|
.module-image__download-pending {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&--spinner-container {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
justify-content: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2021-01-29 22:58:28 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--spinner {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
border-radius: 48px;
|
|
|
|
height: 48px;
|
|
|
|
width: 48px;
|
|
|
|
|
|
|
|
.module-image-spinner {
|
|
|
|
&__container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 12px;
|
|
|
|
margin-inline: auto;
|
2021-01-29 22:58:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__arc {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__circle {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
&__arc {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
.module-image--with-background {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-black;
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
2018-11-14 18:47:19 +00:00
|
|
|
.module-image__caption-icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 6px;
|
2018-11-14 18:47:19 +00:00
|
|
|
}
|
|
|
|
|
2021-06-24 21:00:11 +00:00
|
|
|
.module-image--cropped {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2019-11-07 21:36:16 +00:00
|
|
|
.module-image__border-overlay {
|
|
|
|
@include button-reset;
|
2019-08-22 21:11:36 +00:00
|
|
|
|
2019-11-07 21:36:16 +00:00
|
|
|
width: 100%;
|
|
|
|
cursor: inherit;
|
2019-08-22 21:11:36 +00:00
|
|
|
|
2018-11-14 18:47:19 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline: 0;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__border-overlay--with-click-handler {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2019-11-07 21:36:16 +00:00
|
|
|
.module-image__border-overlay--with-border {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2023-10-30 16:24:28 +00:00
|
|
|
box-shadow: inset 0px 0px 0px 1px $color-black-alpha-085;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
box-shadow: inset 0px 0px 0px 1px $color-white-alpha-20;
|
|
|
|
}
|
2018-11-14 18:47:19 +00:00
|
|
|
}
|
|
|
|
|
2021-04-27 22:11:59 +00:00
|
|
|
.module-image--gif {
|
|
|
|
&__filesize {
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 10px;
|
|
|
|
padding-block: 2px;
|
|
|
|
padding-inline: 8px;
|
2021-04-27 22:11:59 +00:00
|
|
|
|
|
|
|
color: $color-white;
|
|
|
|
background: $color-black-alpha-70;
|
|
|
|
|
|
|
|
/* The height is: 14px + 2x2px from the padding */
|
|
|
|
border-radius: 9px;
|
|
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
line-height: 14px;
|
2021-07-12 19:58:45 +00:00
|
|
|
user-select: none;
|
2021-04-27 22:11:59 +00:00
|
|
|
}
|
2021-07-14 23:39:52 +00:00
|
|
|
|
|
|
|
video {
|
|
|
|
cursor: pointer;
|
2023-09-27 18:42:36 +00:00
|
|
|
object-fit: cover;
|
2021-07-14 23:39:52 +00:00
|
|
|
}
|
2021-04-27 22:11:59 +00:00
|
|
|
}
|
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
button.module-image__border-overlay:focus {
|
|
|
|
@include keyboard-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: inset 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
|
|
|
|
2018-11-14 18:47:19 +00:00
|
|
|
.module-image__border-overlay--dark {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-black-alpha-20;
|
2018-11-14 18:47:19 +00:00
|
|
|
}
|
|
|
|
|
2019-01-30 20:15:07 +00:00
|
|
|
.module-image__loading-placeholder {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-black-alpha-20;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-white-alpha-20;
|
|
|
|
}
|
2019-01-30 20:15:07 +00:00
|
|
|
}
|
|
|
|
|
2018-11-14 18:47:19 +00:00
|
|
|
.module-image__image {
|
|
|
|
object-fit: cover;
|
|
|
|
// redundant with attachment-container, but we get cursor flashing on move otherwise
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__bottom-overlay {
|
|
|
|
height: 48px;
|
|
|
|
background-image: linear-gradient(
|
|
|
|
to bottom,
|
|
|
|
rgba(0, 0, 0, 0),
|
|
|
|
rgba(0, 0, 0, 0) 9%,
|
|
|
|
rgba(0, 0, 0, 0.02) 17%,
|
|
|
|
rgba(0, 0, 0, 0.05) 24%,
|
|
|
|
rgba(0, 0, 0, 0.08) 31%,
|
|
|
|
rgba(0, 0, 0, 0.12) 37%,
|
|
|
|
rgba(0, 0, 0, 0.16) 44%,
|
|
|
|
rgba(0, 0, 0, 0.2) 50%,
|
|
|
|
rgba(0, 0, 0, 0.24) 56%,
|
|
|
|
rgba(0, 0, 0, 0.28) 63%,
|
|
|
|
rgba(0, 0, 0, 0.32) 69%,
|
|
|
|
rgba(0, 0, 0, 0.35) 76%,
|
|
|
|
rgba(0, 0, 0, 0.38) 83%,
|
|
|
|
rgba(0, 0, 0, 0.4) 91%,
|
|
|
|
rgba(0, 0, 0, 0.4)
|
|
|
|
);
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-base;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline: 0;
|
2018-11-14 18:47:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__play-overlay__circle {
|
2023-04-20 17:03:43 +00:00
|
|
|
@include position-absolute-center;
|
2018-11-14 18:47:19 +00:00
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
background-color: $color-white;
|
|
|
|
border-radius: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__play-overlay__icon {
|
2023-04-20 17:03:43 +00:00
|
|
|
@include position-absolute-center;
|
2018-11-14 18:47:19 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/play/play-fill.svg',
|
2021-05-28 16:15:17 +00:00
|
|
|
$color-ultramarine
|
2019-10-04 18:06:17 +00:00
|
|
|
);
|
2018-11-14 18:47:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__text-container {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline: 0;
|
2018-11-14 18:47:19 +00:00
|
|
|
bottom: 0;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-above-base;
|
2020-07-24 01:35:32 +00:00
|
|
|
|
|
|
|
// This allows click-through to the overlay button behind it
|
|
|
|
pointer-events: none;
|
2018-11-14 18:47:19 +00:00
|
|
|
|
|
|
|
color: $color-white;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-1;
|
2018-11-14 18:47:19 +00:00
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2018-12-02 01:48:53 +00:00
|
|
|
.module-image__close-button {
|
2021-09-21 01:23:55 +00:00
|
|
|
@include staged-attachment-close-button;
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2023-05-04 18:04:22 +00:00
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
@include color-svg('../images/icons/v3/x/x-compact.svg', $color-white);
|
|
|
|
}
|
|
|
|
background-image: url('../images/icons/v3/x/x-compact.svg');
|
|
|
|
filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.6));
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
outline: 2px solid $color-ultramarine;
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
2018-12-02 01:48:53 +00:00
|
|
|
}
|
|
|
|
|
2018-11-14 18:47:19 +00:00
|
|
|
// Module: Image Grid
|
|
|
|
|
|
|
|
.module-image-grid {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-06-24 21:00:11 +00:00
|
|
|
gap: 1px;
|
2018-11-14 18:47:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-image-grid--one-image {
|
|
|
|
margin-bottom: -5px;
|
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
.module-image-grid--with-sticker {
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
|
2018-11-14 18:47:19 +00:00
|
|
|
.module-image-grid__column {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2021-06-24 21:00:11 +00:00
|
|
|
gap: 1px;
|
2018-11-14 18:47:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-image-grid__row {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2018-11-14 19:10:32 +00:00
|
|
|
flex-grow: 1;
|
2021-06-24 21:00:11 +00:00
|
|
|
gap: 1px;
|
2018-11-14 19:10:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Typing Animation
|
|
|
|
|
|
|
|
.module-typing-animation {
|
|
|
|
display: inline-flex;
|
2021-07-01 23:43:10 +00:00
|
|
|
flex-direction: row;
|
2018-11-14 19:10:32 +00:00
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
height: 8px;
|
|
|
|
width: 38px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 1px;
|
2018-11-14 19:10:32 +00:00
|
|
|
}
|
|
|
|
|
2023-10-02 20:18:28 +00:00
|
|
|
.module-message__typing-animation-container .module-typing-animation {
|
|
|
|
width: 30px;
|
|
|
|
}
|
|
|
|
|
2018-11-14 19:10:32 +00:00
|
|
|
.module-typing-animation__dot {
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
height: 6px;
|
|
|
|
width: 6px;
|
|
|
|
opacity: 0.4;
|
2021-07-01 23:43:10 +00:00
|
|
|
will-change: transform, opacity;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
2018-11-14 19:10:32 +00:00
|
|
|
|
2021-07-30 18:35:43 +00:00
|
|
|
@include only-when-page-is-visible {
|
2021-08-25 19:02:32 +00:00
|
|
|
animation: {
|
|
|
|
name: typing-animation;
|
|
|
|
duration: 1600ms;
|
|
|
|
timing-function: ease;
|
|
|
|
iteration-count: infinite;
|
|
|
|
}
|
2021-07-30 18:35:43 +00:00
|
|
|
}
|
2021-07-01 23:43:10 +00:00
|
|
|
}
|
2018-11-14 19:10:32 +00:00
|
|
|
|
2021-07-01 23:43:10 +00:00
|
|
|
.module-left-pane .module-typing-animation__dot {
|
2021-07-30 18:35:43 +00:00
|
|
|
@include only-when-page-is-visible {
|
|
|
|
animation-name: typing-animation-bare;
|
|
|
|
}
|
2021-07-01 23:43:10 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-07-01 23:43:10 +00:00
|
|
|
.module-typing-animation__dot--light {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-white;
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
2018-11-14 19:10:32 +00:00
|
|
|
}
|
|
|
|
|
2021-07-01 23:43:10 +00:00
|
|
|
@keyframes typing-animation {
|
2018-11-14 19:10:32 +00:00
|
|
|
0% {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
20% {
|
|
|
|
transform: scale(1.3);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
40% {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-01 23:43:10 +00:00
|
|
|
@keyframes typing-animation-bare {
|
|
|
|
0% {
|
2018-11-14 19:10:32 +00:00
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
20% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2021-07-01 23:43:10 +00:00
|
|
|
40% {
|
2018-11-14 19:10:32 +00:00
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-typing-animation__dot--second {
|
2021-07-01 23:43:10 +00:00
|
|
|
animation-delay: 160ms;
|
2018-11-14 19:10:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-typing-animation__dot--third {
|
2021-07-01 23:43:10 +00:00
|
|
|
animation-delay: 320ms;
|
2018-11-14 19:10:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-typing-animation__spacer {
|
|
|
|
flex-grow: 1;
|
2018-11-14 18:47:19 +00:00
|
|
|
}
|
|
|
|
|
2018-12-02 01:48:53 +00:00
|
|
|
// Module: Attachments
|
|
|
|
|
|
|
|
.module-attachments__header {
|
|
|
|
height: 24px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2021-12-01 02:14:25 +00:00
|
|
|
.module-attachments__edit-icon {
|
|
|
|
align-items: center;
|
|
|
|
background: $color-black-alpha-60;
|
|
|
|
border-radius: 100%;
|
|
|
|
display: flex;
|
|
|
|
height: 36px;
|
|
|
|
justify-content: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 50%;
|
|
|
|
margin-inline-start: -20px;
|
2021-12-01 02:14:25 +00:00
|
|
|
margin-top: -18px;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
visibility: hidden;
|
|
|
|
width: 36px;
|
|
|
|
|
|
|
|
&::after {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/edit/edit-compact.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
2021-12-01 02:14:25 +00:00
|
|
|
content: '';
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-attachments--editable {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.module-attachments__edit-icon {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-02 01:48:53 +00:00
|
|
|
.module-attachments__close-button {
|
2023-05-04 18:04:22 +00:00
|
|
|
$icon: '../images/icons/v3/x/x.svg';
|
2022-01-06 17:54:15 +00:00
|
|
|
|
2019-11-07 21:36:16 +00:00
|
|
|
@include button-reset;
|
|
|
|
|
2018-12-02 01:48:53 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 16px;
|
2018-12-02 01:48:53 +00:00
|
|
|
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2022-01-06 17:54:15 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg($icon, $color-black);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg($icon, $color-white);
|
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2022-01-06 17:54:15 +00:00
|
|
|
@include color-svg($icon, $color-ultramarine);
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
2018-12-02 01:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-attachments__rail {
|
|
|
|
margin-top: 12px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 12px;
|
|
|
|
padding-inline-end: 12px;
|
2018-12-02 01:48:53 +00:00
|
|
|
overflow-x: scroll;
|
|
|
|
max-height: 142px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-y: hidden;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
}
|
|
|
|
|
2021-09-21 01:23:55 +00:00
|
|
|
.module-staged-attachment {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 8px;
|
2021-09-21 01:23:55 +00:00
|
|
|
|
|
|
|
&.module-image::before {
|
|
|
|
background: linear-gradient(
|
|
|
|
180deg,
|
|
|
|
$color-black-alpha-30 0%,
|
|
|
|
transparent 100%
|
|
|
|
);
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 40px;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
transition: opacity 0.2s ease-out;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.module-image:hover::before {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-02 01:48:53 +00:00
|
|
|
// Module: Staged Generic Attachment
|
|
|
|
|
|
|
|
.module-staged-generic-attachment {
|
|
|
|
height: 120px;
|
|
|
|
width: 120px;
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
border-radius: 4px;
|
|
|
|
vertical-align: middle;
|
2020-08-29 01:30:24 +00:00
|
|
|
white-space: nowrap;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
box-shadow: inset 0px 0px 0px 1px $color-black-alpha-20;
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
box-shadow: inset 0px 0px 0px 1px $color-gray-45;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2018-12-02 01:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-generic-attachment__close-button {
|
2021-09-21 01:23:55 +00:00
|
|
|
@include staged-attachment-close-button;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x-compact.svg', $color-black);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x-compact.svg', $color-gray-45);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2018-12-02 01:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-generic-attachment__icon {
|
|
|
|
margin-top: 30px;
|
|
|
|
|
|
|
|
background: url('../images/file-gradient.svg') no-repeat center;
|
|
|
|
height: 44px;
|
|
|
|
width: 56px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 32px;
|
2018-12-02 01:48:53 +00:00
|
|
|
margin-bottom: -4px;
|
|
|
|
|
|
|
|
// So we can center the extension text inside this icon
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-generic-attachment__icon__extension {
|
|
|
|
font-size: 10px;
|
|
|
|
line-height: 13px;
|
|
|
|
letter-spacing: 0.1px;
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
|
|
// Along with flow layout in parent item, centers text
|
|
|
|
text-align: center;
|
|
|
|
width: 25px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2018-12-02 01:48:53 +00:00
|
|
|
|
|
|
|
// We don't have much room for text here, cut it off without ellipse
|
|
|
|
overflow-x: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: clip;
|
|
|
|
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-generic-attachment__filename {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-caption;
|
|
|
|
|
2018-12-02 01:48:53 +00:00
|
|
|
margin: 7px;
|
|
|
|
margin-top: 5px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
height: 2.4em;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2019-01-15 17:33:23 +00:00
|
|
|
// Module: Staged Placeholder Attachment
|
|
|
|
|
|
|
|
.module-staged-placeholder-attachment {
|
2019-11-07 21:36:16 +00:00
|
|
|
@include button-reset;
|
|
|
|
|
2019-01-15 17:33:23 +00:00
|
|
|
margin: 1px;
|
|
|
|
border-radius: 4px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2019-01-15 17:33:23 +00:00
|
|
|
height: 120px;
|
|
|
|
width: 120px;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
position: relative;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
border: 1px solid $color-gray-25;
|
|
|
|
&:hover {
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
2019-11-07 21:36:16 +00:00
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: inset 0 0 0 2px $color-ultramarine;
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-11-21 19:16:06 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include dark-theme {
|
|
|
|
border: 1px solid $color-gray-60;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
2019-11-21 19:16:06 +00:00
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
2019-11-07 21:36:16 +00:00
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: inset 0 0 0 2px $color-ultramarine;
|
2019-11-07 21:36:16 +00:00
|
|
|
}
|
2019-01-15 17:33:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-placeholder-attachment__plus-icon {
|
2023-04-20 17:03:43 +00:00
|
|
|
@include position-absolute-center;
|
2023-05-04 18:04:22 +00:00
|
|
|
height: 28px;
|
|
|
|
width: 28px;
|
2019-01-15 17:33:23 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/plus/plus-light.svg',
|
|
|
|
$color-gray-45
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/plus/plus-light.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-01-15 17:33:23 +00:00
|
|
|
}
|
|
|
|
|
2022-11-30 21:47:54 +00:00
|
|
|
.module-payment-notification {
|
|
|
|
&__container {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__label {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0 7px;
|
|
|
|
margin-inline: 0;
|
2022-11-30 21:47:54 +00:00
|
|
|
@include font-subtitle;
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__check_device_box {
|
|
|
|
display: flex;
|
|
|
|
gap: 9px;
|
|
|
|
align-items: center;
|
|
|
|
@include font-body-2;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 22px;
|
|
|
|
padding-inline: 7px;
|
|
|
|
padding-inline-start: 12px;
|
2022-11-30 21:47:54 +00:00
|
|
|
border-radius: 18px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0;
|
|
|
|
margin-inline: -4px;
|
2022-11-30 21:47:54 +00:00
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
background: $color-white-alpha-60;
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-white-alpha-20;
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
flex-shrink: 0;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/info/info.svg', currentcolor);
|
2022-11-30 21:47:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__note {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 9px 0;
|
|
|
|
margin-inline: 0;
|
2022-11-30 21:47:54 +00:00
|
|
|
@include font-body-1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--outgoing &__label {
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--outgoing &__check_device_box {
|
|
|
|
background: $color-white-alpha-20;
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-30 20:15:07 +00:00
|
|
|
// Module: Spinner
|
|
|
|
|
|
|
|
.module-spinner__container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2019-01-30 20:15:07 +00:00
|
|
|
position: relative;
|
|
|
|
height: 56px;
|
|
|
|
width: 56px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-spinner__circle {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2019-01-30 20:15:07 +00:00
|
|
|
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2019-06-26 19:33:13 +00:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include color-svg('../images/spinner-track-56.svg', $color-white-alpha-40);
|
2019-01-30 20:15:07 +00:00
|
|
|
}
|
|
|
|
.module-spinner__arc {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2019-01-30 20:15:07 +00:00
|
|
|
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-above-base;
|
2019-06-26 19:33:13 +00:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2019-01-30 20:15:07 +00:00
|
|
|
|
2021-07-30 18:35:43 +00:00
|
|
|
animation: rotate 1000ms linear infinite;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/spinner-56.svg', $color-gray-60);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/spinner-56.svg', $color-gray-05);
|
|
|
|
}
|
2019-01-30 20:15:07 +00:00
|
|
|
}
|
|
|
|
|
2019-03-13 20:38:28 +00:00
|
|
|
// In these --small and --mini sizes, we're exploding our @color-svg mixin so we don't
|
|
|
|
// have to duplicate our background colors for the dark/ios/size matrix.
|
|
|
|
|
2019-05-31 22:42:01 +00:00
|
|
|
.module-spinner__container--small {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
|
2019-01-30 20:15:07 +00:00
|
|
|
.module-spinner__circle--small {
|
2019-03-13 20:38:28 +00:00
|
|
|
-webkit-mask: url('../images/spinner-track-24.svg') no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
2021-09-08 00:11:17 +00:00
|
|
|
|
|
|
|
// For specificity
|
|
|
|
@include dark-theme {
|
|
|
|
-webkit-mask: url('../images/spinner-track-24.svg') no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
|
|
|
}
|
2019-01-30 20:15:07 +00:00
|
|
|
}
|
|
|
|
.module-spinner__arc--small {
|
2019-03-13 20:38:28 +00:00
|
|
|
-webkit-mask: url('../images/spinner-24.svg') no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
2021-09-08 00:11:17 +00:00
|
|
|
|
|
|
|
// For specificity
|
|
|
|
@include dark-theme {
|
|
|
|
-webkit-mask: url('../images/spinner-24.svg') no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
|
|
|
}
|
2019-06-27 20:35:21 +00:00
|
|
|
}
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
.module-spinner__circle--incoming {
|
|
|
|
background-color: $color-white-alpha-40;
|
2019-06-27 20:35:21 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
.module-spinner__arc--incoming {
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
2019-01-30 20:15:07 +00:00
|
|
|
}
|
2019-03-13 20:38:28 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
.module-spinner__circle--outgoing {
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-white-alpha-40;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-white-alpha-40;
|
|
|
|
}
|
2019-01-30 20:15:07 +00:00
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
.module-spinner__arc--outgoing {
|
2021-05-28 16:15:17 +00:00
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2021-05-28 16:15:17 +00:00
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
2019-01-30 20:15:07 +00:00
|
|
|
}
|
|
|
|
|
2021-01-29 22:16:48 +00:00
|
|
|
.module-spinner__circle--on-avatar {
|
|
|
|
background-color: $color-white-alpha-40;
|
|
|
|
}
|
2019-05-31 22:42:01 +00:00
|
|
|
.module-spinner__circle--on-background {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
2019-05-31 22:42:01 +00:00
|
|
|
}
|
|
|
|
.module-spinner__arc--on-background {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
2019-05-31 22:42:01 +00:00
|
|
|
}
|
|
|
|
|
2023-02-27 22:34:43 +00:00
|
|
|
.module-spinner__circle--on-primary-button {
|
2021-05-06 00:09:29 +00:00
|
|
|
background-color: $color-white-alpha-40;
|
|
|
|
}
|
|
|
|
|
2020-10-06 17:06:34 +00:00
|
|
|
.module-spinner__circle--on-progress-dialog {
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module-spinner__arc--on-progress-dialog {
|
2021-05-28 16:15:17 +00:00
|
|
|
background-color: $color-ultramarine;
|
2020-10-06 17:06:34 +00:00
|
|
|
}
|
2021-01-29 22:16:48 +00:00
|
|
|
.module-spinner__arc--on-avatar {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2023-02-27 22:34:43 +00:00
|
|
|
.module-spinner__arc--on-primary-button {
|
2021-05-06 00:09:29 +00:00
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2020-10-06 17:06:34 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
// Module: Reaction Viewer
|
2020-01-17 22:23:19 +00:00
|
|
|
|
|
|
|
.module-reaction-viewer {
|
|
|
|
width: 320px;
|
|
|
|
height: 320px;
|
|
|
|
border-radius: 8px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
@include popper-shadow();
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
width: 100%;
|
|
|
|
min-height: 44px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0px;
|
|
|
|
padding-inline: 8px;
|
2020-01-17 22:23:19 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
min-height: 28px;
|
|
|
|
border: none;
|
|
|
|
border-radius: 18px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0px;
|
|
|
|
padding-inline: 8px;
|
2020-01-17 22:23:19 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2020-02-05 23:14:25 +00:00
|
|
|
flex-basis: 45px;
|
|
|
|
flex-shrink: 0;
|
2020-01-17 22:23:19 +00:00
|
|
|
|
|
|
|
&:not(:first-of-type) {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 4px;
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
&--selected {
|
|
|
|
@include light-theme() {
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-05 23:14:25 +00:00
|
|
|
&__count,
|
|
|
|
&__all {
|
2020-01-17 22:23:19 +00:00
|
|
|
@include font-body-2-bold();
|
2020-02-05 23:14:25 +00:00
|
|
|
|
|
|
|
white-space: nowrap;
|
2020-01-17 22:23:19 +00:00
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
2020-02-05 23:14:25 +00:00
|
|
|
|
|
|
|
&__count {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 4px;
|
2020-02-05 23:14:25 +00:00
|
|
|
}
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__body {
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 16px;
|
2020-01-17 22:23:19 +00:00
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
&__row {
|
2020-02-05 23:14:25 +00:00
|
|
|
margin-top: 12px;
|
2020-01-17 22:23:19 +00:00
|
|
|
min-height: 32px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-02-05 23:14:25 +00:00
|
|
|
&:last-of-type {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
2020-02-03 22:00:50 +00:00
|
|
|
&__avatar {
|
2020-01-17 22:23:19 +00:00
|
|
|
min-width: 32px;
|
2020-02-05 23:14:25 +00:00
|
|
|
flex-shrink: 1;
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
|
2020-02-03 22:00:50 +00:00
|
|
|
&__name {
|
2020-01-17 22:23:19 +00:00
|
|
|
@include font-body-1-bold();
|
2020-02-05 23:14:25 +00:00
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 8px;
|
2020-01-17 22:23:19 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
2020-02-05 23:14:25 +00:00
|
|
|
|
|
|
|
&__emoji {
|
|
|
|
width: 18px;
|
|
|
|
flex-shrink: 1;
|
|
|
|
}
|
2020-01-17 22:23:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-01 19:09:15 +00:00
|
|
|
// Module: Calling
|
2020-10-08 01:25:33 +00:00
|
|
|
.module-calling {
|
2022-10-17 16:58:49 +00:00
|
|
|
// creates a new independent stacking context that includes modals
|
|
|
|
//
|
|
|
|
// container has no width/height, direct children need to:
|
|
|
|
// - size themselves explicitly (no percentage width/height or top/bottom or left/right)
|
|
|
|
// - size themselves in relation to viewport (position: fixed)
|
|
|
|
&__modal-container {
|
|
|
|
position: fixed;
|
2024-01-16 21:32:38 +00:00
|
|
|
top: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2023-07-18 21:31:15 +00:00
|
|
|
z-index: $z-index-calling-container;
|
2022-10-17 16:58:49 +00:00
|
|
|
}
|
|
|
|
|
2020-10-08 01:25:33 +00:00
|
|
|
&__container {
|
|
|
|
align-items: center;
|
2021-01-08 18:58:28 +00:00
|
|
|
background-color: $calling-background-color;
|
2020-10-08 01:25:33 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-01-16 21:32:38 +00:00
|
|
|
height: 100vh;
|
2020-11-13 19:57:55 +00:00
|
|
|
justify-content: center;
|
2022-10-17 16:58:49 +00:00
|
|
|
position: fixed;
|
2023-11-13 14:56:48 +00:00
|
|
|
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
|
|
left: 0;
|
2024-01-16 21:32:38 +00:00
|
|
|
top: 0;
|
2020-10-08 01:25:33 +00:00
|
|
|
width: 100%;
|
2022-04-07 23:27:20 +00:00
|
|
|
z-index: $z-index-calling;
|
2020-10-08 01:25:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__background {
|
2020-10-12 18:26:24 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-10-08 01:25:33 +00:00
|
|
|
height: 100%;
|
2020-10-12 18:26:24 +00:00
|
|
|
justify-content: center;
|
|
|
|
overflow: hidden;
|
2020-11-04 19:56:03 +00:00
|
|
|
position: relative;
|
2020-10-08 01:25:33 +00:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&--blur {
|
2020-10-12 18:26:24 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
2020-11-04 19:56:03 +00:00
|
|
|
background-position: center;
|
2020-10-12 18:26:24 +00:00
|
|
|
filter: blur(25px);
|
2020-10-08 01:25:33 +00:00
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2023-10-30 20:31:54 +00:00
|
|
|
// Improve appearance of blurred edges by reducing edge gradient effect
|
|
|
|
transform: scale(1.2, 1.2);
|
2020-10-08 01:25:33 +00:00
|
|
|
}
|
|
|
|
}
|
2020-12-10 18:40:34 +00:00
|
|
|
|
2021-08-17 21:45:18 +00:00
|
|
|
&__camera-is-off {
|
|
|
|
@include calling-text-shadow;
|
2023-10-31 19:32:56 +00:00
|
|
|
align-items: center;
|
2021-08-17 21:45:18 +00:00
|
|
|
color: $color-white;
|
|
|
|
display: flex;
|
2023-10-31 19:32:56 +00:00
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
font-size: 15px;
|
|
|
|
line-height: 20px;
|
|
|
|
margin-block-start: 15px;
|
|
|
|
margin-block-end: 15px;
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
|
|
transition: opacity 100ms ease-out;
|
|
|
|
user-select: none;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-base;
|
2021-08-17 21:45:18 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2023-10-31 19:32:56 +00:00
|
|
|
background-color: $color-white;
|
|
|
|
-webkit-mask-repeat: no-repeat;
|
|
|
|
-webkit-mask-position: center;
|
|
|
|
-webkit-mask-size: 100%;
|
|
|
|
-webkit-mask-image: url('../images/icons/v3/video/video-slash-light.svg');
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
margin-block-end: 12px;
|
2020-12-10 18:40:34 +00:00
|
|
|
}
|
|
|
|
}
|
2023-10-31 19:32:56 +00:00
|
|
|
|
|
|
|
&__camera-is-off-spacer {
|
|
|
|
flex-basis: 120px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-calling__spacer {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 1;
|
2020-10-08 01:25:33 +00:00
|
|
|
}
|
2020-10-01 19:09:15 +00:00
|
|
|
|
2020-06-04 18:16:19 +00:00
|
|
|
@keyframes module-ongoing-call__controls--fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes module-ongoing-call__controls--fade-out {
|
|
|
|
from {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
2023-11-13 14:56:48 +00:00
|
|
|
@mixin module-ongoing-call__controls--fade-in {
|
|
|
|
animation: {
|
2023-11-15 20:38:28 +00:00
|
|
|
name: module-ongoing-call__controls--fade-in;
|
2023-11-13 14:56:48 +00:00
|
|
|
duration: 1200ms;
|
|
|
|
timing-function: $ease-out-expo;
|
|
|
|
fill-mode: forwards;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin module-ongoing-call__controls--fade-out {
|
|
|
|
animation: {
|
|
|
|
name: module-ongoing-call__controls--fade-out;
|
|
|
|
duration: 1200ms;
|
|
|
|
timing-function: $ease-out-expo;
|
|
|
|
fill-mode: forwards;
|
|
|
|
}
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-06-04 18:16:19 +00:00
|
|
|
|
2023-11-13 14:56:48 +00:00
|
|
|
.module-ongoing-call__container--hide-controls {
|
|
|
|
.module-ongoing-call__prev-page,
|
|
|
|
.module-ongoing-call__next-page {
|
|
|
|
@include module-ongoing-call__controls--fade-out;
|
|
|
|
}
|
|
|
|
}
|
2020-10-08 01:25:33 +00:00
|
|
|
.module-ongoing-call {
|
2023-11-02 20:28:03 +00:00
|
|
|
$local-preview-width: 108px;
|
2023-10-25 13:40:22 +00:00
|
|
|
$local-preview-height: 80px;
|
2020-11-04 19:56:03 +00:00
|
|
|
|
2020-10-08 01:25:33 +00:00
|
|
|
&__remote-video-enabled {
|
|
|
|
background-color: $color-gray-95;
|
2020-11-20 20:24:55 +00:00
|
|
|
height: 100%;
|
2020-10-08 01:25:33 +00:00
|
|
|
width: 100%;
|
2023-10-16 17:58:51 +00:00
|
|
|
&--reconnecting {
|
|
|
|
filter: blur(15px);
|
|
|
|
}
|
2020-06-04 18:16:19 +00:00
|
|
|
}
|
|
|
|
|
2020-10-08 01:25:33 +00:00
|
|
|
&__remote-video-disabled {
|
|
|
|
background-color: $color-gray-95;
|
2024-01-16 21:32:38 +00:00
|
|
|
height: 100vh;
|
2020-10-08 01:25:33 +00:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2020-11-13 19:57:55 +00:00
|
|
|
&__container {
|
2021-08-25 21:42:51 +00:00
|
|
|
&--direct:not(&--call-not-started) {
|
2020-11-13 19:57:55 +00:00
|
|
|
.module-ongoing-call__footer {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-13 14:56:48 +00:00
|
|
|
&__next-page,
|
|
|
|
&__prev-page {
|
|
|
|
@include button-reset;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 50%;
|
|
|
|
background-color: $color-gray-78;
|
|
|
|
z-index: $z-index-above-above-base;
|
|
|
|
|
|
|
|
&--arrow {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__next-page {
|
|
|
|
inset-inline-end: 4px;
|
|
|
|
&--arrow {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__prev-page {
|
|
|
|
inset-inline-start: 4px;
|
|
|
|
&--arrow {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-25 21:42:51 +00:00
|
|
|
&__direct-call-ringing-spacer {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
2021-01-08 18:58:28 +00:00
|
|
|
&__participants {
|
|
|
|
display: flex;
|
|
|
|
flex: 1 1 0;
|
2020-11-13 19:57:55 +00:00
|
|
|
width: 100%;
|
2023-10-30 20:31:54 +00:00
|
|
|
margin-block-start: 24px;
|
2023-10-30 18:30:29 +00:00
|
|
|
z-index: $z-index-above-base;
|
2023-11-14 22:05:17 +00:00
|
|
|
-webkit-app-region: no-drag;
|
2021-01-08 18:58:28 +00:00
|
|
|
|
2023-11-13 14:56:48 +00:00
|
|
|
&__grid--wrapper {
|
|
|
|
margin-block-start: 26px;
|
|
|
|
margin-block-end: 16px;
|
|
|
|
margin-inline: 16px;
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2021-01-08 18:58:28 +00:00
|
|
|
&__grid {
|
|
|
|
flex-grow: 1;
|
|
|
|
position: relative;
|
2023-12-06 21:52:29 +00:00
|
|
|
|
|
|
|
.module-ongoing-call__group-call-remote-participant--hand-raised
|
|
|
|
.module-ongoing-call__group-call-remote-participant__info__contact-name {
|
|
|
|
display: block;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
2024-01-19 20:11:55 +00:00
|
|
|
|
|
|
|
.module-ongoing-call__group-call-remote-participant {
|
|
|
|
// Only apply container-type: size to grid column to prevent size collapse
|
|
|
|
// for implicitly sized participants (PiP)
|
|
|
|
container-type: size;
|
|
|
|
|
|
|
|
@container (min-width: 180px) or (min-height: 180px) {
|
|
|
|
.module-ongoing-call__group-call-remote-participant__footer {
|
|
|
|
padding-block: 0 14px;
|
|
|
|
padding-inline: 16px;
|
|
|
|
}
|
2024-01-23 19:08:21 +00:00
|
|
|
|
|
|
|
.module-ongoing-call__group-call-remote-participant__error-icon {
|
|
|
|
margin-block-end: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-ongoing-call__group-call-remote-participant__error {
|
|
|
|
display: block;
|
|
|
|
}
|
2024-01-19 20:11:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--hand-raised {
|
|
|
|
.module-ongoing-call__group-call-remote-participant__footer {
|
|
|
|
padding-block: 0 8px;
|
|
|
|
padding-inline: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-08 18:58:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__overflow {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
position: relative;
|
2024-01-17 20:37:04 +00:00
|
|
|
margin-block-start: calc(60px + var(--title-bar-drag-area-height));
|
2023-11-13 14:56:48 +00:00
|
|
|
margin-inline-end: 16px;
|
2021-01-08 18:58:28 +00:00
|
|
|
|
|
|
|
&__inner {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2021-01-08 18:58:28 +00:00
|
|
|
width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar,
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
width: 0;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& .module-ongoing-call__group-call-remote-participant {
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 1rem;
|
2024-01-17 20:37:04 +00:00
|
|
|
|
|
|
|
&__footer {
|
2024-01-23 19:08:21 +00:00
|
|
|
height: 40px;
|
2024-01-19 20:11:55 +00:00
|
|
|
padding-block: 0 8px;
|
2024-01-17 20:37:04 +00:00
|
|
|
padding-inline: 10px;
|
|
|
|
}
|
2024-01-19 20:11:55 +00:00
|
|
|
|
|
|
|
&--hand-raised {
|
|
|
|
.module-ongoing-call__group-call-remote-participant__footer {
|
|
|
|
padding-block: 0 6px;
|
|
|
|
padding-inline: 6px;
|
|
|
|
}
|
|
|
|
}
|
2021-01-08 18:58:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__scroll-marker {
|
|
|
|
$scroll-marker-selector: &;
|
|
|
|
|
2021-03-15 18:50:22 +00:00
|
|
|
@include smooth-scroll;
|
|
|
|
|
2021-01-08 18:58:28 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2021-01-08 18:58:28 +00:00
|
|
|
opacity: 1;
|
|
|
|
position: absolute;
|
|
|
|
transition: opacity 200ms ease-out;
|
|
|
|
width: 100%;
|
2022-02-16 18:47:19 +00:00
|
|
|
z-index: $z-index-above-above-base;
|
2021-01-08 18:58:28 +00:00
|
|
|
|
|
|
|
&--hidden {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
&::before {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-down.svg',
|
2023-11-07 18:26:09 +00:00
|
|
|
$color-gray-15
|
2021-01-08 18:58:28 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-11-07 18:26:09 +00:00
|
|
|
background: $color-gray-78;
|
2021-01-08 18:58:28 +00:00
|
|
|
border-radius: 100%;
|
|
|
|
border: 0;
|
2023-11-07 18:26:09 +00:00
|
|
|
height: 24px;
|
|
|
|
padding-inline: 4px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 0;
|
2021-01-08 18:58:28 +00:00
|
|
|
opacity: 0;
|
|
|
|
outline: none;
|
|
|
|
transition: opacity 200ms ease-out;
|
2023-11-07 18:26:09 +00:00
|
|
|
width: 24px;
|
2021-01-08 18:58:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--top {
|
|
|
|
top: 0;
|
|
|
|
background: linear-gradient(
|
|
|
|
$calling-background-color,
|
|
|
|
transparent 20px,
|
|
|
|
transparent
|
|
|
|
);
|
|
|
|
|
|
|
|
#{$scroll-marker-selector}__button {
|
2024-01-17 20:37:04 +00:00
|
|
|
margin-block-start: 16px;
|
2021-01-08 18:58:28 +00:00
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--bottom {
|
|
|
|
bottom: 0;
|
|
|
|
background: linear-gradient(
|
|
|
|
to top,
|
|
|
|
$calling-background-color,
|
|
|
|
transparent 20px,
|
|
|
|
transparent
|
|
|
|
);
|
2023-11-07 18:26:09 +00:00
|
|
|
|
|
|
|
#{$scroll-marker-selector}__button {
|
|
|
|
margin-block-end: 16px;
|
|
|
|
}
|
2021-01-08 18:58:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover &__scroll-marker__button {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2020-11-13 19:57:55 +00:00
|
|
|
}
|
|
|
|
|
2023-11-13 14:56:48 +00:00
|
|
|
&__group-call--pagination-tile {
|
|
|
|
@include button-reset;
|
|
|
|
position: absolute;
|
|
|
|
border-radius: 10px;
|
|
|
|
background-color: $color-gray-78;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
@include font-body-1;
|
|
|
|
color: $color-gray-20;
|
|
|
|
&--next-arrow {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
|
|
|
$color-gray-20
|
|
|
|
);
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
&--prev-arrow {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
|
|
|
$color-gray-20
|
|
|
|
);
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-13 19:57:55 +00:00
|
|
|
&__group-call-remote-participant {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2020-11-16 19:57:58 +00:00
|
|
|
position: relative;
|
2020-11-13 19:57:55 +00:00
|
|
|
|
|
|
|
line-height: 0;
|
|
|
|
overflow: hidden;
|
2023-10-25 13:40:22 +00:00
|
|
|
border-radius: 10px;
|
2023-11-13 14:56:48 +00:00
|
|
|
transition: top 200ms linear, inset-inline-start 200ms linear,
|
|
|
|
transform 200ms linear, width 200ms linear, height 200ms linear;
|
2020-11-13 19:57:55 +00:00
|
|
|
|
2023-12-14 17:51:55 +00:00
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
|
2023-02-28 20:01:52 +00:00
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2023-03-06 22:47:22 +00:00
|
|
|
z-index: $z-index-above-above-base;
|
2023-02-28 20:01:52 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: 0 solid transparent;
|
2023-10-25 13:40:22 +00:00
|
|
|
border-radius: 10px;
|
2023-03-06 22:47:22 +00:00
|
|
|
transition-property: border-width, border-color;
|
2023-03-07 22:10:54 +00:00
|
|
|
// Turn on the transition when the user stops speaking to fade out.
|
2023-03-06 22:47:22 +00:00
|
|
|
transition-duration: 300ms;
|
|
|
|
transition-delay: 1000ms;
|
2023-02-28 20:01:52 +00:00
|
|
|
transition-timing-function: ease-in-out;
|
2023-12-11 15:10:31 +00:00
|
|
|
pointer-events: none;
|
2023-02-28 20:01:52 +00:00
|
|
|
}
|
|
|
|
&--speaking:after {
|
|
|
|
border-width: 3px;
|
|
|
|
border-color: $color-white;
|
2023-03-07 22:10:54 +00:00
|
|
|
// Turn off the transition when the user starts speaking to appear instantly
|
|
|
|
transition-duration: 0ms;
|
2023-03-06 22:47:22 +00:00
|
|
|
transition-delay: 0ms;
|
2023-02-28 20:01:52 +00:00
|
|
|
}
|
|
|
|
|
2020-11-13 19:57:55 +00:00
|
|
|
&__remote-video {
|
|
|
|
// The background-color is seen while the video loads.
|
|
|
|
background-color: $color-gray-75;
|
2023-10-16 17:58:51 +00:00
|
|
|
&--reconnecting {
|
|
|
|
filter: blur(15px);
|
|
|
|
}
|
2020-11-13 19:57:55 +00:00
|
|
|
}
|
2020-11-16 19:57:58 +00:00
|
|
|
|
2024-01-17 20:37:04 +00:00
|
|
|
&-background.module-calling__background--no-avatar {
|
|
|
|
background-color: $color-gray-78;
|
|
|
|
}
|
|
|
|
|
2024-01-23 19:08:21 +00:00
|
|
|
&-background .module-calling__background--blur {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-12-02 01:30:25 +00:00
|
|
|
|
2024-01-23 19:08:21 +00:00
|
|
|
&__error {
|
|
|
|
// Hide it here in the general case, and reveal it in the grid layout
|
|
|
|
// when @container size is big enough
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
margin-block-end: 12px;
|
|
|
|
margin-inline: 8px;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 16px;
|
|
|
|
color: $color-white;
|
|
|
|
text-align: center;
|
|
|
|
z-index: $z-index-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__more-info {
|
|
|
|
@include button-reset;
|
|
|
|
padding-block: 3px;
|
|
|
|
padding-inline: 10px;
|
|
|
|
border-radius: 16px;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
color: $color-white;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 16px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
z-index: $z-index-above-base;
|
2020-12-02 01:30:25 +00:00
|
|
|
|
2024-01-23 19:08:21 +00:00
|
|
|
&-modal-title {
|
2020-12-02 01:30:25 +00:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
display: -webkit-box;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-23 19:08:21 +00:00
|
|
|
&__error-icon {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
margin-block-end: 8px;
|
|
|
|
|
|
|
|
&--blocked {
|
|
|
|
@include color-svg('../images/icons/v3/block/block.svg', $color-white);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--missing-media-keys {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/error/error-circle-solid.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-06 21:52:29 +00:00
|
|
|
&__footer {
|
2020-11-19 23:31:04 +00:00
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
2023-12-06 21:52:29 +00:00
|
|
|
bottom: 0;
|
2023-11-01 17:56:38 +00:00
|
|
|
height: 60px;
|
2024-01-19 20:11:55 +00:00
|
|
|
padding-block: 0 10px;
|
|
|
|
padding-inline: 12px;
|
2021-08-23 13:17:28 +00:00
|
|
|
user-select: none;
|
2020-11-19 23:31:04 +00:00
|
|
|
width: 100%;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2023-12-06 21:52:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__info {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
align-self: flex-end;
|
|
|
|
justify-content: space-between;
|
|
|
|
max-width: 100%;
|
2020-11-19 23:31:04 +00:00
|
|
|
|
2021-12-08 15:22:37 +00:00
|
|
|
&__contact-name {
|
2023-12-06 21:52:29 +00:00
|
|
|
flex-grow: 1;
|
2023-11-01 17:56:38 +00:00
|
|
|
font-size: 13px;
|
2024-01-19 20:11:55 +00:00
|
|
|
line-height: 18px;
|
2021-12-08 15:22:37 +00:00
|
|
|
color: $color-white;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
visibility: hidden;
|
2023-12-11 15:10:31 +00:00
|
|
|
direction: inherit;
|
2021-12-08 15:22:37 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2023-12-11 15:10:31 +00:00
|
|
|
|
|
|
|
&--clickable {
|
|
|
|
@include button-reset;
|
|
|
|
}
|
2020-11-19 23:31:04 +00:00
|
|
|
}
|
|
|
|
|
2023-12-06 21:52:29 +00:00
|
|
|
&--hand-raised &__footer {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--hand-raised &__info {
|
|
|
|
background: $color-white;
|
|
|
|
border-radius: 40px;
|
|
|
|
|
|
|
|
&__contact-name {
|
|
|
|
display: none;
|
|
|
|
color: $color-black;
|
|
|
|
margin-inline-end: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-08 15:22:37 +00:00
|
|
|
&:hover {
|
2023-12-06 21:52:29 +00:00
|
|
|
.module-ongoing-call__group-call-remote-participant__info__contact-name {
|
|
|
|
display: block;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:not(
|
|
|
|
.module-ongoing-call__group-call-remote-participant--hand-raised
|
|
|
|
) {
|
|
|
|
.module-ongoing-call__group-call-remote-participant__footer {
|
2021-12-08 15:22:37 +00:00
|
|
|
background: linear-gradient(
|
|
|
|
180deg,
|
|
|
|
transparent,
|
|
|
|
$color-black-alpha-60 100%
|
|
|
|
);
|
|
|
|
}
|
2020-11-16 19:57:58 +00:00
|
|
|
}
|
2020-11-13 19:57:55 +00:00
|
|
|
}
|
|
|
|
|
2020-12-10 18:40:34 +00:00
|
|
|
&__local-preview-fullsize {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-10-25 13:40:22 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-12-10 18:40:34 +00:00
|
|
|
width: 100%;
|
2023-10-25 13:40:22 +00:00
|
|
|
height: 100%;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-negative;
|
2021-08-25 21:42:51 +00:00
|
|
|
|
|
|
|
video {
|
|
|
|
@include lonely-local-video-preview;
|
|
|
|
}
|
2021-09-10 17:24:05 +00:00
|
|
|
|
|
|
|
&--presenting {
|
|
|
|
video {
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
}
|
2020-12-10 18:40:34 +00:00
|
|
|
}
|
|
|
|
|
2020-11-04 19:56:03 +00:00
|
|
|
&__footer {
|
2020-10-08 01:25:33 +00:00
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
2024-01-17 20:29:44 +00:00
|
|
|
flex-direction: row-reverse;
|
2020-11-04 19:56:03 +00:00
|
|
|
justify-content: space-between;
|
2020-10-08 01:25:33 +00:00
|
|
|
width: 100%;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2020-11-04 19:56:03 +00:00
|
|
|
|
|
|
|
&__actions {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__local-preview {
|
2023-10-25 13:40:22 +00:00
|
|
|
border-radius: 10px;
|
2020-11-04 19:56:03 +00:00
|
|
|
display: flex;
|
2023-11-02 20:28:03 +00:00
|
|
|
flex-shrink: 0;
|
2020-11-04 19:56:03 +00:00
|
|
|
height: $local-preview-height;
|
2023-10-25 13:40:22 +00:00
|
|
|
margin-block-end: 16px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 0 16px;
|
2020-11-04 19:56:03 +00:00
|
|
|
overflow: hidden;
|
2020-11-16 19:57:58 +00:00
|
|
|
position: relative;
|
2020-11-04 19:56:03 +00:00
|
|
|
width: $local-preview-width;
|
2023-10-31 19:32:56 +00:00
|
|
|
|
|
|
|
&--active {
|
|
|
|
box-shadow: 0px 4px 14px 0px $color-black-alpha-40;
|
|
|
|
}
|
2020-11-04 19:56:03 +00:00
|
|
|
|
|
|
|
&__video {
|
|
|
|
// The background-color is seen while the video loads.
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
height: 100%;
|
|
|
|
transform: rotateY(180deg);
|
|
|
|
width: 100%;
|
2021-05-20 21:54:03 +00:00
|
|
|
|
|
|
|
&--presenting {
|
|
|
|
transform: inherit;
|
|
|
|
}
|
2020-11-04 19:56:03 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-08 01:25:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__controls--fadeIn {
|
2023-11-13 14:56:48 +00:00
|
|
|
@include module-ongoing-call__controls--fade-in;
|
2020-10-08 01:25:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__controls--fadeOut {
|
2023-11-13 14:56:48 +00:00
|
|
|
@include module-ongoing-call__controls--fade-out;
|
2020-06-04 18:16:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-08 01:25:33 +00:00
|
|
|
.module-calling-tools {
|
2020-08-27 00:03:42 +00:00
|
|
|
position: absolute;
|
2023-10-27 13:17:13 +00:00
|
|
|
top: calc(32px + var(--title-bar-drag-area-height));
|
2023-11-14 22:05:17 +00:00
|
|
|
inset-inline-end: 0;
|
|
|
|
z-index: $z-index-above-above-base;
|
|
|
|
display: flex;
|
2020-08-27 00:03:42 +00:00
|
|
|
|
2020-10-08 01:25:33 +00:00
|
|
|
&__button {
|
2023-10-27 13:17:13 +00:00
|
|
|
margin-inline-end: 12px;
|
2023-10-25 13:40:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__button:last-child {
|
|
|
|
margin-inline-end: 24px;
|
2020-08-27 00:03:42 +00:00
|
|
|
}
|
2023-11-13 14:56:48 +00:00
|
|
|
.ContextMenu__container {
|
|
|
|
background: none;
|
2023-11-14 22:05:17 +00:00
|
|
|
text-wrap: nowrap;
|
2023-11-13 14:56:48 +00:00
|
|
|
}
|
2020-08-27 00:03:42 +00:00
|
|
|
}
|
|
|
|
|
2020-10-01 00:43:05 +00:00
|
|
|
.module-calling-pip {
|
|
|
|
backface-visibility: hidden;
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
border-radius: 4px;
|
|
|
|
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.05), 0px 8px 20px rgba(0, 0, 0, 0.3);
|
|
|
|
cursor: grab;
|
|
|
|
height: 158px;
|
2022-10-17 16:58:49 +00:00
|
|
|
position: fixed;
|
2020-10-01 00:43:05 +00:00
|
|
|
width: 120px;
|
2021-12-02 23:08:40 +00:00
|
|
|
z-index: $z-index-calling-pip;
|
2020-10-01 00:43:05 +00:00
|
|
|
|
2020-12-08 16:58:36 +00:00
|
|
|
& .module-ongoing-call__group-call-remote-participant {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2020-10-01 00:43:05 +00:00
|
|
|
&__video {
|
|
|
|
&--remote {
|
|
|
|
align-items: center;
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
border-radius: 4px 4px 0 0;
|
|
|
|
display: flex;
|
2020-12-02 01:52:01 +00:00
|
|
|
height: 120px; // This height should be kept in sync with <CallingPipRemoteVideo>'s hard-coded height.
|
2020-10-01 00:43:05 +00:00
|
|
|
justify-content: center;
|
2020-11-20 20:24:55 +00:00
|
|
|
overflow: hidden;
|
2020-10-01 00:43:05 +00:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2020-11-19 18:13:36 +00:00
|
|
|
|
2020-12-11 18:56:23 +00:00
|
|
|
// The avatar image can be dragged on Windows.
|
2021-04-21 16:32:23 +00:00
|
|
|
.module-Avatar img {
|
2020-12-11 18:56:23 +00:00
|
|
|
-webkit-user-drag: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
}
|
2024-01-17 20:37:04 +00:00
|
|
|
|
|
|
|
.module-calling__background--no-avatar {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2020-10-01 00:43:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--local {
|
|
|
|
bottom: 38px;
|
|
|
|
height: 32px;
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 4px;
|
2020-11-18 19:04:03 +00:00
|
|
|
transform: rotateY(180deg);
|
2020-10-01 00:43:05 +00:00
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__actions {
|
|
|
|
align-items: center;
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
border-radius: 0 0 4px 4px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
height: 38px;
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-65;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
&--hangup {
|
|
|
|
@include color-svg(
|
2023-05-05 16:23:43 +00:00
|
|
|
'../images/icons/v3/phone/phone-down-light.svg',
|
2020-10-01 00:43:05 +00:00
|
|
|
$color-gray-75
|
|
|
|
);
|
|
|
|
height: 28px;
|
|
|
|
width: 28px;
|
2023-05-05 16:23:43 +00:00
|
|
|
border: none;
|
2020-10-01 00:43:05 +00:00
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-05 16:23:43 +00:00
|
|
|
'../images/icons/v3/phone/phone-down-light.svg',
|
2020-10-01 00:43:05 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--pip {
|
2020-10-26 16:17:02 +00:00
|
|
|
@include color-svg(
|
2023-05-23 21:14:47 +00:00
|
|
|
'../images/icons/v3/pip/pip-maximize-light.svg',
|
2020-10-26 16:17:02 +00:00
|
|
|
$color-gray-75
|
|
|
|
);
|
2020-10-01 00:43:05 +00:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2023-05-05 16:23:43 +00:00
|
|
|
border: none;
|
2020-10-01 00:43:05 +00:00
|
|
|
@include dark-theme {
|
2020-10-26 16:17:02 +00:00
|
|
|
@include color-svg(
|
2023-05-23 21:14:47 +00:00
|
|
|
'../images/icons/v3/pip/pip-maximize-light.svg',
|
2020-10-26 16:17:02 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
2020-10-01 00:43:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-15 19:53:21 +00:00
|
|
|
.module-calling-participants-list {
|
2023-10-25 13:40:22 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 320px;
|
|
|
|
height: 440px;
|
2020-10-15 19:53:21 +00:00
|
|
|
background-color: $color-gray-80;
|
2023-10-25 13:40:22 +00:00
|
|
|
border-radius: 10px;
|
2020-10-15 19:53:21 +00:00
|
|
|
color: $color-white;
|
2023-10-25 13:40:22 +00:00
|
|
|
filter: drop-shadow(0px 4px 3px $color-black-alpha-20);
|
|
|
|
margin-inline-end: 340px;
|
|
|
|
margin-block-end: 85px;
|
|
|
|
margin-block-start: 20px;
|
|
|
|
outline: 1px solid $color-gray-62;
|
2020-11-20 17:19:53 +00:00
|
|
|
overflow: hidden;
|
2023-10-25 13:40:22 +00:00
|
|
|
padding-block: 5px 0;
|
|
|
|
padding-inline: 5px;
|
2020-10-15 19:53:21 +00:00
|
|
|
|
|
|
|
&__overlay {
|
2023-10-25 13:40:22 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2020-10-15 19:53:21 +00:00
|
|
|
display: flex;
|
2023-10-25 13:40:22 +00:00
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2024-01-16 21:32:38 +00:00
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
2020-10-15 19:53:21 +00:00
|
|
|
justify-content: flex-end;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2023-07-21 22:12:23 +00:00
|
|
|
z-index: $z-index-calling;
|
2020-10-15 19:53:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
@include font-body-2-bold;
|
|
|
|
}
|
|
|
|
|
2020-11-20 19:39:50 +00:00
|
|
|
&__contact-icon {
|
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
2020-10-15 19:53:21 +00:00
|
|
|
&__list {
|
2020-11-20 17:19:53 +00:00
|
|
|
height: 100%;
|
2023-10-25 13:40:22 +00:00
|
|
|
overflow: auto;
|
|
|
|
margin: 0;
|
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 0;
|
2020-11-20 17:19:53 +00:00
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
2023-10-25 13:40:22 +00:00
|
|
|
width: 4px;
|
2020-11-20 17:19:53 +00:00
|
|
|
}
|
|
|
|
|
2023-10-25 13:40:22 +00:00
|
|
|
&::-webkit-scrollbar-corner,
|
2020-11-20 17:19:53 +00:00
|
|
|
&::-webkit-scrollbar-track {
|
2023-10-25 13:40:22 +00:00
|
|
|
background: transparent;
|
2020-11-20 17:19:53 +00:00
|
|
|
}
|
2020-10-15 19:53:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__contact {
|
|
|
|
@include font-body-1;
|
|
|
|
display: flex;
|
2023-10-25 13:40:22 +00:00
|
|
|
align-items: center;
|
|
|
|
margin-block: 2px;
|
2024-01-17 17:47:45 +00:00
|
|
|
padding-block: 8px;
|
|
|
|
padding-inline-start: 10px;
|
|
|
|
padding-inline-end: 2px;
|
2020-10-15 19:53:21 +00:00
|
|
|
list-style-type: none;
|
2023-10-25 13:40:22 +00:00
|
|
|
border-radius: 6px;
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-gray-62;
|
|
|
|
}
|
2020-10-15 19:53:21 +00:00
|
|
|
}
|
|
|
|
|
2023-08-21 19:24:22 +00:00
|
|
|
&__avatar-and-name {
|
|
|
|
display: flex;
|
2024-01-17 17:47:45 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
min-width: 0;
|
2023-08-21 19:24:22 +00:00
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-10-15 19:53:21 +00:00
|
|
|
&__name {
|
|
|
|
display: inline-block;
|
2023-10-25 13:40:22 +00:00
|
|
|
font-size: 13px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 8px;
|
2020-10-15 19:53:21 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
vertical-align: middle;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2023-10-25 13:40:22 +00:00
|
|
|
margin-block-end: 2px;
|
|
|
|
padding-block: 8px;
|
|
|
|
padding-inline: 10px 5px;
|
2020-10-15 19:53:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__close {
|
|
|
|
@include button-reset;
|
|
|
|
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-15);
|
2020-10-15 19:53:21 +00:00
|
|
|
|
2023-10-25 13:40:22 +00:00
|
|
|
height: 18px;
|
|
|
|
width: 18px;
|
2023-12-06 21:52:29 +00:00
|
|
|
margin-inline-end: 4px;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2020-10-15 19:53:21 +00:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2023-10-25 13:40:22 +00:00
|
|
|
background: $color-ultramarine;
|
2020-10-15 19:53:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-17 17:47:45 +00:00
|
|
|
&__status-icon {
|
2023-10-25 13:40:22 +00:00
|
|
|
display: flex;
|
2024-01-17 17:47:45 +00:00
|
|
|
flex: none;
|
|
|
|
margin-inline: 8px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__hand-raised {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/raise_hand/raise_hand-light.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
2023-10-25 13:40:22 +00:00
|
|
|
}
|
|
|
|
|
2020-10-15 19:53:21 +00:00
|
|
|
&__muted {
|
|
|
|
&--video {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/video/video-slash-compact-light.svg',
|
2020-10-15 19:53:21 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--audio {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/mic/mic-slash-compact-light.svg',
|
2020-10-15 19:53:21 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-05-20 21:54:03 +00:00
|
|
|
|
|
|
|
&__presenting {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/share_screen/share_screen-fill-light.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
2021-05-20 21:54:03 +00:00
|
|
|
}
|
2020-10-15 19:53:21 +00:00
|
|
|
}
|
|
|
|
|
2020-10-01 19:09:15 +00:00
|
|
|
.module-call-need-permission-screen {
|
2020-10-08 01:25:33 +00:00
|
|
|
align-items: center;
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
color: $color-gray-05;
|
2020-10-01 19:09:15 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-01-16 21:32:38 +00:00
|
|
|
height: 100vh;
|
2020-10-01 19:09:15 +00:00
|
|
|
justify-content: center;
|
2023-12-20 16:16:21 +00:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
|
|
left: 0;
|
2020-10-08 01:25:33 +00:00
|
|
|
width: 100%;
|
2020-10-01 19:09:15 +00:00
|
|
|
|
|
|
|
&__text {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 2em;
|
|
|
|
margin-inline: 1em;
|
2020-10-01 19:09:15 +00:00
|
|
|
max-width: 400px;
|
|
|
|
@include font-body-1;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0.5em;
|
|
|
|
padding-inline: 1em;
|
2020-10-01 19:09:15 +00:00
|
|
|
border: 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
@include font-body-1-bold;
|
|
|
|
color: $color-gray-05;
|
|
|
|
background: $color-gray-65;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
// Module: conversation list
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
.module-conversation-list {
|
2021-10-12 23:59:08 +00:00
|
|
|
$normal-row-height: 72px;
|
|
|
|
|
2023-08-09 00:53:06 +00:00
|
|
|
@include NavTabs__Scroller;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 10px;
|
2021-08-26 21:05:43 +00:00
|
|
|
|
2023-01-25 23:51:08 +00:00
|
|
|
// list tiles in choose-group-members and compose extend to the edge
|
|
|
|
.module-left-pane--mode-choose-group-members &,
|
|
|
|
.module-left-pane--mode-compose & {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 0;
|
2023-01-25 23:51:08 +00:00
|
|
|
}
|
|
|
|
|
2021-10-14 20:21:10 +00:00
|
|
|
&--width-narrow {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 10px;
|
2021-10-14 20:21:10 +00:00
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&__item {
|
|
|
|
&--archive-button {
|
|
|
|
@include button-reset;
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2021-10-06 15:45:25 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2021-10-12 23:59:08 +00:00
|
|
|
border-radius: 10px;
|
|
|
|
height: $normal-row-height;
|
|
|
|
line-height: $normal-row-height;
|
2021-02-23 20:34:28 +00:00
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 18px;
|
2021-10-12 23:59:08 +00:00
|
|
|
display: flex;
|
2019-03-12 00:20:16 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
2019-03-12 00:20:16 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
2020-09-29 22:07:03 +00:00
|
|
|
|
2021-10-06 15:45:25 +00:00
|
|
|
&__icon {
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/archive/archive.svg',
|
2021-10-06 15:45:25 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/archive/archive.svg',
|
2021-10-06 15:45:25 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
|
|
|
@include font-body-1-bold;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 8px;
|
2021-10-06 15:45:25 +00:00
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&__archived-count {
|
|
|
|
@include font-body-2-bold;
|
2020-09-29 22:07:03 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
padding: 6px;
|
|
|
|
padding-top: 1px;
|
|
|
|
padding-bottom: 1px;
|
|
|
|
border-radius: 10px;
|
2021-10-14 16:47:57 +00:00
|
|
|
white-space: pre;
|
2020-09-29 22:07:03 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
2021-10-12 23:59:08 +00:00
|
|
|
|
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
&__icon {
|
|
|
|
display: block;
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text,
|
|
|
|
&__archived-count {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&--contact-or-conversation {
|
2023-05-23 21:59:07 +00:00
|
|
|
$unread-indicator: '#{&}__unread-indicator';
|
2021-12-09 18:50:13 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
@include button-reset;
|
2019-03-12 00:20:16 +00:00
|
|
|
|
2021-03-03 20:09:58 +00:00
|
|
|
align-items: center;
|
2021-10-12 23:59:08 +00:00
|
|
|
border-radius: 10px;
|
2021-03-03 20:09:58 +00:00
|
|
|
cursor: inherit;
|
2021-02-23 20:34:28 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2021-10-12 23:59:08 +00:00
|
|
|
height: $normal-row-height;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 2px;
|
|
|
|
margin-inline: 0;
|
|
|
|
padding-block: 8px;
|
|
|
|
padding-inline: 14px;
|
2021-03-03 20:09:58 +00:00
|
|
|
user-select: none;
|
|
|
|
width: 100%;
|
2019-11-21 19:16:06 +00:00
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
.module-conversation-list--width-narrow & {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 14px 0;
|
2021-10-12 23:59:08 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 21:59:07 +00:00
|
|
|
#{$unread-indicator} {
|
|
|
|
$size: 18px;
|
|
|
|
height: $size;
|
|
|
|
min-width: $size;
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-ultramarine;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-ultramarine-dawn;
|
|
|
|
}
|
2023-05-24 21:33:11 +00:00
|
|
|
&--unread-messages,
|
|
|
|
&--marked-unread {
|
2023-05-23 21:59:07 +00:00
|
|
|
@include font-caption-bold;
|
|
|
|
text-align: center;
|
|
|
|
word-break: normal;
|
|
|
|
padding-inline: 4px;
|
|
|
|
line-height: 100%;
|
|
|
|
color: $color-white;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
&--unread-mentions__icon {
|
|
|
|
@include color-svg('../images/icons/v3/at/at.svg', $color-white);
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 20:09:58 +00:00
|
|
|
&--is-button {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
cursor: inherit;
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
2021-03-03 20:09:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--is-checkbox {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&--disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2023-09-18 21:00:26 +00:00
|
|
|
}
|
2021-03-03 20:09:58 +00:00
|
|
|
|
2023-09-18 21:00:26 +00:00
|
|
|
&:hover:not(:disabled, &--disabled, &--is-selected),
|
|
|
|
&:focus:not(:disabled, &--disabled, &--is-selected) {
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
#{$unread-indicator} {
|
|
|
|
border-color: $color-gray-05;
|
2021-03-03 20:09:58 +00:00
|
|
|
}
|
2023-09-18 21:00:26 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
#{$unread-indicator} {
|
|
|
|
border-color: $color-gray-75;
|
2021-03-03 20:09:58 +00:00
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
}
|
2019-03-12 00:20:16 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&--is-selected {
|
|
|
|
@include light-theme {
|
2023-05-23 21:59:07 +00:00
|
|
|
background-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-65;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--is-selected &__avatar-container {
|
|
|
|
@include light-theme {
|
|
|
|
#{$unread-indicator} {
|
|
|
|
border-color: $color-gray-15;
|
2021-12-09 18:50:13 +00:00
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-23 21:59:07 +00:00
|
|
|
#{$unread-indicator} {
|
|
|
|
border-color: $color-gray-65;
|
2021-12-09 18:50:13 +00:00
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
}
|
2019-03-14 21:41:14 +00:00
|
|
|
|
2021-12-09 18:50:13 +00:00
|
|
|
&__avatar-container {
|
|
|
|
position: relative;
|
|
|
|
|
2023-05-23 21:59:07 +00:00
|
|
|
#{$unread-indicator} {
|
2021-12-09 18:50:13 +00:00
|
|
|
$border-width: 3px;
|
|
|
|
$size: 21px + $border-width;
|
|
|
|
|
|
|
|
@include rounded-corners;
|
|
|
|
border: $border-width solid transparent;
|
|
|
|
height: $size;
|
|
|
|
margin: 0;
|
|
|
|
min-width: $size;
|
|
|
|
position: absolute;
|
|
|
|
top: -(1px + $border-width);
|
2023-05-23 21:59:07 +00:00
|
|
|
display: none;
|
2021-12-09 18:50:13 +00:00
|
|
|
|
|
|
|
.module-conversation-list--width-narrow & {
|
2023-05-23 21:59:07 +00:00
|
|
|
display: flex;
|
2021-12-09 18:50:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
border-color: $color-gray-02;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-gray-80;
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
|
2023-05-30 18:29:29 +00:00
|
|
|
&--unread-messages,
|
|
|
|
&--marked-unread {
|
2023-05-23 21:59:07 +00:00
|
|
|
inset-inline-end: -(5px + $border-width);
|
|
|
|
}
|
|
|
|
&--unread-mentions {
|
|
|
|
inset-inline-start: -(5px + $border-width);
|
|
|
|
}
|
|
|
|
&--is-selected {
|
|
|
|
@include light-theme {
|
|
|
|
border-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-gray-65;
|
|
|
|
}
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 12px;
|
2021-02-23 20:34:28 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: stretch;
|
2021-03-03 20:09:58 +00:00
|
|
|
overflow: hidden;
|
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
.module-conversation-list--width-narrow & {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 0;
|
2021-10-12 23:59:08 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 20:09:58 +00:00
|
|
|
&--disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
|
|
|
|
&__header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&__name {
|
2021-10-14 15:48:48 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2021-02-23 20:34:28 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
|
|
|
|
@include font-body-1-bold;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2021-10-14 15:48:48 +00:00
|
|
|
|
|
|
|
&__contact-name {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2023-05-04 18:04:22 +00:00
|
|
|
|
|
|
|
.ContactModal__official-badge {
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
}
|
2021-10-14 15:48:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__mute-icon {
|
|
|
|
$size: 14px;
|
|
|
|
|
|
|
|
height: $size;
|
|
|
|
margin-inline-start: 8px;
|
|
|
|
min-width: $size;
|
|
|
|
width: $size;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/bell/bell-slash-bold.svg',
|
2021-10-14 15:48:48 +00:00
|
|
|
$color-gray-45
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/bell/bell-slash-bold.svg',
|
2021-10-14 15:48:48 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__date {
|
2022-01-26 23:05:26 +00:00
|
|
|
@include font-caption;
|
2021-02-23 20:34:28 +00:00
|
|
|
display: inline-block;
|
|
|
|
flex-shrink: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 6px;
|
2021-02-23 20:34:28 +00:00
|
|
|
|
2022-01-26 23:05:26 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__message {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2021-10-12 23:59:08 +00:00
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
align-items: center;
|
2021-10-14 20:21:10 +00:00
|
|
|
justify-content: flex-start;
|
2021-10-12 23:59:08 +00:00
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
|
2022-09-27 20:09:16 +00:00
|
|
|
&__text {
|
|
|
|
.module-conversation-list__item--contact-or-conversation--is-checkbox
|
|
|
|
& {
|
|
|
|
/* restrict the growth so it doesn't encroach on the checkbox */
|
|
|
|
-webkit-line-clamp: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&__text {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
|
|
|
|
@include font-body-2;
|
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
display: -webkit-box;
|
2021-02-23 20:34:28 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2023-04-20 17:03:43 +00:00
|
|
|
text-align: start;
|
2021-02-23 20:34:28 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
&--always-full-size {
|
|
|
|
height: 36px; // two lines
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
|
2024-04-02 16:41:28 +00:00
|
|
|
&__blocked {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
margin-inline-end: 4px;
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/block/block.svg',
|
|
|
|
currentColor
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&__message-request {
|
|
|
|
@include font-body-2-bold;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__draft-prefix,
|
|
|
|
&__deleted-for-everyone {
|
|
|
|
font-style: italic;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 3px;
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__status-icon {
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
margin-top: 4px;
|
2021-02-23 20:34:28 +00:00
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
display: inline-block;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 6px;
|
2021-02-23 20:34:28 +00:00
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
@mixin normal-status-icon($icon) {
|
|
|
|
@include light-theme {
|
2021-10-14 00:12:25 +00:00
|
|
|
@include color-svg($icon, $color-gray-45);
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-10-14 00:12:25 +00:00
|
|
|
@include color-svg($icon, $color-gray-25);
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--sending {
|
2021-07-30 18:35:43 +00:00
|
|
|
@include only-when-page-is-visible {
|
|
|
|
animation: rotate 4s linear infinite;
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/message_status/messagestatus-sending.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/message_status/messagestatus-sending.svg',
|
|
|
|
$color-gray-45
|
|
|
|
);
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--sent {
|
|
|
|
@include normal-status-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/message_status/messagestatus-sent.svg'
|
2021-02-23 20:34:28 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--delivered {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include normal-status-icon(
|
|
|
|
'../images/icons/v3/message_status/messagestatus-delivered.svg'
|
|
|
|
);
|
2021-02-23 20:34:28 +00:00
|
|
|
width: 18px;
|
|
|
|
}
|
|
|
|
|
2021-10-12 15:40:27 +00:00
|
|
|
&--read,
|
|
|
|
&--viewed {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include normal-status-icon(
|
|
|
|
'../images/icons/v3/message_status/messagestatus-read.svg'
|
|
|
|
);
|
2021-02-23 20:34:28 +00:00
|
|
|
width: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--error,
|
|
|
|
&--partial-sent {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
2021-02-23 20:34:28 +00:00
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
2021-02-23 20:34:28 +00:00
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-05-06 00:09:29 +00:00
|
|
|
|
|
|
|
&--paused {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
2021-05-06 00:09:29 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
2021-05-06 00:09:29 +00:00
|
|
|
$color-gray-45
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__message-search-result-contents {
|
|
|
|
display: -webkit-box;
|
|
|
|
white-space: initial;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__start-new-conversation {
|
|
|
|
@include font-body-1-italic;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 21:59:07 +00:00
|
|
|
|
|
|
|
&__unread-indicators {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
gap: 4px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-inline-start: 10px;
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
2021-03-03 20:09:58 +00:00
|
|
|
|
|
|
|
&__checkbox {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
background: $color-white;
|
|
|
|
border-radius: 100%;
|
|
|
|
height: 20px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 16px;
|
2021-03-03 20:09:58 +00:00
|
|
|
width: 20px;
|
|
|
|
min-width: 20px;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
border: 1px solid $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border: 1px solid $color-gray-80;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
border-width: 2px;
|
2021-05-28 16:15:17 +00:00
|
|
|
border-color: $color-ultramarine;
|
2021-03-03 20:09:58 +00:00
|
|
|
&:checked {
|
|
|
|
box-shadow: inset 0 0 0px 1px $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
border-width: 2px;
|
2021-05-28 16:15:17 +00:00
|
|
|
border-color: $color-ultramarine-light;
|
2021-03-03 20:09:58 +00:00
|
|
|
|
|
|
|
&:checked {
|
|
|
|
box-shadow: inset 0 0 0px 1px $color-black;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-11 21:29:31 +00:00
|
|
|
&:disabled:not(:checked) {
|
2021-03-03 20:09:58 +00:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked {
|
2023-05-04 18:04:22 +00:00
|
|
|
$icon: '../images/icons/v3/check/check.svg';
|
2021-03-11 21:29:31 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
background: $color-ultramarine;
|
2021-03-03 20:09:58 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2021-03-11 21:29:31 +00:00
|
|
|
@include color-svg($icon, $color-white);
|
2021-03-03 20:09:58 +00:00
|
|
|
width: 13px;
|
|
|
|
height: 13px;
|
|
|
|
}
|
2021-03-11 21:29:31 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
&:disabled {
|
|
|
|
background: $color-gray-15;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
&:disabled {
|
|
|
|
background: $color-gray-45;
|
|
|
|
}
|
|
|
|
}
|
2021-03-03 20:09:58 +00:00
|
|
|
}
|
2022-09-27 20:09:16 +00:00
|
|
|
|
|
|
|
&--container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 8px;
|
2022-09-27 20:09:16 +00:00
|
|
|
/* prevent sibling content from pushing this smaller (min-width: the "!important" of width) */
|
|
|
|
min-width: 20px;
|
|
|
|
}
|
2021-03-03 20:09:58 +00:00
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--header {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
|
2021-10-14 14:13:08 +00:00
|
|
|
align-items: flex-end;
|
|
|
|
display: flex;
|
2021-08-11 16:23:21 +00:00
|
|
|
height: 100%;
|
2021-10-12 23:59:08 +00:00
|
|
|
overflow-x: hidden;
|
2021-10-14 14:13:08 +00:00
|
|
|
padding-bottom: 8px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-start: 16px;
|
2021-10-12 23:59:08 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
user-select: none;
|
|
|
|
white-space: nowrap;
|
2021-02-23 20:34:28 +00:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2021-10-12 23:59:08 +00:00
|
|
|
|
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
@include rounded-corners;
|
|
|
|
display: block;
|
|
|
|
height: 2px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 19px;
|
|
|
|
margin-inline: 14px 0;
|
2021-10-14 14:13:08 +00:00
|
|
|
padding-bottom: 0;
|
2021-10-14 20:21:10 +00:00
|
|
|
width: 48px;
|
2021-10-12 23:59:08 +00:00
|
|
|
|
|
|
|
// Hide the text, but keep it for screen readers.
|
|
|
|
color: transparent;
|
|
|
|
overflow: hidden;
|
|
|
|
text-indent: -99999px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-black-alpha-12;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-white-alpha-12;
|
|
|
|
}
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--spinner {
|
|
|
|
width: 100%;
|
|
|
|
padding: 10px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-03-12 00:20:16 +00:00
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
// Module: Left Pane
|
2020-04-23 19:20:47 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
.module-left-pane {
|
2023-08-09 00:53:06 +00:00
|
|
|
display: flex;
|
2021-02-23 20:34:28 +00:00
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
2023-08-09 00:53:06 +00:00
|
|
|
width: 100%;
|
2021-03-03 20:09:58 +00:00
|
|
|
position: relative;
|
2021-10-12 23:59:08 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-12-09 18:50:13 +00:00
|
|
|
$background-color: $color-gray-02;
|
2021-10-12 23:59:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
2021-12-09 18:50:13 +00:00
|
|
|
$background-color: $color-gray-80;
|
2021-10-12 23:59:08 +00:00
|
|
|
}
|
2019-01-14 21:49:58 +00:00
|
|
|
}
|
|
|
|
|
2022-01-31 15:45:04 +00:00
|
|
|
.module-left-pane__dialogs {
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-20 23:16:49 +00:00
|
|
|
.module-left-pane__empty {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
justify-content: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 32px;
|
2021-04-20 23:16:49 +00:00
|
|
|
text-align: center;
|
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
.module-left-pane--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-04-20 23:16:49 +00:00
|
|
|
&--composer_icon {
|
|
|
|
align-items: center;
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
border-radius: 100%;
|
|
|
|
display: inline-flex;
|
|
|
|
height: 28px;
|
|
|
|
justify-content: center;
|
|
|
|
margin-bottom: -2px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 4px;
|
2021-04-20 23:16:49 +00:00
|
|
|
vertical-align: bottom;
|
|
|
|
width: 28px;
|
|
|
|
|
|
|
|
&--icon {
|
2023-05-04 18:04:22 +00:00
|
|
|
$icon: '../images/icons/v3/compose/compose.svg';
|
2021-04-20 23:16:49 +00:00
|
|
|
@include color-svg($icon, $color-gray-90);
|
|
|
|
display: inline-block;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
.module-left-pane__header {
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2022-09-08 15:48:31 +00:00
|
|
|
user-select: none;
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&__contents {
|
|
|
|
width: 100%;
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2023-08-09 00:53:06 +00:00
|
|
|
padding-block: 15px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
&__back-button {
|
|
|
|
@include button-reset;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2023-05-04 18:04:22 +00:00
|
|
|
margin-inline-start: 16px;
|
2021-02-23 20:34:28 +00:00
|
|
|
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2021-02-23 20:34:28 +00:00
|
|
|
|
2021-03-03 20:09:58 +00:00
|
|
|
&:disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
@include light-theme {
|
2023-04-20 17:03:43 +00:00
|
|
|
&:dir(ltr) {
|
2021-02-23 20:34:28 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-60
|
2021-02-23 20:34:28 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2023-04-20 17:03:43 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:dir(ltr) {
|
|
|
|
&:focus {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-ultramarine
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
&:focus {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-ultramarine
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
|
|
|
|
@include dark-theme {
|
2023-04-20 17:03:43 +00:00
|
|
|
&:dir(ltr) {
|
2021-02-23 20:34:28 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-25
|
2021-02-23 20:34:28 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2023-04-20 17:03:43 +00:00
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:dir(ltr) {
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-ultramarine-light
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-ultramarine-light
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2021-02-23 20:34:28 +00:00
|
|
|
|
|
|
|
&__text {
|
|
|
|
@include font-body-1-bold;
|
2021-11-01 18:43:02 +00:00
|
|
|
flex-grow: 1;
|
2023-05-04 18:04:22 +00:00
|
|
|
padding-inline-end: 36px;
|
|
|
|
text-align: center;
|
2021-02-23 20:34:28 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-03-12 00:20:16 +00:00
|
|
|
}
|
2021-03-03 20:09:58 +00:00
|
|
|
|
|
|
|
&__form {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-06-25 23:52:56 +00:00
|
|
|
|
|
|
|
&__expire-timer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2022-09-12 23:38:28 +00:00
|
|
|
align-items: center;
|
2021-06-25 23:52:56 +00:00
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0 16px;
|
|
|
|
|
|
|
|
margin-inline: 16px;
|
2021-06-25 23:52:56 +00:00
|
|
|
|
|
|
|
&__label {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 12px;
|
2021-06-25 23:52:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-disappearing-timer-select {
|
|
|
|
width: 144px;
|
|
|
|
}
|
|
|
|
}
|
2021-03-03 20:09:58 +00:00
|
|
|
}
|
2019-03-12 00:20:16 +00:00
|
|
|
}
|
|
|
|
|
2023-08-09 00:53:06 +00:00
|
|
|
.module-left-pane__startComposingIcon {
|
|
|
|
display: block;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/compose/compose.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/compose/compose.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-left-pane__moreActionsIcon {
|
|
|
|
display: block;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v3/more/more.svg', $color-black);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v3/more/more.svg', $color-gray-15);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
.module-left-pane__archive-helper-text {
|
|
|
|
@include font-body-2;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2022-09-08 15:48:31 +00:00
|
|
|
user-select: none;
|
2021-02-23 20:34:28 +00:00
|
|
|
|
|
|
|
padding: 1em;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
2019-03-12 00:20:16 +00:00
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
.module-left-pane__no-search-results,
|
|
|
|
.module-left-pane__compose-no-contacts {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-top: 27px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 1em;
|
2019-11-07 21:36:16 +00:00
|
|
|
width: 100%;
|
2021-02-23 20:34:28 +00:00
|
|
|
text-align: center;
|
|
|
|
outline: none;
|
|
|
|
}
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2021-05-19 16:14:35 +00:00
|
|
|
.module-left-pane__no-search-results__sms-only {
|
|
|
|
margin-top: 12px;
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
.module-left-pane__compose-search-form {
|
|
|
|
&__input {
|
|
|
|
flex-grow: 1;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2019-01-14 21:49:58 +00:00
|
|
|
}
|
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
.module-left-pane__list--measure {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
outline: none;
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
.module-left-pane__list--wrapper {
|
|
|
|
position: relative;
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
.module-left-pane__list {
|
|
|
|
position: absolute;
|
|
|
|
outline: none;
|
2019-01-14 21:49:58 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 20:09:58 +00:00
|
|
|
.module-left-pane__footer {
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-end;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2021-03-03 20:09:58 +00:00
|
|
|
padding: 12px;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: linear-gradient(transparent, $color-gray-02);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: linear-gradient(transparent, $color-gray-80);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
.module-left-pane__resize-grab-area {
|
|
|
|
position: absolute;
|
|
|
|
width: 8px;
|
|
|
|
height: 100%;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: -8px;
|
2021-10-12 23:59:08 +00:00
|
|
|
top: 0;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2021-10-12 23:59:08 +00:00
|
|
|
cursor: col-resize;
|
|
|
|
}
|
|
|
|
|
2019-03-20 17:42:28 +00:00
|
|
|
// Module: Timeline
|
|
|
|
|
|
|
|
.module-timeline {
|
2022-03-03 20:23:10 +00:00
|
|
|
display: flex;
|
2019-03-20 17:42:28 +00:00
|
|
|
height: 100%;
|
2019-05-31 22:42:01 +00:00
|
|
|
overflow: hidden;
|
2019-03-20 17:42:28 +00:00
|
|
|
}
|
|
|
|
|
2020-12-01 16:42:35 +00:00
|
|
|
.module-timeline--disabled {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2022-03-03 20:23:10 +00:00
|
|
|
.module-timeline__messages__container {
|
|
|
|
flex: 1 1;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: overlay;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-11-13 18:17:44 +00:00
|
|
|
|
|
|
|
// Unset this for buttons in the timeline so that it doesn't prevent the higher z-index
|
|
|
|
// ConversationHeader from being draggable
|
|
|
|
button {
|
|
|
|
-webkit-app-region: initial;
|
|
|
|
}
|
2022-03-03 20:23:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-timeline__messages {
|
2022-03-11 22:31:21 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-03-03 20:23:10 +00:00
|
|
|
flex: 1 1;
|
|
|
|
padding-bottom: 6px;
|
2022-03-09 20:05:07 +00:00
|
|
|
position: relative;
|
2022-03-11 22:31:21 +00:00
|
|
|
justify-content: flex-end;
|
2022-03-08 21:54:27 +00:00
|
|
|
|
|
|
|
// This is a modified version of ["Pin Scrolling to Bottom"][0].
|
|
|
|
// [0]: https://css-tricks.com/books/greatest-css-tricks/pin-scrolling-to-bottom/
|
2023-09-19 19:01:04 +00:00
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
height: 1px; // Always show the element to not mess with the height of the scroll area
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
&--have-newest:not(&--scroll-locked) {
|
2022-03-08 21:54:27 +00:00
|
|
|
& > * {
|
|
|
|
overflow-anchor: none;
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
overflow-anchor: auto;
|
|
|
|
}
|
|
|
|
}
|
2022-03-09 20:05:07 +00:00
|
|
|
|
2022-03-11 22:31:21 +00:00
|
|
|
&--have-oldest {
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
2022-03-09 20:05:07 +00:00
|
|
|
&__at-bottom-detector {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2019-03-20 17:42:28 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 21:59:07 +00:00
|
|
|
.module-timeline__scrolldown-buttons {
|
|
|
|
z-index: $z-index-scroll-down-button;
|
|
|
|
position: absolute;
|
|
|
|
inset-inline-end: 16px;
|
|
|
|
bottom: 12px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 14px;
|
|
|
|
}
|
|
|
|
|
2019-03-20 17:42:28 +00:00
|
|
|
.ReactVirtualized__List {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-05-24 23:58:27 +00:00
|
|
|
// Module: CompositionPopper
|
2019-05-16 22:32:11 +00:00
|
|
|
|
2019-05-24 23:58:27 +00:00
|
|
|
%module-composition-popper {
|
2019-05-16 22:32:11 +00:00
|
|
|
width: 332px;
|
2023-04-05 20:48:00 +00:00
|
|
|
border-radius: 4px;
|
2019-05-24 23:58:27 +00:00
|
|
|
margin-bottom: 6px;
|
2021-12-02 23:08:40 +00:00
|
|
|
z-index: $z-index-context-menu;
|
2019-05-16 22:32:11 +00:00
|
|
|
user-select: none;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
@include popper-shadow();
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-02;
|
2019-05-24 23:58:27 +00:00
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
border: 2px solid $color-gray-02;
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
2022-11-10 21:01:40 +00:00
|
|
|
background: $color-gray-75;
|
2019-05-24 23:58:27 +00:00
|
|
|
::-webkit-scrollbar-thumb {
|
2022-11-10 21:01:40 +00:00
|
|
|
border: 2px solid $color-gray-75;
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-24 23:58:27 +00:00
|
|
|
// Module: StickerPicker
|
|
|
|
|
|
|
|
.module-sticker-picker {
|
|
|
|
@extend %module-composition-popper;
|
|
|
|
height: 400px;
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows: 44px 1fr;
|
|
|
|
grid-template-columns: 1fr;
|
2021-12-02 23:08:40 +00:00
|
|
|
z-index: $z-index-context-menu;
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
.module-sticker-picker__header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 8px;
|
2019-05-16 22:32:11 +00:00
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-picker__header__packs {
|
|
|
|
width: 288px;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&__slider {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2023-04-20 17:03:43 +00:00
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
2019-05-16 22:32:11 +00:00
|
|
|
transform: translateX(0);
|
|
|
|
transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-01 19:00:50 +00:00
|
|
|
.module-sticker-picker__recents--title {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
.module-sticker-picker__header__button {
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 8px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
background: none;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 4px;
|
2019-05-16 22:32:11 +00:00
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
outline: none;
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
&:active,
|
|
|
|
&:focus {
|
2019-11-21 19:16:06 +00:00
|
|
|
@include keyboard-mode {
|
2019-11-07 21:36:16 +00:00
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
2019-11-21 19:16:06 +00:00
|
|
|
@include dark-keyboard-mode {
|
2019-11-07 21:36:16 +00:00
|
|
|
background: $color-gray-60;
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--selected {
|
|
|
|
@include light-theme {
|
2019-11-07 21:36:16 +00:00
|
|
|
background: $color-gray-15;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-11-07 21:36:16 +00:00
|
|
|
background: $color-gray-45;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--recents,
|
|
|
|
&--add-pack {
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
min-width: 20px;
|
|
|
|
min-height: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--recents {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/recent/recent.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/recent/recent.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--add-pack {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/plus/plus.svg', $color-gray-60);
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/plus/plus.svg', $color-gray-25);
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--prev-page,
|
|
|
|
&--next-page {
|
|
|
|
top: 0;
|
|
|
|
margin: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2019-10-04 18:06:17 +00:00
|
|
|
min-width: 16px;
|
|
|
|
min-height: 16px;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-02;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--prev-page {
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 0;
|
2019-05-16 22:32:11 +00:00
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
&:dir(ltr) {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
2023-04-20 17:03:43 +00:00
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--next-page {
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 0;
|
2019-05-16 22:32:11 +00:00
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
&:dir(ltr) {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
2023-04-20 17:03:43 +00:00
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2023-04-20 17:03:43 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--error {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 14px;
|
2019-05-16 22:32:11 +00:00
|
|
|
top: 2px;
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-accent-red
|
|
|
|
);
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--hint {
|
|
|
|
position: relative;
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 0;
|
2019-05-16 22:32:11 +00:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
border-radius: 7px;
|
2021-05-28 16:15:17 +00:00
|
|
|
background: $color-ultramarine;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-picker__header__button__image {
|
2020-01-15 19:16:21 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
object-fit: contain;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-24 01:27:42 +00:00
|
|
|
.module-sticker-picker__header__button__image--placeholder {
|
|
|
|
min-width: 20px;
|
|
|
|
min-height: 20px;
|
|
|
|
max-width: 20px;
|
|
|
|
max-height: 20px;
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-05;
|
2019-05-24 01:27:42 +00:00
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
.module-sticker-picker__body {
|
|
|
|
position: relative;
|
|
|
|
|
2023-03-01 19:00:50 +00:00
|
|
|
&__grid {
|
|
|
|
display: grid;
|
|
|
|
grid-gap: 8px;
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
|
grid-auto-rows: 68px;
|
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
&__content {
|
|
|
|
width: 332px;
|
|
|
|
height: 356px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px 16px;
|
|
|
|
padding-inline: 13px;
|
2019-05-16 22:32:11 +00:00
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
&--under-text {
|
|
|
|
height: 320px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--under-long-text {
|
|
|
|
height: 304px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__cell {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
width: 68px;
|
|
|
|
height: 68px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
@include mouse-mode {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
&__image,
|
|
|
|
&__placeholder {
|
|
|
|
width: 100%;
|
2020-01-15 19:16:21 +00:00
|
|
|
height: 100%;
|
|
|
|
object-fit: contain;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__placeholder {
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--empty {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-1-bold;
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
text-align: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px 12px;
|
|
|
|
padding-inline: 0 16px;
|
2019-05-16 22:32:11 +00:00
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:only-child {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0 28px;
|
|
|
|
padding-inline: 0; // header height to offset the text so it is centered in the whole picker
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--error {
|
|
|
|
@include light-theme() {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-accent-red;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
@include dark-theme() {
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-accent-red;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--hint {
|
|
|
|
@include light-theme() {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-ultramarine;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-ultramarine-light;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--pin {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px 12px;
|
|
|
|
padding-inline: 0px 16px;
|
2019-05-16 22:32:11 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-01 19:00:50 +00:00
|
|
|
.module-sticker-picker__time--digital {
|
|
|
|
@include time-fonts;
|
|
|
|
color: $color-white;
|
|
|
|
font-size: 28px;
|
|
|
|
line-height: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-picker__time--analog {
|
|
|
|
background: url(../images/analog-time/Arabic.svg) center no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
height: 64px;
|
|
|
|
position: relative;
|
|
|
|
width: 64px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-picker__time--analog__hour {
|
|
|
|
background: url(../images/analog-time/Arabic-hour.svg) center no-repeat;
|
|
|
|
height: 14px;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 50%;
|
|
|
|
margin-inline-start: -1px;
|
2023-03-01 19:00:50 +00:00
|
|
|
margin-top: -14px;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform-origin: 50% 100%;
|
|
|
|
width: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-picker__time--analog__minute {
|
|
|
|
background: url(../images/analog-time/Arabic-minute.svg) center no-repeat;
|
|
|
|
height: 22px;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 50%;
|
|
|
|
margin-inline-start: -1px;
|
2023-03-01 19:00:50 +00:00
|
|
|
margin-top: -22px;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform-origin: 50% 100%;
|
|
|
|
width: 2px;
|
|
|
|
}
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
// Module: Sticker button (launches the sticker picker)
|
|
|
|
|
|
|
|
.sticker-button-wrapper {
|
|
|
|
height: 36px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 6px;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-button__button {
|
|
|
|
border: 0;
|
2022-06-15 17:53:08 +00:00
|
|
|
border-radius: 4px;
|
2019-05-16 22:32:11 +00:00
|
|
|
background: none;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2022-06-13 23:37:29 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2022-06-15 17:53:08 +00:00
|
|
|
outline: 2px solid $color-ultramarine;
|
2022-06-13 23:37:29 +00:00
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
outline: none;
|
|
|
|
|
2019-08-07 00:40:25 +00:00
|
|
|
&::after {
|
2019-05-16 22:32:11 +00:00
|
|
|
display: block;
|
|
|
|
content: '';
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2019-05-24 23:58:27 +00:00
|
|
|
flex-shrink: 0;
|
2019-05-16 22:32:11 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/sticker/sticker.svg',
|
2020-10-21 23:54:14 +00:00
|
|
|
$color-gray-75
|
2019-10-04 18:06:17 +00:00
|
|
|
);
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/sticker/sticker.svg',
|
2020-10-21 23:54:14 +00:00
|
|
|
$color-gray-15
|
2019-10-04 18:06:17 +00:00
|
|
|
);
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--active {
|
|
|
|
@include light-theme() {
|
2019-10-04 18:06:17 +00:00
|
|
|
background: $color-gray-05;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-button__tooltip {
|
2019-11-07 21:36:16 +00:00
|
|
|
@include button-reset;
|
|
|
|
|
2019-05-16 22:32:11 +00:00
|
|
|
height: 34px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 7px;
|
|
|
|
padding-inline: 12px;
|
2019-05-16 22:32:11 +00:00
|
|
|
border-radius: 8px;
|
|
|
|
margin-bottom: 6px;
|
2021-12-02 23:08:40 +00:00
|
|
|
z-index: $z-index-tooltip;
|
2019-05-16 22:32:11 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include popper-shadow();
|
|
|
|
|
|
|
|
&__triangle {
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 8px 8px 0 8px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
border-color: $color-white transparent transparent transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-gray-75 transparent transparent transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--top-end {
|
|
|
|
top: 34px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--introduction {
|
|
|
|
top: 72px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__image {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2020-01-15 19:16:21 +00:00
|
|
|
object-fit: contain;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
2019-05-24 01:27:42 +00:00
|
|
|
&__image-placeholder {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-05;
|
2019-05-24 01:27:42 +00:00
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
|
|
|
|
&__text {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 4px;
|
2019-05-16 22:32:11 +00:00
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
2019-10-04 18:06:17 +00:00
|
|
|
font-weight: bold;
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--introduction {
|
|
|
|
width: 420px;
|
|
|
|
height: 72px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
2019-12-12 03:10:37 +00:00
|
|
|
&__image {
|
|
|
|
width: 52px;
|
|
|
|
height: 52px;
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
|
|
|
|
&__meta {
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 12px;
|
2019-05-16 22:32:11 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
margin: 0;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include font-body-1-bold;
|
2019-05-16 22:32:11 +00:00
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__subtitle {
|
|
|
|
margin-top: 3px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__close {
|
|
|
|
flex-shrink: 1;
|
|
|
|
height: 100%;
|
|
|
|
&__button {
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2019-05-16 22:32:11 +00:00
|
|
|
border: none;
|
|
|
|
|
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/x/x-compact.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/x/x-compact.svg',
|
|
|
|
$color-gray-05
|
|
|
|
);
|
2019-05-16 22:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-24 23:58:27 +00:00
|
|
|
// Module: Emoji Picker
|
|
|
|
|
|
|
|
%module-emoji-picker--ribbon {
|
|
|
|
height: 44px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-emoji-picker {
|
|
|
|
@extend %module-composition-popper;
|
|
|
|
height: 428px;
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows: 44px 1fr;
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
@extend %module-emoji-picker--ribbon;
|
|
|
|
justify-content: space-between;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0;
|
|
|
|
margin-inline: 12px;
|
2019-05-24 23:58:27 +00:00
|
|
|
|
|
|
|
&__search-field {
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 8px;
|
2019-05-24 23:58:27 +00:00
|
|
|
position: relative;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-2;
|
|
|
|
|
2019-05-24 23:58:27 +00:00
|
|
|
&::after {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 8px;
|
2019-05-24 23:58:27 +00:00
|
|
|
top: 6px;
|
|
|
|
|
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/search/search-compact.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/search/search-compact.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__input {
|
|
|
|
width: 100%;
|
|
|
|
height: 28px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include font-body-1;
|
|
|
|
|
2019-05-24 23:58:27 +00:00
|
|
|
line-height: 28px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2019-05-24 23:58:27 +00:00
|
|
|
border-radius: 17px;
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 30px 8px;
|
2019-05-24 23:58:27 +00:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
color: $color-gray-90;
|
|
|
|
border-color: $color-gray-60;
|
|
|
|
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
border-color: $color-ultramarine;
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
|
2019-08-07 00:40:25 +00:00
|
|
|
&:placeholder {
|
2019-05-24 23:58:27 +00:00
|
|
|
color: $color-gray-45;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-gray-25;
|
|
|
|
background: $color-gray-75;
|
|
|
|
color: $color-gray-05;
|
|
|
|
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
border-color: $color-ultramarine;
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
|
2019-08-07 00:40:25 +00:00
|
|
|
&:placeholder {
|
2019-05-24 23:58:27 +00:00
|
|
|
color: $color-gray-45;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__footer {
|
|
|
|
@extend %module-emoji-picker--ribbon;
|
|
|
|
justify-content: center;
|
2021-09-09 16:29:01 +00:00
|
|
|
|
|
|
|
&__skin-tones {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__settings-spacer {
|
|
|
|
width: 28px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 12px;
|
2021-09-09 16:29:01 +00:00
|
|
|
}
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
border: none;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
background: none;
|
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
@include mouse-mode {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-05-24 23:58:27 +00:00
|
|
|
&--footer {
|
2021-09-09 16:29:01 +00:00
|
|
|
&:not(:last-of-type) {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 4px;
|
2021-09-09 16:29:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--settings {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 12px;
|
2021-09-09 16:29:01 +00:00
|
|
|
border-radius: 100%;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
box-shadow: 0px 0px 4px $color-black-alpha-20;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-65;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/settings/settings.svg',
|
2021-09-09 16:29:01 +00:00
|
|
|
$color-gray-75
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/settings/settings.svg',
|
2021-09-09 16:29:01 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--selected {
|
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
background: $color-gray-05;
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--icon {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--search {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/search/search.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/search/search.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--close {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-60);
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-25);
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--recents {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/recent/recent.svg',
|
2019-05-24 23:58:27 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/recent/recent.svg',
|
2019-05-24 23:58:27 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--emoji {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/emoji/emoji.svg',
|
2019-05-24 23:58:27 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 18:06:17 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/emoji/emoji.svg',
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$categories: animal food activity travel object symbol flag;
|
|
|
|
|
|
|
|
@each $cat in $categories {
|
|
|
|
&--#{$cat} {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/emoji/emoji-#{$cat}.svg',
|
2019-05-24 23:58:27 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/emoji/emoji-#{$cat}.svg',
|
2019-05-24 23:58:27 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__body {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px 0;
|
|
|
|
padding-inline: 12px 16px;
|
2019-11-07 21:36:16 +00:00
|
|
|
outline: none;
|
2019-05-24 23:58:27 +00:00
|
|
|
|
|
|
|
&__emoji-cell {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--empty {
|
|
|
|
display: flex;
|
|
|
|
padding: 0;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2019-12-17 20:25:57 +00:00
|
|
|
@include font-body-1;
|
2019-05-24 23:58:27 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: EmojiButton
|
|
|
|
|
|
|
|
.emoji-button-wrapper {
|
|
|
|
height: 36px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0;
|
|
|
|
margin-inline: 6px;
|
2019-05-24 23:58:27 +00:00
|
|
|
padding-top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-emoji-button__button {
|
|
|
|
border: 0;
|
2022-06-15 17:53:08 +00:00
|
|
|
border-radius: 4px;
|
2019-05-24 23:58:27 +00:00
|
|
|
background: none;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2022-06-13 23:37:29 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2022-06-15 17:53:08 +00:00
|
|
|
outline: 2px solid $color-ultramarine;
|
2022-06-13 23:37:29 +00:00
|
|
|
}
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
outline: none;
|
|
|
|
|
2019-08-07 00:40:25 +00:00
|
|
|
&::after {
|
2019-05-24 23:58:27 +00:00
|
|
|
display: block;
|
|
|
|
content: '';
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2019-05-24 23:58:27 +00:00
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/emoji/emoji.svg', $color-gray-75);
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/emoji/emoji.svg', $color-gray-15);
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-18 17:12:02 +00:00
|
|
|
&--profile-editor::after {
|
|
|
|
@include light-theme {
|
2023-05-05 16:23:43 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/emoji/emoji-plus.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
2022-10-18 17:12:02 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-05 16:23:43 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/emoji/emoji-plus.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
2022-10-18 17:12:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-19 19:26:06 +00:00
|
|
|
&--has-emoji {
|
|
|
|
opacity: 1;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-24 23:58:27 +00:00
|
|
|
&--active {
|
|
|
|
@include light-theme() {
|
2019-10-04 18:06:17 +00:00
|
|
|
background: $color-gray-05;
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Emoji
|
2019-06-17 18:46:42 +00:00
|
|
|
@mixin emoji-size($size) {
|
2019-05-24 23:58:27 +00:00
|
|
|
&--#{$size} {
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
2019-06-27 20:35:21 +00:00
|
|
|
&--inline {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: bottom;
|
|
|
|
background-size: $size $size;
|
|
|
|
}
|
2019-06-17 18:46:42 +00:00
|
|
|
}
|
|
|
|
&__image--#{$size} {
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
2023-04-20 17:03:43 +00:00
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
2019-06-17 18:46:42 +00:00
|
|
|
transform: translate3d(0, 0, 0);
|
2020-02-07 20:19:35 +00:00
|
|
|
vertical-align: baseline;
|
2019-05-24 23:58:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-emoji {
|
2020-02-07 19:07:22 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2019-06-27 20:35:21 +00:00
|
|
|
color: transparent;
|
2019-10-31 19:32:10 +00:00
|
|
|
font-family: auto;
|
2019-06-27 20:35:21 +00:00
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
caret-color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
caret-color: $color-gray-05;
|
|
|
|
}
|
2019-05-24 23:58:27 +00:00
|
|
|
|
|
|
|
@include emoji-size(16px);
|
2019-06-27 20:35:21 +00:00
|
|
|
@include emoji-size(18px);
|
2019-05-24 23:58:27 +00:00
|
|
|
@include emoji-size(20px);
|
2019-12-17 20:25:57 +00:00
|
|
|
@include emoji-size(24px);
|
2019-05-24 23:58:27 +00:00
|
|
|
@include emoji-size(28px);
|
|
|
|
@include emoji-size(32px);
|
2020-01-23 23:57:37 +00:00
|
|
|
@include emoji-size(48px);
|
2019-05-24 23:58:27 +00:00
|
|
|
@include emoji-size(64px);
|
|
|
|
@include emoji-size(66px);
|
|
|
|
}
|
|
|
|
|
2019-05-31 22:42:01 +00:00
|
|
|
// Module: Last Seen Indicator
|
|
|
|
|
|
|
|
.module-last-seen-indicator {
|
|
|
|
padding-top: 25px;
|
|
|
|
padding-bottom: 35px;
|
2021-07-12 19:58:45 +00:00
|
|
|
user-select: none;
|
2019-05-31 22:42:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-last-seen-indicator__bar {
|
2019-10-04 18:06:17 +00:00
|
|
|
background-color: $color-gray-45;
|
2019-05-31 22:42:01 +00:00
|
|
|
width: 100%;
|
2019-10-04 18:06:17 +00:00
|
|
|
height: 1px;
|
2019-05-31 22:42:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-last-seen-indicator__text {
|
|
|
|
margin-top: 3px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include font-body-2-bold;
|
2019-05-31 22:42:01 +00:00
|
|
|
|
|
|
|
text-align: center;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-05-31 22:42:01 +00:00
|
|
|
}
|
|
|
|
|
2020-08-27 00:03:42 +00:00
|
|
|
/* Calling: Device Selection */
|
|
|
|
|
|
|
|
.module-calling-device-selection {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-calling-device-selection__close-button {
|
|
|
|
@include button-reset;
|
|
|
|
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-15);
|
2020-08-27 00:03:42 +00:00
|
|
|
|
2021-10-28 00:07:13 +00:00
|
|
|
height: 24px;
|
2020-08-27 00:03:42 +00:00
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 5px;
|
2020-08-27 00:03:42 +00:00
|
|
|
top: 0;
|
2021-10-28 00:07:13 +00:00
|
|
|
width: 24px;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-above-base;
|
2020-08-27 00:03:42 +00:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
2023-04-24 18:02:11 +00:00
|
|
|
&:focus,
|
|
|
|
&:active,
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-ultramarine;
|
2020-08-27 00:03:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-calling-device-selection__title {
|
|
|
|
@include font-title-2;
|
|
|
|
margin-top: 12px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-calling-device-selection__label {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-calling-device-selection__select {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2020-12-01 16:42:35 +00:00
|
|
|
// Module: GroupV1 Disabled Actions
|
|
|
|
|
|
|
|
.module-group-v1-disabled-actions {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px 12px;
|
|
|
|
padding-inline: 16px;
|
2020-12-01 16:42:35 +00:00
|
|
|
max-width: 650px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2020-12-01 16:42:35 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-95;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-group-v1-disabled-actions__message {
|
|
|
|
@include font-body-2;
|
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-group-v1-disabled-actions__message__learn-more {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-group-v1-disabled-actions__buttons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
.module-group-v1-disabled-actions__buttons__button {
|
|
|
|
@include button-reset;
|
|
|
|
@include font-body-1-bold;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
padding: 8px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 30px;
|
2020-12-01 16:42:35 +00:00
|
|
|
|
|
|
|
@include button-primary;
|
|
|
|
}
|
|
|
|
|
2021-01-29 22:16:48 +00:00
|
|
|
// Module: GroupV2 Pending Approval Actions
|
|
|
|
|
|
|
|
.module-group-v2-pending-approval-actions {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px 12px;
|
|
|
|
padding-inline: 16px;
|
2021-01-29 22:16:48 +00:00
|
|
|
max-width: 650px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2021-01-29 22:16:48 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-95;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-group-v2-pending-approval-actions__message {
|
|
|
|
@include font-body-2;
|
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-group-v2-pending-approval-actions__buttons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
.module-group-v2-pending-approval-actions__buttons__button {
|
|
|
|
@include button-reset;
|
|
|
|
@include font-body-1-bold;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
padding: 8px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 30px;
|
2021-01-29 22:16:48 +00:00
|
|
|
|
|
|
|
@include button-secondary;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-20 17:30:45 +00:00
|
|
|
// Module: Modal Host
|
|
|
|
|
|
|
|
.module-modal-host__overlay {
|
|
|
|
background: $color-black-alpha-40;
|
2024-01-16 21:32:38 +00:00
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
inset-inline-start: 0;
|
|
|
|
top: 0;
|
2022-07-05 16:44:53 +00:00
|
|
|
position: fixed;
|
2022-08-05 01:07:46 +00:00
|
|
|
z-index: $z-index-modal-host;
|
2021-10-14 16:52:42 +00:00
|
|
|
}
|
2020-11-20 17:30:45 +00:00
|
|
|
|
2022-03-04 21:14:52 +00:00
|
|
|
.module-modal-host__overlay-container {
|
2020-11-20 17:30:45 +00:00
|
|
|
display: flex;
|
2022-09-15 01:58:35 +00:00
|
|
|
flex-direction: row;
|
2024-01-16 21:32:38 +00:00
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
inset-inline-start: 0;
|
|
|
|
top: 0;
|
2020-11-20 17:30:45 +00:00
|
|
|
justify-content: center;
|
2022-09-15 01:58:35 +00:00
|
|
|
align-items: center;
|
2020-11-20 17:30:45 +00:00
|
|
|
overflow: hidden;
|
|
|
|
padding: 20px;
|
2022-07-05 16:44:53 +00:00
|
|
|
position: fixed;
|
2022-08-05 01:07:46 +00:00
|
|
|
z-index: $z-index-modal-host;
|
2020-11-20 17:30:45 +00:00
|
|
|
}
|
|
|
|
|
2022-09-15 01:58:35 +00:00
|
|
|
.module-modal-host__width-container {
|
|
|
|
max-width: 360px;
|
|
|
|
width: 95%;
|
|
|
|
}
|
|
|
|
|
2021-12-03 23:04:34 +00:00
|
|
|
.module-modal-host--on-top-of-everything {
|
|
|
|
$loading-screen-modal-overlay: $z-index-on-top-of-everything + 1;
|
|
|
|
|
|
|
|
.module-modal-host__overlay,
|
2022-06-24 00:16:36 +00:00
|
|
|
.module-modal-host__overlay-container {
|
2021-12-03 23:04:34 +00:00
|
|
|
z-index: $loading-screen-modal-overlay;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 22:16:48 +00:00
|
|
|
// Module: GroupV2 Join Dialog
|
|
|
|
|
|
|
|
.module-group-v2-join-dialog {
|
|
|
|
@include font-body-1;
|
|
|
|
border-radius: 8px;
|
|
|
|
width: 360px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2021-01-29 22:16:48 +00:00
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module-group-v2-join-dialog__close-button {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 12px;
|
2021-01-29 22:16:48 +00:00
|
|
|
top: 12px;
|
|
|
|
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-75);
|
2021-01-29 22:16:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-15);
|
2021-01-29 22:16:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
background-color: $color-ultramarine;
|
2021-01-29 22:16:48 +00:00
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
background-color: $color-ultramarine-light;
|
2021-01-29 22:16:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module-group-v2-join-dialog__title {
|
|
|
|
@include font-title-2;
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 12px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
|
|
|
.module-group-v2-join-dialog__avatar {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.module-group-v2-join-dialog__metadata {
|
2021-06-02 00:24:28 +00:00
|
|
|
color: $color-gray-60;
|
2021-01-29 22:16:48 +00:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.module-group-v2-join-dialog__prompt {
|
|
|
|
margin-top: 40px;
|
2021-06-02 00:24:28 +00:00
|
|
|
|
|
|
|
&--approval {
|
|
|
|
@include font-subtitle;
|
|
|
|
color: $color-gray-45;
|
|
|
|
margin-top: 40px;
|
|
|
|
}
|
2021-01-29 22:16:48 +00:00
|
|
|
}
|
|
|
|
.module-group-v2-join-dialog__buttons {
|
|
|
|
margin-top: 16px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.module-group-v2-join-dialog__button {
|
|
|
|
// Start flex basis at zero so text width doesn't affect layout. We want the buttons
|
|
|
|
// evenly distributed.
|
|
|
|
flex: 1 1 0px;
|
|
|
|
|
|
|
|
&:not(:first-of-type) {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 16px;
|
2021-01-29 22:16:48 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-02 00:24:28 +00:00
|
|
|
.module-group-v2-join-dialog__description {
|
|
|
|
color: $color-gray-60;
|
|
|
|
margin-top: 12px;
|
|
|
|
}
|
2021-01-29 22:16:48 +00:00
|
|
|
|
2020-10-06 17:06:34 +00:00
|
|
|
// Module: Progress Dialog
|
|
|
|
|
|
|
|
.module-progress-dialog {
|
|
|
|
width: 138px;
|
|
|
|
padding: 18px;
|
|
|
|
border-radius: 8px;
|
|
|
|
@include popper-shadow();
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
background: $color-white;
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-80;
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-progress-dialog__spinner {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-progress-dialog__text {
|
|
|
|
@include font-body-2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-progress-dialog__overlay {
|
|
|
|
background: $color-black-alpha-40;
|
|
|
|
position: fixed;
|
2024-01-16 21:32:38 +00:00
|
|
|
inset-inline-start: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
2020-10-06 17:06:34 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-popup-overlay;
|
2020-10-06 17:06:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Error Modal
|
|
|
|
|
|
|
|
.module-error-modal__button-container {
|
|
|
|
margin-top: 10px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
2020-10-08 01:25:33 +00:00
|
|
|
.module-button {
|
2021-01-29 21:19:24 +00:00
|
|
|
&__small {
|
|
|
|
@include font-body-2;
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2021-01-29 21:19:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
border-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
border-color: $color-gray-65;
|
|
|
|
}
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
outline: none;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 7px;
|
|
|
|
padding-inline: 12px;
|
2021-01-29 21:19:24 +00:00
|
|
|
}
|
2020-10-08 01:25:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-background-color {
|
|
|
|
&__default {
|
|
|
|
background-color: $color-black-alpha-40;
|
|
|
|
}
|
|
|
|
|
2021-08-06 00:17:05 +00:00
|
|
|
@include avatar-colors();
|
2020-10-08 01:25:33 +00:00
|
|
|
}
|
|
|
|
|
2020-11-19 18:11:35 +00:00
|
|
|
.module-tooltip {
|
2021-01-11 21:43:21 +00:00
|
|
|
--tooltip-text-color: #{$color-gray-75};
|
|
|
|
--tooltip-background-color: #{$color-gray-02};
|
|
|
|
|
|
|
|
@mixin tooltip-dark-theme-variables {
|
|
|
|
--tooltip-text-color: #{$color-gray-05};
|
|
|
|
--tooltip-background-color: #{$color-gray-65};
|
|
|
|
}
|
|
|
|
&--dark-theme {
|
|
|
|
@include tooltip-dark-theme-variables;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include tooltip-dark-theme-variables;
|
|
|
|
}
|
|
|
|
|
|
|
|
background-color: var(--tooltip-background-color);
|
2020-06-04 18:16:19 +00:00
|
|
|
border-radius: 8px;
|
2021-01-11 21:43:21 +00:00
|
|
|
color: var(--tooltip-text-color);
|
2020-11-19 18:11:35 +00:00
|
|
|
display: inline-block;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px;
|
|
|
|
padding-inline: 21px;
|
2020-11-19 18:11:35 +00:00
|
|
|
position: fixed;
|
|
|
|
text-align: center;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-tooltip;
|
2020-06-04 18:16:19 +00:00
|
|
|
|
2020-11-19 18:11:35 +00:00
|
|
|
.module-tooltip-arrow {
|
|
|
|
position: absolute;
|
2024-01-19 22:00:13 +00:00
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
|
|
direction: ltr;
|
2020-06-04 18:16:19 +00:00
|
|
|
}
|
2020-11-19 18:11:35 +00:00
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
|
|
|
border: solid 6px transparent;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
2023-08-10 22:16:51 +00:00
|
|
|
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
|
|
margin-left: -6px;
|
2020-11-19 18:11:35 +00:00
|
|
|
margin-top: -6px;
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-placement='top'] {
|
|
|
|
.module-tooltip-arrow {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
|
|
|
bottom: -12px;
|
2021-01-11 21:43:21 +00:00
|
|
|
border-top-color: var(--tooltip-background-color);
|
2020-11-19 18:11:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-placement='right'] {
|
|
|
|
.module-tooltip-arrow {
|
2023-08-10 22:16:51 +00:00
|
|
|
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
|
|
left: 0;
|
2020-11-19 18:11:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
2023-08-10 22:16:51 +00:00
|
|
|
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
|
|
left: -6px;
|
|
|
|
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
|
|
border-right-color: var(--tooltip-background-color);
|
2020-11-19 18:11:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-placement='bottom'] {
|
|
|
|
.module-tooltip-arrow {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
|
|
|
top: -6px;
|
2021-01-11 21:43:21 +00:00
|
|
|
border-bottom-color: var(--tooltip-background-color);
|
2020-11-19 18:11:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-placement='left'] {
|
|
|
|
.module-tooltip-arrow {
|
2023-08-10 22:16:51 +00:00
|
|
|
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
|
|
right: 0;
|
2020-11-19 18:11:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
2023-08-10 22:16:51 +00:00
|
|
|
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
|
|
right: -12px;
|
|
|
|
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
|
|
border-left-color: var(--tooltip-background-color);
|
2020-11-19 18:11:35 +00:00
|
|
|
}
|
2020-06-04 18:16:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-28 19:11:19 +00:00
|
|
|
// Module: Chat Session Refreshed Dialog
|
|
|
|
|
2021-02-18 16:40:26 +00:00
|
|
|
.module-chat-session-refreshed-dialog__image {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.module-chat-session-refreshed-dialog__title {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
|
|
|
|
2021-05-28 19:11:19 +00:00
|
|
|
// Module: Delivery Issue Dialog
|
|
|
|
|
|
|
|
.module-delivery-issue-dialog__image {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.module-delivery-issue-dialog__title {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
|
|
|
|
2019-10-17 18:22:07 +00:00
|
|
|
/* Third-party module: react-contextmenu*/
|
2018-07-09 21:29:13 +00:00
|
|
|
|
|
|
|
.react-contextmenu {
|
2020-10-21 18:26:35 +00:00
|
|
|
@include popper-shadow();
|
|
|
|
|
2019-11-07 21:36:16 +00:00
|
|
|
outline: none;
|
2018-07-09 21:29:13 +00:00
|
|
|
border-radius: 4px;
|
2020-10-21 18:26:35 +00:00
|
|
|
min-width: 220px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 6px;
|
|
|
|
padding-inline: 0;
|
2018-07-09 21:29:13 +00:00
|
|
|
opacity: 0;
|
2019-01-22 22:08:00 +00:00
|
|
|
user-select: none;
|
2021-09-16 21:51:57 +00:00
|
|
|
visibility: hidden;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2023-12-12 16:11:39 +00:00
|
|
|
// style a menu with only one option
|
|
|
|
&:not(:has(:nth-child(2))) {
|
|
|
|
padding-block: 0;
|
|
|
|
.react-contextmenu-item {
|
|
|
|
padding-block: 9px;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2020-10-21 18:26:35 +00:00
|
|
|
background-color: $color-white;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2020-10-21 18:26:35 +00:00
|
|
|
background-color: $color-gray-75;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu--visible {
|
|
|
|
opacity: 1;
|
2021-09-16 21:51:57 +00:00
|
|
|
visibility: visible;
|
2021-12-01 23:13:09 +00:00
|
|
|
z-index: $z-index-context-menu;
|
2023-05-23 16:39:34 +00:00
|
|
|
-webkit-app-region: no-drag;
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item {
|
2019-11-07 21:36:16 +00:00
|
|
|
outline: none;
|
2018-07-09 21:29:13 +00:00
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
2023-05-04 18:04:22 +00:00
|
|
|
display: flex;
|
2023-05-04 23:44:59 +00:00
|
|
|
width: 100%;
|
2023-05-04 18:04:22 +00:00
|
|
|
align-items: center;
|
2018-07-09 21:29:13 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
@include font-body-2;
|
|
|
|
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 7px;
|
|
|
|
|
|
|
|
padding-inline: 12px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2020-10-21 18:26:35 +00:00
|
|
|
|
|
|
|
&--divider {
|
|
|
|
height: 1px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 6px;
|
|
|
|
margin-inline: 0;
|
2020-10-21 18:26:35 +00:00
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item--checked:before {
|
|
|
|
content: '✓';
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 7px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item.react-contextmenu-submenu {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item.react-contextmenu-submenu > .react-contextmenu-item {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-end: 36px;
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item.react-contextmenu-submenu
|
|
|
|
> .react-contextmenu-item:after {
|
2020-10-21 18:26:35 +00:00
|
|
|
content: ' ';
|
2018-07-09 21:29:13 +00:00
|
|
|
display: inline-block;
|
2020-10-21 18:26:35 +00:00
|
|
|
height: 18px;
|
2018-07-09 21:29:13 +00:00
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 7px;
|
2020-10-21 18:26:35 +00:00
|
|
|
width: 12px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2023-06-06 00:08:52 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-06-06 00:08:52 +00:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/chevron/chevron-right.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item.react-contextmenu-item--active,
|
|
|
|
.react-contextmenu-item.react-contextmenu-item--selected {
|
2020-05-01 17:40:27 +00:00
|
|
|
color: $color-black;
|
2019-10-04 18:06:17 +00:00
|
|
|
@include light-theme {
|
2020-05-01 17:40:27 +00:00
|
|
|
background-color: $color-gray-15;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2020-10-21 18:26:35 +00:00
|
|
|
background-color: $color-gray-60;
|
2020-05-01 17:40:27 +00:00
|
|
|
color: $color-white;
|
2019-10-04 18:06:17 +00:00
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
2021-06-25 16:08:16 +00:00
|
|
|
.react-contextmenu-item--disabled.react-contextmenu-item--selected {
|
|
|
|
background-color: inherit;
|
|
|
|
cursor: inherit;
|
|
|
|
}
|
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
.react-contextmenu-item.react-contextmenu-item--active.react-contextmenu-item--checked:before,
|
|
|
|
.react-contextmenu-item.react-contextmenu-item--selected.react-contextmenu-item--checked:before {
|
2020-05-01 17:40:27 +00:00
|
|
|
color: $color-black;
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item.react-contextmenu-submenu
|
|
|
|
> .react-contextmenu-item.react-contextmenu-item--active:after,
|
|
|
|
.react-contextmenu-item.react-contextmenu-submenu
|
|
|
|
> .react-contextmenu-item.react-contextmenu-item--selected:after {
|
2020-05-01 17:40:27 +00:00
|
|
|
color: $color-black;
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
2018-07-09 21:29:13 +00:00
|
|
|
}
|
2018-08-11 00:15:00 +00:00
|
|
|
|
2019-01-08 21:22:27 +00:00
|
|
|
// To limit messages with things forcing them wider, like long attachment names
|
2019-01-16 03:03:56 +00:00
|
|
|
.module-message__container {
|
2022-04-07 16:58:15 +00:00
|
|
|
max-width: 100%;
|
|
|
|
|
2021-01-27 21:15:43 +00:00
|
|
|
&--incoming {
|
|
|
|
align-self: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--outgoing {
|
|
|
|
align-self: flex-end;
|
|
|
|
}
|
|
|
|
|
2020-02-03 20:02:49 +00:00
|
|
|
&--with-reactions {
|
2022-03-08 14:32:42 +00:00
|
|
|
margin-bottom: -6px;
|
2020-02-03 20:02:49 +00:00
|
|
|
}
|
2020-04-29 21:24:12 +00:00
|
|
|
|
|
|
|
&--deleted-for-everyone {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2019-01-08 21:22:27 +00:00
|
|
|
}
|
|
|
|
|
2020-10-21 18:26:35 +00:00
|
|
|
.module-message__context {
|
|
|
|
&--icon::before {
|
|
|
|
content: ' ';
|
|
|
|
display: inline-block;
|
2023-05-04 18:04:22 +00:00
|
|
|
height: 16px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 8px;
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 16px;
|
2020-10-21 18:26:35 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__download::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/save/save-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/save/save-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__reply::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/reply/reply-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/reply/reply-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__react::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/heart/heart-plus-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/heart/heart-plus-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__more-info::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/info/info-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/info/info-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-20 22:23:53 +00:00
|
|
|
&__select::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/check/check-circle-compact.svg',
|
2023-03-20 22:23:53 +00:00
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/check/check-circle-compact.svg',
|
2023-03-20 22:23:53 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-21 18:26:35 +00:00
|
|
|
&__retry-send::before {
|
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/send/send.svg', $color-black);
|
2020-10-21 18:26:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/send/send.svg', $color-gray-15);
|
2020-10-21 18:26:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-27 22:35:35 +00:00
|
|
|
&__forward-message::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/forward/forward-compact.svg',
|
2021-04-27 22:35:35 +00:00
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/forward/forward-compact.svg',
|
2021-04-27 22:35:35 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-20 16:31:59 +00:00
|
|
|
&__edit-message::before {
|
2020-10-21 18:26:35 +00:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/edit/edit-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/edit/edit-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 18:04:22 +00:00
|
|
|
&__delete-message::before,
|
2020-10-21 18:26:35 +00:00
|
|
|
&__delete-message-for-everyone::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/trash/trash-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/trash/trash-compact.svg',
|
2020-10-21 18:26:35 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2022-11-22 22:33:15 +00:00
|
|
|
|
|
|
|
&__copy-timestamp::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/copy/copy-compact.svg',
|
2022-11-22 22:33:15 +00:00
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/copy/copy-compact.svg',
|
2022-11-22 22:33:15 +00:00
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2020-10-21 18:26:35 +00:00
|
|
|
}
|
2024-02-22 21:19:50 +00:00
|
|
|
|
|
|
|
.module-message__action {
|
|
|
|
@include button-reset();
|
|
|
|
margin-top: 5px;
|
|
|
|
padding: 10px;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
@include font-body-1-bold();
|
|
|
|
border-top: 1px solid;
|
|
|
|
}
|
|
|
|
.module-message__action--outgoing {
|
|
|
|
border-top-color: rgba(255, 255, 255, 0.5);
|
|
|
|
}
|
|
|
|
.module-message__action--incoming {
|
|
|
|
@include light-theme {
|
|
|
|
border-top-color: rgba(0, 0, 0, 0.25);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-top-color: rgba(255, 255, 255, 0.25);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__call-link-icon {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 64px;
|
|
|
|
height: 64px;
|
|
|
|
margin-inline-end: 12px;
|
|
|
|
background: #e5e5fe;
|
|
|
|
@include rounded-corners();
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/video/video-display-bold.svg',
|
|
|
|
#5151f6
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|