2021-01-07 13:32:12 -06:00
|
|
|
// Copyright 2018-2021 Signal Messenger, LLC
|
2020-10-30 15:34:04 -05:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
// Using BEM syntax explained here: https://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/
|
|
|
|
|
2021-02-01 14:01:25 -06:00
|
|
|
.module-title-bar-drag-area {
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
height: var(--title-bar-drag-area-height);
|
|
|
|
left: 0;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-on-top-of-everything;
|
2021-02-01 14:01:25 -06:00
|
|
|
}
|
|
|
|
|
2020-05-15 14:28:13 -04:00
|
|
|
.module-splash-screen {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-03-05 13:24:51 -08:00
|
|
|
.module-splash-screen__logo {
|
|
|
|
@include color-svg('../images/signal-logo.svg', $color-white);
|
|
|
|
margin: 24px auto;
|
|
|
|
|
|
|
|
&.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 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine-icon;
|
2020-03-05 13:24:51 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
// Module: Message
|
|
|
|
|
2019-05-31 15:42:01 -07:00
|
|
|
// Note: this does the same thing as module-timeline__message-container but
|
2021-04-02 22:28:07 +02:00
|
|
|
// can be used outside the Timeline contact more easily.
|
2019-05-31 15:42:01 -07:00
|
|
|
.module-message-container {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
cursor: inherit;
|
2019-05-31 15:42:01 -07:00
|
|
|
width: 100%;
|
2019-08-22 14:11:36 -07:00
|
|
|
margin-top: 4px;
|
|
|
|
margin-bottom: 4px;
|
2019-05-31 15:42:01 -07:00
|
|
|
|
2019-08-06 17:40:25 -07:00
|
|
|
&::after {
|
2019-05-31 15:42:01 -07:00
|
|
|
visibility: hidden;
|
|
|
|
display: block;
|
|
|
|
font-size: 0;
|
|
|
|
content: ' ';
|
|
|
|
clear: both;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-message {
|
2018-08-10 17:15:00 -07:00
|
|
|
position: relative;
|
2018-07-09 14:29:13 -07:00
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: stretch;
|
2019-11-07 13:36:16 -08:00
|
|
|
outline: none;
|
2021-10-14 11:54:20 -05:00
|
|
|
margin-left: 16px;
|
|
|
|
margin-right: 16px;
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message--expired {
|
|
|
|
animation: module-message__shake 0.2s linear infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes module-message__shake {
|
|
|
|
0% {
|
|
|
|
transform: translateX(0px);
|
|
|
|
}
|
|
|
|
25% {
|
|
|
|
transform: translateX(-5px);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
transform: translateX(0px);
|
|
|
|
}
|
|
|
|
75% {
|
|
|
|
transform: translateX(5px);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateX(0px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message--outgoing {
|
|
|
|
float: right;
|
2021-10-14 11:54:20 -05:00
|
|
|
justify-content: flex-end;
|
2018-07-09 14:29:13 -07: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-10 17:15:00 -07:00
|
|
|
.module-message__buttons--incoming {
|
2021-02-05 00:45:47 +02:00
|
|
|
padding-left: 8px;
|
2021-10-12 18:59:08 -05:00
|
|
|
|
|
|
|
& > * {
|
|
|
|
margin-left: 12px;
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2018-08-10 17:15:00 -07:00
|
|
|
}
|
2021-10-12 18:59:08 -05:00
|
|
|
|
2018-08-10 17:15:00 -07:00
|
|
|
.module-message__buttons--outgoing {
|
2021-02-05 00:45:47 +02:00
|
|
|
padding-right: 8px;
|
2020-01-23 18:57:37 -05:00
|
|
|
flex-direction: row-reverse;
|
2021-10-12 18:59:08 -05:00
|
|
|
|
|
|
|
& > * {
|
|
|
|
margin-right: 12px;
|
|
|
|
&:first-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2018-08-10 17:15:00 -07:00
|
|
|
}
|
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
.module-message__buttons__download {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
cursor: pointer;
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/save-outline-24.svg',
|
|
|
|
$color-gray-45
|
|
|
|
);
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/save-outline-24.svg',
|
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/save-solid-24.svg', $color-gray-45);
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/save-solid-24.svg',
|
|
|
|
$color-gray-02
|
|
|
|
);
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-23 18:57:37 -05:00
|
|
|
.module-message__buttons__react {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
cursor: pointer;
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/add-emoji-outline-24.svg',
|
|
|
|
$color-gray-45
|
|
|
|
);
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/add-emoji-outline-24.svg',
|
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/add-emoji-outline-24.svg',
|
|
|
|
$color-gray-45
|
|
|
|
);
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/add-emoji-outline-24.svg',
|
|
|
|
$color-gray-02
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
.module-message__buttons__reply {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
cursor: pointer;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/reply-outline-24.svg',
|
|
|
|
$color-gray-45
|
|
|
|
);
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/reply-outline-24.svg',
|
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/reply-solid-24.svg', $color-gray-45);
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/reply-solid-24.svg',
|
|
|
|
$color-gray-02
|
|
|
|
);
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__buttons__menu {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include color-svg('../images/icons/v2/more-horiz-24.svg', $color-gray-45);
|
|
|
|
@include light-theme {
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/more-horiz-24.svg',
|
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/more-horiz-24.svg',
|
|
|
|
$color-gray-02
|
|
|
|
);
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
2021-10-05 09:58:34 -04:00
|
|
|
|
|
|
|
&--container {
|
|
|
|
border-radius: 4px;
|
|
|
|
height: 24px;
|
|
|
|
// 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 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2021-10-05 09:58:34 -04:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__error-container {
|
2020-03-25 15:48:10 -07:00
|
|
|
min-width: 28px;
|
2018-07-09 14:29:13 -07:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__error {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 4px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-outline-24.svg',
|
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-solid-24.svg',
|
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
2021-05-05 17:09:29 -07:00
|
|
|
.module-message__error--paused {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-outline-24.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/error-solid-24.svg', $color-gray-45);
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
|
|
|
|
.module-message__error--outgoing {
|
|
|
|
left: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__error--incoming {
|
|
|
|
right: 8px;
|
|
|
|
}
|
|
|
|
|
2021-01-27 15:15:43 -06:00
|
|
|
.module-message__container-outer {
|
|
|
|
line-height: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-03-29 14:36:03 -07:00
|
|
|
width: 100%;
|
2021-09-30 14:24:23 -07:00
|
|
|
min-width: 0;
|
2021-10-14 11:54:20 -05:00
|
|
|
max-width: 306px;
|
|
|
|
|
|
|
|
.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 15:15:43 -06:00
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
.module-message__container {
|
2018-06-27 13:53:49 -07:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
border-radius: 16px;
|
2018-09-28 16:04:16 -07:00
|
|
|
min-width: 0px;
|
2021-03-29 14:36:03 -07:00
|
|
|
width: 100%;
|
2021-01-07 13:32:12 -06:00
|
|
|
overflow: hidden;
|
2019-08-22 14:11:36 -07:00
|
|
|
|
2021-10-04 17:42:26 -05:00
|
|
|
// These should match the margins in .module-message__attachment-container.
|
|
|
|
padding: {
|
|
|
|
left: 12px;
|
|
|
|
right: 12px;
|
|
|
|
top: 10px;
|
|
|
|
bottom: 7px;
|
|
|
|
}
|
|
|
|
|
2019-08-22 14:11:36 -07:00
|
|
|
@include light-theme {
|
|
|
|
border: 1px solid $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
border: 1px solid $color-gray-95;
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
// This is the component we put the outline around when the whole message is selected
|
|
|
|
.module-message--selected .module-message__container {
|
|
|
|
@include mouse-mode {
|
2020-01-23 18:57:37 -05:00
|
|
|
animation: message--mouse-selected 1s $ease-out-expo;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
.module-message:focus .module-message__container {
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0 0 0 3px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes message--mouse-selected {
|
|
|
|
0% {
|
|
|
|
box-shadow: 0 0 0 5px transparent;
|
|
|
|
}
|
|
|
|
10% {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0 0 0 5px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
70% {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0 0 0 5px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
box-shadow: 0 0 0 5px transparent;
|
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// We disable this highlight for messages with stickers, instead highlighting the sticker
|
2019-11-21 11:16:06 -08:00
|
|
|
.module-message--selected .module-message__container--with-sticker {
|
|
|
|
@include mouse-mode {
|
|
|
|
animation: none;
|
|
|
|
}
|
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
.module-message:focus .module-message__container--with-sticker {
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
.module-message__container--with-sticker {
|
2019-11-21 11:16:06 -08:00
|
|
|
@include light-theme {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
border: none;
|
|
|
|
}
|
2021-03-29 14:34:47 -07:00
|
|
|
|
|
|
|
/* Leave some padding to eat the negative margin-bottom from
|
|
|
|
* .module-message__metadata
|
|
|
|
*/
|
|
|
|
padding-bottom: 3px;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
2021-10-06 13:37:53 -04:00
|
|
|
.module-message__container--emoji {
|
|
|
|
padding-top: 0;
|
2021-10-07 18:27:08 -04:00
|
|
|
|
|
|
|
.module-message__text--outgoing {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2021-10-06 13:37:53 -04:00
|
|
|
}
|
|
|
|
|
2018-10-09 15:56:14 -07:00
|
|
|
.module-message__container--outgoing {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine;
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-white;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-ultramarine;
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// In case the color gets messed up
|
2018-10-09 15:56:14 -07:00
|
|
|
.module-message__container--incoming {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: $color-gray-05;
|
|
|
|
color: $color-gray-90;
|
2018-07-09 14:29:13 -07:00
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-75;
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-09-25 17:26:06 -07:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@each $color, $value in $conversation-colors {
|
2021-05-28 12:15:17 -04:00
|
|
|
.module-message__container--outgoing-#{$color} {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $value;
|
2021-05-28 12:15:17 -04:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $value;
|
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2018-09-25 17:26:06 -07:00
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
.module-message__container--outgoing-custom {
|
|
|
|
background-attachment: fixed;
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
|
2021-05-28 12:15:17 -04: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 11:06:17 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
.module-message__container--with-tap-to-view {
|
|
|
|
min-width: 148px;
|
|
|
|
cursor: pointer;
|
2021-07-12 14:58:45 -05:00
|
|
|
user-select: none;
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
.module-message__container--with-tap-to-view-pending {
|
|
|
|
background-color: $color-gray-15;
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__container--with-tap-to-view-pending {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__container--with-tap-to-view-expired {
|
2019-10-04 11:06:17 -07: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 10:46:09 -08:00
|
|
|
background-color: $color-gray-95;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__container--with-tap-to-view-error {
|
|
|
|
width: auto;
|
|
|
|
cursor: default;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
border: 1px solid $color-deep-red;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-black;
|
|
|
|
border: 1px solid $color-deep-red;
|
|
|
|
}
|
2019-06-26 12:33:13 -07: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 {
|
|
|
|
margin-right: 6px;
|
|
|
|
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__tap-to-view__icon {
|
|
|
|
margin-right: 6px;
|
|
|
|
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
2020-01-10 08:29:51 -08:00
|
|
|
@include color-svg('../images/icons/v2/view-once-24.svg', $color-gray-90);
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2020-01-10 08:29:51 -08:00
|
|
|
@include color-svg('../images/icons/v2/view-once-24.svg', $color-gray-05);
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__icon--expired {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
2020-01-10 08:29:51 -08:00
|
|
|
@include color-svg('../images/icons/v2/viewed-once-24.svg', $color-gray-75);
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2020-01-10 08:29:51 -08:00
|
|
|
@include color-svg('../images/icons/v2/viewed-once-24.svg', $color-gray-05);
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
2021-06-02 15:52:25 -04:00
|
|
|
.module-message__tap-to-view__icon--outgoing {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
2019-06-26 12:33:13 -07:00
|
|
|
.module-message__tap-to-view__text {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1-bold;
|
2019-06-26 12:33:13 -07:00
|
|
|
|
2021-06-02 15:52:25 -04:00
|
|
|
color: $color-gray-05;
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__text--incoming {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__text--incoming-expired {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__text--incoming-error {
|
2019-10-04 11:06:17 -07: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 12:15:17 -04:00
|
|
|
color: $color-white;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
.module-message__tap-to-view__text--outgoing-expired {
|
2021-06-02 15:52:25 -04:00
|
|
|
color: $color-gray-05;
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-message__attachment-container {
|
2019-05-16 15:32:11 -07:00
|
|
|
// To ensure that images are centered if they aren't full width of bubble
|
2018-06-27 13:53:49 -07:00
|
|
|
text-align: center;
|
|
|
|
position: relative;
|
|
|
|
|
2020-08-12 17:47:20 -05:00
|
|
|
// These should match the paddings from .module-message__container,
|
|
|
|
// effectively "undoing" that padding.
|
2019-05-16 15:32:11 -07:00
|
|
|
margin: {
|
|
|
|
left: -12px;
|
|
|
|
right: -12px;
|
|
|
|
top: -10px;
|
2021-10-04 17:42:26 -05:00
|
|
|
bottom: -7px;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
2018-08-01 15:40:13 -07:00
|
|
|
|
2020-08-12 17:47:20 -05:00
|
|
|
line-height: 0;
|
2018-08-01 15:40:13 -07:00
|
|
|
overflow: hidden;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
}
|
2018-08-01 15:40:13 -07:00
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
&--with-content-below {
|
|
|
|
margin-bottom: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--with-content-above {
|
|
|
|
margin-top: 4px;
|
2021-04-27 15:11:59 -07:00
|
|
|
}
|
2018-08-01 15:40:13 -07:00
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
.module-message__sticker-container {
|
|
|
|
// To ensure that images are centered if they aren't full width of bubble
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
margin: {
|
|
|
|
left: -12px;
|
|
|
|
right: -12px;
|
|
|
|
top: -9px;
|
|
|
|
bottom: -5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--with-content-below {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--with-content-above {
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
2018-08-01 15:40:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__img-attachment {
|
|
|
|
margin-bottom: -3px;
|
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
// redundant with attachment-container, but we get cursor flashing on move otherwise
|
2018-06-27 13:53:49 -07:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-01-30 12:15:07 -08:00
|
|
|
align-items: center;
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment--with-content-below {
|
|
|
|
padding-bottom: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment--with-content-above {
|
|
|
|
padding-top: 4px;
|
|
|
|
}
|
|
|
|
|
2020-05-27 17:37:06 -04:00
|
|
|
.module-message__generic-attachment--not-active {
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2018-10-03 18:12:42 -07:00
|
|
|
.module-message__generic-attachment__icon-container {
|
|
|
|
position: relative;
|
2021-07-12 14:58:45 -05:00
|
|
|
user-select: none;
|
2018-10-03 18:12:42 -07:00
|
|
|
}
|
2019-01-30 12:15:07 -08:00
|
|
|
.module-message__generic-attachment__spinner-container {
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
|
|
|
}
|
2018-10-03 18:12:42 -07:00
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-message__generic-attachment__icon {
|
|
|
|
background: url('../images/file-gradient.svg') no-repeat center;
|
|
|
|
height: 44px;
|
|
|
|
width: 56px;
|
|
|
|
margin-left: -13px;
|
|
|
|
margin-right: -14px;
|
|
|
|
margin-bottom: -4px;
|
|
|
|
|
|
|
|
// So we can center the extension text inside this icon
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2018-10-03 18:12:42 -07:00
|
|
|
.module-message__generic-attachment__icon-dangerous-container {
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: -1px;
|
|
|
|
right: -4px;
|
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__icon-dangerous {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-solid-24.svg',
|
|
|
|
$color-accent-red
|
|
|
|
);
|
2018-10-03 18:12:42 -07:00
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07: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;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
|
|
// 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-13 17:06:50 -07:00
|
|
|
|
2018-10-09 15:56:14 -07:00
|
|
|
color: $color-gray-90;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__text {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-left: 8px;
|
2021-03-29 11:19:29 -04:00
|
|
|
// The width of the icon plus our 8px margin plus 1px leeway
|
|
|
|
max-width: calc(100% - 36px);
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__file-name {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2-bold;
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
margin-top: 2px;
|
2021-07-12 14:58:45 -05:00
|
|
|
user-select: none;
|
2018-06-27 13:53:49 -07:00
|
|
|
|
|
|
|
// Handling really long filenames - cut them off
|
|
|
|
overflow-x: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
color: $color-white;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__file-name--incoming {
|
2018-10-09 15:56:14 -07:00
|
|
|
color: $color-white;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__generic-attachment__file-size {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
margin-top: 3px;
|
2021-07-12 14:58:45 -05:00
|
|
|
user-select: none;
|
2018-06-27 13:53:49 -07:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
color: $color-white;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
2019-01-15 19:03:56 -08:00
|
|
|
.module-message__generic-attachment__file-size--incoming {
|
|
|
|
color: $color-white;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview {
|
2021-03-15 15:57:02 -07:00
|
|
|
cursor: pointer;
|
2021-02-02 11:09:53 -06:00
|
|
|
|
|
|
|
&--nonclickable {
|
|
|
|
cursor: inherit;
|
|
|
|
.module-image__image {
|
|
|
|
cursor: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-19 15:03:00 -08:00
|
|
|
display: block;
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2019-01-15 19:03:56 -08:00
|
|
|
margin-left: -12px;
|
|
|
|
margin-right: -12px;
|
2019-11-19 15:03:00 -08:00
|
|
|
width: calc(100% + 24px);
|
2021-04-15 11:31:31 -07:00
|
|
|
outline: none;
|
2019-11-19 15:03:00 -08:00
|
|
|
|
2019-01-15 19:03:56 -08:00
|
|
|
margin-top: -10px;
|
|
|
|
margin-bottom: 5px;
|
2019-09-03 17:07:47 -07:00
|
|
|
overflow: hidden;
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview--with-content-above {
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__content {
|
2021-01-07 13:32:12 -06:00
|
|
|
padding: 8px 12px;
|
2019-01-15 19:03:56 -08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: flex-start;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-01-07 13:32:12 -06:00
|
|
|
background-color: $color-gray-02;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-01-07 13:32:12 -06:00
|
|
|
background-color: $color-gray-80;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__icon_container {
|
|
|
|
margin: -2px;
|
|
|
|
margin-right: 8px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__text--with-icon {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__title {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1-bold;
|
2019-01-15 19:03:56 -08:00
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
}
|
|
|
|
|
2020-08-28 20:27:45 -05: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 11:06:17 -07:00
|
|
|
@include font-body-2;
|
|
|
|
|
2020-08-28 20:27:45 -05:00
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
align-items: center;
|
2021-01-07 13:32:12 -06:00
|
|
|
margin-top: 2px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2020-08-28 20:27:45 -05:00
|
|
|
|
|
|
|
> *:not(:first-child) {
|
|
|
|
display: flex;
|
2021-03-29 14:36:03 -07:00
|
|
|
flex-grow: 1;
|
2020-08-28 20:27:45 -05:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '•';
|
|
|
|
font-size: 50%;
|
|
|
|
margin-left: 0.2rem;
|
|
|
|
margin-right: 0.2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__link-preview__location {
|
|
|
|
text-transform: lowercase;
|
2019-01-15 19:03:56 -08:00
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-message__author {
|
2019-10-21 15:28:53 -07:00
|
|
|
@include font-body-2-bold;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
height: 18px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2021-07-12 14:58:45 -05:00
|
|
|
user-select: none;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
2019-06-26 12:33:13 -07:00
|
|
|
.module-message__author--with-tap-to-view-expired {
|
2019-10-21 15:28:53 -07:00
|
|
|
@include font-body-2-bold;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-06-26 12:33:13 -07:00
|
|
|
height: 18px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-75;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
.module-message__author_with_sticker {
|
2019-10-21 15:28:53 -07:00
|
|
|
@include font-body-2-bold;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-05-16 15:32:11 -07: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 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__text {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1;
|
|
|
|
|
2018-08-03 19:26:36 +03:00
|
|
|
text-align: start;
|
2018-07-09 14:29:13 -07:00
|
|
|
overflow-wrap: break-word;
|
|
|
|
word-wrap: break-word;
|
|
|
|
word-break: break-word;
|
|
|
|
white-space: pre-wrap;
|
2018-08-06 18:22:30 -07:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-white-alpha-90;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-white-alpha-90;
|
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
2019-11-21 11:16:06 -08:00
|
|
|
outline: none;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
color: $color-white-alpha-90;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
outline: 1px solid $color-gray-90;
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-11-21 11:16:06 -08:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white-alpha-90;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-keyboard-mode {
|
2019-11-21 11:16:06 -08:00
|
|
|
&:focus {
|
|
|
|
outline: 1px solid $color-white-alpha-90;
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2019-10-04 11:06:17 -07: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 11:16:06 -08:00
|
|
|
outline: none;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2019-11-21 11:16:06 -08:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include keyboard-mode {
|
2019-11-21 11:16:06 -08:00
|
|
|
&:focus {
|
|
|
|
outline: 1px solid $color-gray-90;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-05;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-keyboard-mode {
|
2019-11-21 11:16:06 -08:00
|
|
|
&:focus {
|
|
|
|
outline: 1px solid $color-gray-05;
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
.module-message__text--error {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1-italic;
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-message__metadata {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: 3px;
|
2020-02-03 15:02:49 -05:00
|
|
|
|
|
|
|
&--outgoing {
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
2018-08-07 14:54:08 -07:00
|
|
|
// With an image and no caption, this section needs to be on top of the image overlay
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-message__metadata--with-image-no-caption {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 9px;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2018-06-27 13:53:49 -07:00
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
// Because this is absolutely positioned, we 100% is too big, take it down by parent
|
|
|
|
// padding sizes.
|
|
|
|
padding-right: 24px;
|
2019-11-19 15:03:00 -08:00
|
|
|
|
|
|
|
// This is so all clicks go right through to the underlying image.
|
|
|
|
pointer-events: none;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__metadata__date {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-caption;
|
2021-07-12 14:58:45 -05:00
|
|
|
user-select: none;
|
2021-10-14 11:54:20 -05:00
|
|
|
white-space: nowrap;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
2020-08-06 21:22:52 -04:00
|
|
|
.module-message__metadata__tapable {
|
|
|
|
@include button-reset;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-message__metadata__date--incoming {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-white-alpha-80;
|
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
.module-message__metadata__date--with-image-no-caption {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
2020-01-07 13:19:48 -08:00
|
|
|
.module-message__metadata__date.module-message__metadata__date--incoming-with-tap-to-view-expired {
|
2019-06-26 12:33:13 -07:00
|
|
|
color: $color-gray-75;
|
2020-01-07 13:19:48 -08: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 15:52:25 -04:00
|
|
|
color: $color-white-alpha-80;
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
2020-01-07 13:19:48 -08:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-message__metadata__date--with-sticker {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
|
|
|
|
.module-message__metadata__status-icon {
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 6px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
|
|
|
|
2021-05-05 17:09:29 -07:00
|
|
|
.module-message__metadata__status-icon--paused,
|
2018-07-09 14:29:13 -07:00
|
|
|
.module-message__metadata__status-icon--sending {
|
2021-07-30 13:35:43 -05:00
|
|
|
@include only-when-page-is-visible {
|
|
|
|
animation: rotate 4s linear infinite;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
2021-07-30 13:35:43 -05:00
|
|
|
@include color-svg('../images/sending.svg', $color-white);
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
.module-message__metadata__status-icon--sent {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/check-circle-outline.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/check-circle-outline.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
.module-message__metadata__status-icon--delivered {
|
2018-06-27 13:53:49 -07:00
|
|
|
width: 18px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/double-check.svg', $color-white-alpha-80);
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/double-check.svg', $color-white-alpha-80);
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
2021-07-27 10:42:25 -05:00
|
|
|
.module-message__metadata__status-icon--read,
|
|
|
|
.module-message__metadata__status-icon--viewed {
|
2018-06-27 13:53:49 -07:00
|
|
|
width: 18px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/read.svg', $color-white-alpha-80);
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/read.svg', $color-white-alpha-80);
|
|
|
|
}
|
2018-06-27 13:53:49 -07: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 11:06:17 -07:00
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module-message__metadata__status-icon--with-sticker {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__metadata__spinner-container {
|
|
|
|
margin-left: 6px;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__send-message-button {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
2019-11-14 18:12:31 -08:00
|
|
|
width: calc(100% + 24px);
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include font-body-2-bold;
|
2018-06-27 13:53:49 -07:00
|
|
|
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: -10px;
|
|
|
|
margin-left: -12px;
|
|
|
|
margin-right: -12px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px;
|
|
|
|
|
|
|
|
border-bottom-left-radius: 16px;
|
|
|
|
border-bottom-right-radius: 16px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
color: $color-ultramarine;
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-02;
|
|
|
|
border: 1px solid $color-black-alpha-20;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
color: $color-ultramarine-light;
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-75;
|
|
|
|
border: 1px solid $color-gray-45;
|
|
|
|
}
|
2019-11-14 18:12:31 -08:00
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
2019-11-14 18:12:31 -08:00
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
2021-01-27 15:15:43 -06:00
|
|
|
.module-message__author-avatar-container {
|
|
|
|
align-items: flex-end;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
|
|
&--with-reactions {
|
|
|
|
padding-bottom: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-14 11:10:32 -08:00
|
|
|
.module-message__typing-container {
|
|
|
|
height: 16px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-01-17 17:23:19 -05:00
|
|
|
.module-message__reactions {
|
2021-01-27 15:15:43 -06:00
|
|
|
position: relative;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2020-02-03 15:02:49 -05:00
|
|
|
height: 22px;
|
|
|
|
display: flex;
|
2021-07-12 14:58:45 -05:00
|
|
|
user-select: none;
|
2021-01-27 15:15:43 -06:00
|
|
|
|
|
|
|
&--incoming {
|
|
|
|
align-self: flex-end;
|
|
|
|
padding-right: 8px;
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
&--outgoing {
|
|
|
|
align-self: flex-start;
|
|
|
|
padding-left: 8px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-message__reactions__reaction {
|
|
|
|
@include button-reset;
|
|
|
|
|
2020-02-03 15:02:49 -05:00
|
|
|
min-width: 28px;
|
|
|
|
height: 22px;
|
2020-01-17 17:23:19 -05:00
|
|
|
border: 1px solid;
|
|
|
|
border-radius: 33px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-02-03 15:02:49 -05:00
|
|
|
&--with-count {
|
|
|
|
min-width: 40px;
|
2021-10-05 14:27:55 -04:00
|
|
|
padding: 0 6px;
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
|
2020-02-03 15:02:49 -05:00
|
|
|
&__count {
|
|
|
|
@include font-caption-bold;
|
2020-01-17 17:23:19 -05:00
|
|
|
|
2020-02-03 15:02:49 -05:00
|
|
|
margin-left: 4px;
|
|
|
|
|
|
|
|
&--no-emoji {
|
|
|
|
margin-left: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@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 17:23:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
border-color: $color-white;
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
border-color: $color-gray-95;
|
2021-06-01 19:37:12 -04:00
|
|
|
background: $color-gray-90;
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&--is-me {
|
|
|
|
@include dark-theme() {
|
2021-06-01 19:37:12 -04:00
|
|
|
background: $color-gray-60;
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme() {
|
2021-06-01 19:37:12 -04:00
|
|
|
background: $color-gray-25;
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
// Module: Expire Timer
|
|
|
|
|
|
|
|
.module-expire-timer {
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 6px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/timer-60-12.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/timer-60-12.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-10-17 10:50:57 -07:00
|
|
|
$timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
|
|
|
'00';
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-10-17 10:50:57 -07:00
|
|
|
@each $timer-icon in $timer-icons {
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-expire-timer--#{$timer-icon} {
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/timer-#{$timer-icon}-12.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/timer-#{$timer-icon}-12.svg',
|
|
|
|
$color-white-alpha-80
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-expire-timer--incoming {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-white-alpha-80;
|
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
2020-01-07 13:19:48 -08:00
|
|
|
.module-expire-timer.module-expire-timer--incoming-with-tap-to-view-expired {
|
2019-06-26 12:33:13 -07:00
|
|
|
background-color: $color-gray-75;
|
2020-01-07 13:19:48 -08: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 15:52:25 -04:00
|
|
|
background-color: $color-white-alpha-80;
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-expire-timer--with-sticker {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 14:29:13 -07: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 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Quoted Reply
|
|
|
|
|
2018-08-15 12:31:29 -07:00
|
|
|
.module-quote-container {
|
2019-08-06 15:18:37 -04:00
|
|
|
margin: {
|
|
|
|
left: -6px;
|
|
|
|
right: -6px;
|
2021-10-04 20:12:07 -04:00
|
|
|
top: 3px;
|
2019-08-06 15:18:37 -04:00
|
|
|
bottom: 5px;
|
|
|
|
}
|
2018-08-15 12:31:29 -07:00
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-quote {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
width: 100%;
|
2019-05-31 15:42:01 -07:00
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
position: relative;
|
2018-06-27 13:53:49 -07:00
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: stretch;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
border-left-width: 4px;
|
|
|
|
border-left-style: solid;
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote--no-click {
|
|
|
|
cursor: auto;
|
|
|
|
}
|
|
|
|
|
2018-08-15 12:31:29 -07:00
|
|
|
.module-quote--with-reference-warning {
|
|
|
|
border-bottom-left-radius: 0px;
|
|
|
|
border-bottom-right-radius: 0px;
|
|
|
|
}
|
|
|
|
|
2018-10-09 15:56:14 -07:00
|
|
|
.module-quote--outgoing {
|
2021-05-28 12:15:17 -04:00
|
|
|
border-left-color: $color-steel;
|
|
|
|
background-color: $color-steel;
|
2021-10-04 20:12:07 -04:00
|
|
|
margin-top: -4px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
// To preserve contrast
|
2021-05-28 12:15:17 -04:00
|
|
|
@include keyboard-mode {
|
2019-11-21 11:16:06 -08:00
|
|
|
&:focus {
|
|
|
|
box-shadow: 0px 0px 0px 2px $color-white;
|
|
|
|
}
|
|
|
|
}
|
2020-04-08 11:52:33 -07:00
|
|
|
}
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@each $color, $value in $conversation-colors {
|
2021-05-28 12:15:17 -04:00
|
|
|
.module-quote--incoming-#{$color} {
|
|
|
|
background-color: scale-color($value, $lightness: 60%);
|
2019-10-04 11:06:17 -07:00
|
|
|
border-left-color: $value;
|
2021-05-28 12:15:17 -04:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: scale-color($value, $lightness: -40%);
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-quote--outgoing-#{$color} {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: scale-color($value, $lightness: 60%);
|
|
|
|
border-left-color: $color-white;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include dark-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: scale-color($value, $lightness: -40%);
|
|
|
|
border-left-color: $color-white;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
}
|
2018-09-25 17:26:06 -07:00
|
|
|
}
|
|
|
|
|
2021-06-01 19:37:12 -04:00
|
|
|
.module-quote--incoming-custom,
|
2021-05-28 12:15:17 -04:00
|
|
|
.module-quote--outgoing-custom {
|
|
|
|
background-attachment: fixed;
|
2018-09-25 17:26:06 -07:00
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
|
|
|
|
@each $color, $value in $conversation-colors-gradient {
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-quote--incoming-#{$color} {
|
2021-05-28 12:15:17 -04:00
|
|
|
border-left-color: map-get($value, 'start');
|
|
|
|
}
|
|
|
|
.module-quote--incoming-#{$color},
|
|
|
|
.module-quote--outgoing-#{$color} {
|
|
|
|
background-attachment: fixed;
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-image: linear-gradient(
|
|
|
|
map-get($value, 'deg'),
|
|
|
|
scale-color(map-get($value, 'start'), $lightness: 60%),
|
|
|
|
scale-color(map-get($value, 'end'), $lightness: 60%)
|
|
|
|
);
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-image: linear-gradient(
|
|
|
|
map-get($value, 'deg'),
|
|
|
|
scale-color(map-get($value, 'start'), $lightness: -40%),
|
|
|
|
scale-color(map-get($value, 'end'), $lightness: -40%)
|
|
|
|
);
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
.module-quote--outgoing-#{$color} {
|
|
|
|
border-left-color: $color-white;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__primary {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
padding-top: 7px;
|
|
|
|
padding-bottom: 7px;
|
2018-07-09 14:29:13 -07:00
|
|
|
|
2021-01-21 17:57:07 -06:00
|
|
|
// To leave room for image thumbnail
|
|
|
|
min-height: 54px;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__primary__author {
|
2019-10-21 15:28:53 -07:00
|
|
|
@include font-body-2-bold;
|
2018-07-09 14:29:13 -07:00
|
|
|
|
2020-08-13 17:21:05 -05:00
|
|
|
overflow: hidden;
|
2018-07-09 14:29:13 -07:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__primary__author--incoming {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-quote__primary__text {
|
2019-10-21 15:28:53 -07:00
|
|
|
@include font-body-1;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2018-12-14 19:27:46 +02:00
|
|
|
text-align: start;
|
2018-06-27 13:53:49 -07:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
2018-10-09 15:56:14 -07:00
|
|
|
color: $color-gray-90;
|
2019-10-04 11:06:17 -07:00
|
|
|
a {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
a {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-07-20 16:37:57 -07:00
|
|
|
}
|
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
overflow-wrap: break-word;
|
|
|
|
word-wrap: break-word;
|
|
|
|
word-break: break-word;
|
2018-06-27 13:53:49 -07:00
|
|
|
white-space: pre-wrap;
|
2018-07-09 14:29:13 -07:00
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-quote__primary__text--incoming {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-05;
|
|
|
|
a {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-quote__primary__type-label {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2-italic;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__primary__type-label--incoming {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__primary__filename-label {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__close-container {
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
right: 4px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-10-17 10:50:57 -07:00
|
|
|
background-color: $color-black-alpha-40;
|
2019-11-21 11:16:06 -08:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus-within {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__close-button {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
2019-10-17 10:50:57 -07:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-white);
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__icon-container {
|
2021-01-21 17:57:07 -06:00
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
2021-01-27 17:34:22 -06:00
|
|
|
background-size: cover;
|
|
|
|
flex: 0 0 54px;
|
2018-06-27 13:53:49 -07:00
|
|
|
position: relative;
|
2021-01-27 17:34:22 -06:00
|
|
|
width: 54px;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__icon-container__inner {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__icon-container__circle-background {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
|
|
|
border-radius: 50%;
|
2018-07-09 14:29:13 -07:00
|
|
|
background-color: $color-white;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__icon-container__icon {
|
2019-10-04 11:06:17 -07:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__icon-container__icon--file {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include color-svg('../images/file.svg', $color-ultramarine);
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
.module-quote__icon-container__icon--image {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include color-svg('../images/image.svg', $color-ultramarine);
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
.module-quote__icon-container__icon--microphone {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/mic-outline-24.svg',
|
2021-05-28 12:15:17 -04:00
|
|
|
$color-ultramarine
|
2019-10-04 11:06:17 -07:00
|
|
|
);
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
.module-quote__icon-container__icon--play {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/play-solid-24.svg',
|
2021-05-28 12:15:17 -04:00
|
|
|
$color-ultramarine
|
2019-10-04 11:06:17 -07:00
|
|
|
);
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
.module-quote__icon-container__icon--movie {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include color-svg('../images/movie.svg', $color-ultramarine);
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
2021-06-02 09:42:19 -07:00
|
|
|
.module-quote__icon-container__icon--view-once {
|
|
|
|
@include color-svg('../images/icons/v2/view-once-24.svg', $color-ultramarine);
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
|
|
|
|
.module-quote__generic-file {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.module-quote__generic-file__icon {
|
|
|
|
background: url('../images/file-gradient.svg');
|
|
|
|
background-size: 75%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
height: 28px;
|
|
|
|
width: 36px;
|
|
|
|
margin-left: -4px;
|
|
|
|
margin-right: -6px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
.module-quote__generic-file__text {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
2018-07-09 14:29:13 -07:00
|
|
|
|
|
|
|
max-width: calc(100% - 26px);
|
|
|
|
overflow-x: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__generic-file__text--incoming {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
2018-08-15 12:31:29 -07:00
|
|
|
.module-quote__reference-warning {
|
2020-04-01 12:33:16 -07:00
|
|
|
color: $color-gray-90;
|
2018-08-15 12:31:29 -07:00
|
|
|
height: 26px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
border-bottom-right-radius: 4px;
|
2021-05-28 12:15:17 -04:00
|
|
|
border-left-style: solid;
|
|
|
|
border-left-width: 4px;
|
2018-08-15 12:31:29 -07:00
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__reference-warning__icon {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2020-04-01 12:33:16 -07:00
|
|
|
@include color-svg('../images/icons/v2/link-broken-16.svg', $color-gray-90);
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/link-broken-16.svg', $color-gray-05);
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__reference-warning__icon--incoming {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2020-04-01 12:33:16 -07:00
|
|
|
@include color-svg('../images/icons/v2/link-broken-16.svg', $color-gray-90);
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/link-broken-16.svg', $color-gray-05);
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2018-08-15 12:31:29 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__reference-warning__text {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-caption;
|
|
|
|
|
2018-08-15 12:31:29 -07:00
|
|
|
margin-left: 6px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
color: $color-gray-05;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-quote__reference-warning__text--incoming {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2018-08-15 12:31:29 -07:00
|
|
|
}
|
|
|
|
|
2021-01-25 20:01:19 -05:00
|
|
|
.module-about {
|
|
|
|
&__container {
|
2021-01-27 19:18:50 -05:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2021-01-25 20:01:19 -05:00
|
|
|
max-width: 248px;
|
2021-01-27 19:18:50 -05:00
|
|
|
text-align: center;
|
2021-01-25 20:01:19 -05: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-27 19:18:50 -05:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
display: -webkit-box;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
2021-01-25 20:01:19 -05:00
|
|
|
img.emoji {
|
|
|
|
height: 1em;
|
|
|
|
margin-right: 3px;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
// Module: Embedded Contact
|
|
|
|
|
|
|
|
.module-embedded-contact {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
width: 100%;
|
2019-11-14 18:12:31 -08:00
|
|
|
padding: 5px;
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-01-30 12:15:07 -08:00
|
|
|
align-items: center;
|
2019-11-14 18:12:31 -08:00
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact--outgoing {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include keyboard-mode {
|
2019-11-21 11:16:06 -08:00
|
|
|
&:focus {
|
|
|
|
box-shadow: 0px 0px 0px 2px $color-white;
|
|
|
|
}
|
2019-11-14 18:12:31 -08:00
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact--with-content-above {
|
|
|
|
padding-top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact--with-content-below {
|
|
|
|
padding-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
2019-01-30 12:15:07 -08:00
|
|
|
.module-embedded-contact__spinner-container {
|
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
.module-embedded-contact__text-container {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
|
|
max-width: calc(100% - 58px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact__contact-name {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1-bold;
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
margin-top: 6px;
|
|
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact__contact-name--incoming {
|
2018-10-09 15:56:14 -07:00
|
|
|
color: $color-white;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact__contact-method {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
2018-06-27 13:53:49 -07:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
margin-top: 3px;
|
2018-06-27 13:53:49 -07:00
|
|
|
max-width: 100%;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-white-alpha-80;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-embedded-contact__contact-method--incoming {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-white-alpha-80;
|
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Contact Detail
|
|
|
|
|
|
|
|
.module-contact-detail {
|
|
|
|
text-align: center;
|
|
|
|
max-width: 300px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
2018-09-26 17:23:17 -07:00
|
|
|
.module-contact-detail__avatar {
|
2018-06-27 13:53:49 -07:00
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__contact-name {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1-bold;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__contact-method {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__send-message {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
2018-06-27 13:53:49 -07:00
|
|
|
|
|
|
|
border-radius: 4px;
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine;
|
2018-06-27 13:53:49 -07:00
|
|
|
display: inline-block;
|
|
|
|
padding: 6px;
|
|
|
|
margin-top: 20px;
|
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
color: $color-white;
|
2018-06-27 13:53:49 -07:00
|
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__send-message__inner {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-10-04 11:06:17 -07:00
|
|
|
padding-right: 5px;
|
|
|
|
|
|
|
|
@include font-body-2-bold;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__send-message__bubble-icon {
|
|
|
|
height: 17px;
|
|
|
|
width: 18px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 5px;
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/message-outline-24.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/message-solid-24.svg', $color-white);
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__additional-contact {
|
|
|
|
text-align: left;
|
|
|
|
margin-top: 15px;
|
|
|
|
padding-top: 8px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
border-top: 1px solid $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-top: 1px solid $color-gray-75;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-detail__additional-contact__type {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-caption-bold;
|
|
|
|
|
|
|
|
color: $color-gray-45;
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
|
|
|
|
2019-11-07 13:36:16 -08:00
|
|
|
// Module: Inline Notification Wrapper
|
|
|
|
|
|
|
|
.module-inline-notification-wrapper {
|
|
|
|
outline: none;
|
|
|
|
|
2020-10-30 12:35:31 -05:00
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
background-color: $color-gray-80;
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
// Module: Group Notification
|
2018-06-27 13:53:49 -07:00
|
|
|
|
2018-07-09 14:29:13 -07:00
|
|
|
.module-group-notification__contact {
|
2019-10-04 11:06:17 -07:00
|
|
|
font-weight: bold;
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
2021-08-26 16:51:55 -04:00
|
|
|
.module-safety-number__bold-name {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2021-08-05 16:34:49 -07:00
|
|
|
// Module: Error Boundary
|
|
|
|
|
2021-08-02 13:55:47 -07: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 {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
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 14:29:13 -07:00
|
|
|
.module-notification--with-click-handler {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-notification__icon {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Contact List Item
|
|
|
|
|
|
|
|
.module-contact-list-item {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
cursor: inherit;
|
|
|
|
|
2020-07-23 18:35:32 -07:00
|
|
|
padding: 8px;
|
|
|
|
width: 100%;
|
|
|
|
|
2018-06-27 13:53:49 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
2020-07-23 18:35:32 -07:00
|
|
|
|
|
|
|
@include mouse-mode {
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-15;
|
|
|
|
}
|
2020-07-23 18:35:32 -07:00
|
|
|
@include dark-mouse-mode {
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-gray-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-gray-80;
|
|
|
|
}
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-list-item--with-click-handler {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-list-item__text {
|
|
|
|
margin-left: 8px;
|
2020-09-08 19:25:05 -07:00
|
|
|
|
2021-01-25 20:01:19 -05:00
|
|
|
align-items: center;
|
2020-09-08 19:25:05 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
flex-grow: 1;
|
2021-01-27 19:18:50 -05:00
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-list-item__left {
|
|
|
|
flex: 1;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-list-item__text__name {
|
2021-01-25 20:01:19 -05:00
|
|
|
@include font-body-1-bold;
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-list-item__text__additional-data {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
|
|
|
|
|
|
|
margin-top: 3p;
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-contact-list-item__text__verified-icon {
|
|
|
|
display: inline-block;
|
2019-10-04 11:06:17 -07:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2018-06-27 13:53:49 -07:00
|
|
|
vertical-align: text-bottom;
|
|
|
|
|
|
|
|
// Trying to account for the whitespace around the check mark
|
|
|
|
margin-bottom: -1px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/check-24.svg', $color-gray-60);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/check-24.svg', $color-gray-25);
|
|
|
|
}
|
2018-06-27 13:53:49 -07:00
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
|
2020-09-08 19:25:05 -07:00
|
|
|
.module-contact-list-item__admin {
|
|
|
|
text-align: right;
|
|
|
|
height: 100%;
|
|
|
|
|
2021-01-25 20:01:19 -05:00
|
|
|
@include font-body-2;
|
2020-09-08 19:25:05 -07:00
|
|
|
}
|
|
|
|
|
2020-07-23 18:35:32 -07:00
|
|
|
// Module: In Contacts Icon
|
|
|
|
|
|
|
|
.module-in-contacts-icon__icon {
|
|
|
|
display: inline-block;
|
|
|
|
height: 15px;
|
|
|
|
width: 15px;
|
|
|
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/profile-circle-outline-24.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/profile-circle-outline-24.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/profile-circle-outline-24.svg',
|
2021-05-28 12:15:17 -04:00
|
|
|
$color-ultramarine
|
2020-07-23 18:35:32 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 16:19:24 -05:00
|
|
|
// Module: Conversation Details
|
|
|
|
|
|
|
|
.conversation-details-panel {
|
|
|
|
max-width: 750px;
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
@at-root .conversation #{&} {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Brought this up here to add specificity
|
2021-10-20 19:46:41 -04:00
|
|
|
button.ConversationDetails__action-button {
|
2021-01-29 16:19:24 -05:00
|
|
|
margin-left: 16px;
|
|
|
|
}
|
|
|
|
|
2018-07-17 17:15:34 -07:00
|
|
|
// Module: Media Gallery
|
|
|
|
|
|
|
|
.module-media-gallery {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-11-07 13:36:16 -08:00
|
|
|
outline: none;
|
2018-07-17 17:15:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-gallery__tab-container {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-gallery__tab {
|
|
|
|
width: 100%;
|
|
|
|
padding: 20px;
|
|
|
|
text-align: center;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-90;
|
|
|
|
}
|
2019-11-21 11:16:06 -08:00
|
|
|
|
|
|
|
outline: none;
|
|
|
|
|
2020-10-30 12:35:31 -05:00
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
|
|
|
background-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
background-color: $color-gray-75;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
}
|
2018-07-17 17:15:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-gallery__tab--active {
|
2021-05-28 12:15:17 -04:00
|
|
|
border-bottom: 2px solid $color-ultramarine;
|
2018-07-17 17:15:34 -07: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 11:06:17 -07:00
|
|
|
@include font-body-1-bold;
|
2018-07-17 17:15:34 -07: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 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
border-bottom: 1px solid $color-gray-02;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-bottom: 1px solid $color-gray-75;
|
|
|
|
}
|
2018-07-17 17:15:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__content {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
2019-11-21 11:16:06 -08:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2018-07-17 17:15:34 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: center;
|
2019-11-21 11:16:06 -08:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
}
|
2018-07-17 17:15:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__icon {
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/file.svg', $color-gray-45);
|
2018-07-17 17:15:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__metadata {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-left: 8px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__file-size {
|
|
|
|
display: inline-block;
|
|
|
|
margin-top: 8px;
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
2018-07-17 17:15:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-document-list-item__date {
|
|
|
|
display: inline-block;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Media Grid Item
|
|
|
|
|
|
|
|
.module-media-grid-item {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
2018-07-17 17:15:34 -07:00
|
|
|
height: 94px;
|
|
|
|
width: 94px;
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-05;
|
2018-07-17 17:15:34 -07:00
|
|
|
margin-right: 4px;
|
|
|
|
margin-bottom: 4px;
|
2018-07-20 16:37:57 -07:00
|
|
|
position: relative;
|
2019-11-21 11:16:06 -08:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
}
|
2018-07-17 17:15:34 -07:00
|
|
|
}
|
2018-07-18 16:00:51 -07:00
|
|
|
|
2018-07-17 17:15:34 -07:00
|
|
|
.module-media-grid-item__image {
|
|
|
|
height: 94px;
|
2021-09-17 08:46:19 -05:00
|
|
|
width: 100%;
|
2018-07-17 17:15:34 -07:00
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
2018-07-20 16:37:57 -07:00
|
|
|
.module-media-grid-item__icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 15px;
|
|
|
|
bottom: 15px;
|
|
|
|
left: 15px;
|
|
|
|
right: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-grid-item__icon-image {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/image.svg', $color-gray-45);
|
2018-07-20 16:37:57 -07:00
|
|
|
}
|
|
|
|
|
2018-07-18 16:00:51 -07:00
|
|
|
.module-media-grid-item__image-container {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-grid-item__circle-overlay {
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
|
|
|
width: 42px;
|
|
|
|
height: 42px;
|
|
|
|
background-color: $color-white;
|
|
|
|
border-radius: 21px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-grid-item__play-overlay {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/play-solid-24.svg',
|
2021-05-28 12:15:17 -04:00
|
|
|
$color-ultramarine
|
2019-10-04 11:06:17 -07:00
|
|
|
);
|
2018-07-18 16:00:51 -07:00
|
|
|
}
|
|
|
|
|
2018-07-20 16:37:57 -07:00
|
|
|
.module-media-grid-item__icon-video {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/movie.svg', $color-gray-45);
|
2018-07-20 16:37:57 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-media-grid-item__icon-generic {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/file.svg', $color-gray-45);
|
2018-07-20 16:37:57 -07:00
|
|
|
}
|
|
|
|
|
2018-07-18 16:00:51 -07:00
|
|
|
/* Module: Empty State*/
|
2018-07-17 17:15:34 -07:00
|
|
|
|
|
|
|
.module-empty-state {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-grow: 1;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include font-title-1;
|
|
|
|
|
|
|
|
color: $color-gray-45;
|
2018-07-17 17:15:34 -07:00
|
|
|
}
|
|
|
|
|
2020-05-27 17:37:06 -04:00
|
|
|
// Module: Conversation Hero
|
|
|
|
|
|
|
|
.module-conversation-hero {
|
|
|
|
padding: 32px 0 28px 0;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&__avatar {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__profile-name {
|
|
|
|
@include font-title-2;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__with {
|
|
|
|
@include font-body-2;
|
2021-06-01 17:24:28 -07:00
|
|
|
margin: 0 auto;
|
2020-05-27 17:37:06 -04:00
|
|
|
margin-bottom: 16px;
|
2021-06-01 17:24:28 -07:00
|
|
|
max-width: 500px;
|
2020-05-27 17:37:06 -04:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__membership {
|
|
|
|
@include font-body-2;
|
|
|
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__name {
|
|
|
|
@include font-body-2-bold;
|
|
|
|
}
|
|
|
|
}
|
2021-04-30 17:58:57 -05:00
|
|
|
|
|
|
|
&__message-request-warning {
|
|
|
|
@include font-body-2;
|
|
|
|
|
|
|
|
&__message {
|
|
|
|
display: flex;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 14px;
|
|
|
|
margin-right: 8px;
|
|
|
|
width: 14px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/info-outline-24.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/info-solid-24.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-27 17:37:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Message Request Actions
|
|
|
|
|
|
|
|
.module-message-request-actions {
|
|
|
|
padding: 8px 16px 12px 16px;
|
|
|
|
|
|
|
|
@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 11:31:57 -07:00
|
|
|
|
|
|
|
&__learn-more {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-05-27 17:37:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__buttons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
|
2021-04-06 17:14:18 -05:00
|
|
|
.module-Button {
|
2020-05-27 17:37:06 -04:00
|
|
|
min-width: 80px;
|
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-28 17:42:13 -07:00
|
|
|
// Module: Main Header
|
|
|
|
|
|
|
|
.module-main-header {
|
2021-03-08 16:42:29 -06:00
|
|
|
-webkit-app-region: var(--draggable-app-region);
|
|
|
|
|
2021-02-01 14:01:25 -06:00
|
|
|
height: calc(#{$header-height} + var(--title-bar-drag-area-height));
|
2021-01-07 12:05:10 -06:00
|
|
|
width: 100%;
|
2019-01-14 13:49:58 -08:00
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
padding-left: 24px;
|
|
|
|
padding-right: 24px;
|
2021-02-01 14:01:25 -06:00
|
|
|
padding-top: var(--title-bar-drag-area-height);
|
2018-09-28 17:42:13 -07:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-01-07 12:05:10 -06:00
|
|
|
& > * {
|
|
|
|
margin-right: 12px;
|
2019-01-14 13:49:58 -08:00
|
|
|
|
2021-01-07 12:05:10 -06:00
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-01-14 13:49:58 -08:00
|
|
|
|
2021-03-08 16:42:29 -06:00
|
|
|
&__avatar {
|
|
|
|
-webkit-app-region: no-drag;
|
2021-08-19 18:56:29 -04:00
|
|
|
|
|
|
|
&--container {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--badged {
|
|
|
|
background: $color-ultramarine;
|
|
|
|
border-radius: 100%;
|
|
|
|
border: 1px solid $color-white;
|
|
|
|
height: 8px;
|
|
|
|
width: 8px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
2021-10-12 18:59:08 -05:00
|
|
|
|
|
|
|
.module-left-pane--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-03-08 16:42:29 -06:00
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
&__compose-icon {
|
|
|
|
$icon: '../images/icons/v2/compose-outline-24.svg';
|
|
|
|
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2021-03-08 16:42:29 -06:00
|
|
|
-webkit-app-region: no-drag;
|
2021-02-23 14:34:28 -06:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg($icon, $color-gray-90);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg($icon, $color-gray-02);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include color-svg($icon, $color-ultramarine);
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
}
|
2018-09-28 17:42:13 -07:00
|
|
|
}
|
|
|
|
|
2018-11-14 10:47:19 -08:00
|
|
|
// Module: Image
|
|
|
|
|
|
|
|
.module-image {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2018-12-01 17:48:53 -08:00
|
|
|
vertical-align: middle;
|
2018-11-14 10:47:19 -08:00
|
|
|
}
|
|
|
|
|
2021-04-27 15:11:59 -07:00
|
|
|
.module-image--tap-to-play,
|
2021-01-29 17:58:28 -05:00
|
|
|
.module-image--not-downloaded {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
|
2021-04-27 15:11:59 -07:00
|
|
|
span {
|
2021-01-29 17:58:28 -05:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
border-radius: 48px;
|
|
|
|
height: 48px;
|
|
|
|
width: 48px;
|
2021-04-27 15:11:59 -07:00
|
|
|
background-color: $color-black-alpha-70;
|
2021-01-29 17:58:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2021-04-27 15:11:59 -07:00
|
|
|
span {
|
|
|
|
background-color: $color-black-alpha-80;
|
2021-01-29 17:58:28 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2021-04-27 15:11:59 -07:00
|
|
|
span {
|
2021-01-29 17:58:28 -05:00
|
|
|
background-color: $color-gray-75;
|
2021-05-28 12:15:17 -04:00
|
|
|
border: 4px solid $color-ultramarine;
|
2021-01-29 17:58:28 -05:00
|
|
|
box-sizing: border-box;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-27 15:11:59 -07:00
|
|
|
.module-image--not-downloaded {
|
|
|
|
span:after {
|
|
|
|
content: '';
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
@include color-svg('../images/icons/v2/arrow-down-24.svg', $color-white);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-image--tap-to-play {
|
|
|
|
span:after {
|
2021-05-11 15:25:28 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-04-27 15:11:59 -07:00
|
|
|
content: 'GIF';
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
@include font-body-1;
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 17:58:28 -05:00
|
|
|
.module-image__download-pending {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&--spinner-container {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--spinner {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
border-radius: 48px;
|
|
|
|
height: 48px;
|
|
|
|
width: 48px;
|
|
|
|
|
|
|
|
.module-image-spinner {
|
|
|
|
&__container {
|
|
|
|
margin: 12px auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__arc {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__circle {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
&__arc {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
.module-image--with-background {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-black;
|
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
2018-11-14 10:47:19 -08:00
|
|
|
.module-image__caption-icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
|
|
|
left: 6px;
|
|
|
|
}
|
|
|
|
|
2018-12-01 17:48:53 -08:00
|
|
|
.module-image--soft-corners {
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2021-06-24 14:00:11 -07:00
|
|
|
.module-image--cropped {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2018-11-14 10:47:19 -08:00
|
|
|
.module-image--curved-top-left {
|
|
|
|
border-top-left-radius: 16px;
|
|
|
|
}
|
|
|
|
.module-image--curved-top-right {
|
|
|
|
border-top-right-radius: 16px;
|
|
|
|
}
|
|
|
|
.module-image--curved-bottom-left {
|
|
|
|
border-bottom-left-radius: 16px;
|
|
|
|
}
|
|
|
|
.module-image--curved-bottom-right {
|
|
|
|
border-bottom-right-radius: 16px;
|
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
.module-image--small-curved-top-left {
|
|
|
|
border-top-left-radius: 10px;
|
|
|
|
}
|
2018-11-14 10:47:19 -08:00
|
|
|
|
2019-11-07 13:36:16 -08:00
|
|
|
.module-image__border-overlay {
|
|
|
|
@include button-reset;
|
2019-08-22 14:11:36 -07:00
|
|
|
|
2019-11-07 13:36:16 -08:00
|
|
|
width: 100%;
|
|
|
|
cursor: inherit;
|
2019-08-22 14:11:36 -07:00
|
|
|
|
2018-11-14 10:47:19 -08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__border-overlay--with-click-handler {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-11-07 13:36:16 -08:00
|
|
|
.module-image__border-overlay--with-border {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
box-shadow: inset 0px 0px 0px 1px $color-black-alpha-20;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
box-shadow: inset 0px 0px 0px 1px $color-white-alpha-20;
|
|
|
|
}
|
2018-11-14 10:47:19 -08:00
|
|
|
}
|
|
|
|
|
2021-04-27 15:11:59 -07:00
|
|
|
.module-image--gif {
|
|
|
|
&__filesize {
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
left: 10px;
|
|
|
|
padding: 2px 8px;
|
|
|
|
|
|
|
|
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 14:58:45 -05:00
|
|
|
user-select: none;
|
2021-04-27 15:11:59 -07:00
|
|
|
}
|
2021-07-14 16:39:52 -07:00
|
|
|
|
|
|
|
video {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2021-04-27 15:11:59 -07:00
|
|
|
}
|
|
|
|
|
2019-11-07 13:36:16 -08:00
|
|
|
// Only if it's a sticker do we put the outline inside it
|
2019-11-21 11:16:06 -08:00
|
|
|
.module-message--selected
|
|
|
|
.module-message__container--with-sticker
|
|
|
|
.module-image__border-overlay {
|
|
|
|
@include mouse-mode {
|
|
|
|
top: 1px;
|
|
|
|
bottom: 1px;
|
|
|
|
left: 1px;
|
|
|
|
right: 1px;
|
|
|
|
border-radius: 10px;
|
|
|
|
|
2020-01-23 18:57:37 -05:00
|
|
|
animation: message--mouse-selected 1s $ease-out-expo;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-04 17:42:26 -05:00
|
|
|
.module-message:focus .module-message__container--with-sticker {
|
|
|
|
$border-radius: 10px;
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2021-10-04 17:42:26 -05:00
|
|
|
.module-image__image {
|
|
|
|
@include keyboard-mode {
|
|
|
|
border-radius: $border-radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__border-overlay {
|
|
|
|
@include keyboard-mode {
|
|
|
|
border-radius: $border-radius;
|
|
|
|
box-shadow: 0 0 0 3px $color-ultramarine;
|
|
|
|
}
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
button.module-image__border-overlay:focus {
|
|
|
|
@include keyboard-mode {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: inset 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
|
|
|
|
2018-11-14 10:47:19 -08:00
|
|
|
.module-image__border-overlay--dark {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-black-alpha-20;
|
2018-11-14 10:47:19 -08:00
|
|
|
}
|
|
|
|
|
2019-01-30 12:15:07 -08:00
|
|
|
.module-image__loading-placeholder {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-black-alpha-20;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-white-alpha-20;
|
|
|
|
}
|
2019-01-30 12:15:07 -08:00
|
|
|
}
|
|
|
|
|
2018-11-14 10:47:19 -08: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 18:13:09 -05:00
|
|
|
z-index: $z-index-base;
|
2018-11-14 10:47:19 -08:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__play-overlay__circle {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
background-color: $color-white;
|
|
|
|
border-radius: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__play-overlay__icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/play-solid-24.svg',
|
2021-05-28 12:15:17 -04:00
|
|
|
$color-ultramarine
|
2019-10-04 11:06:17 -07:00
|
|
|
);
|
2018-11-14 10:47:19 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-image__text-container {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-above-base;
|
2020-07-23 18:35:32 -07:00
|
|
|
|
|
|
|
// This allows click-through to the overlay button behind it
|
|
|
|
pointer-events: none;
|
2018-11-14 10:47:19 -08:00
|
|
|
|
|
|
|
color: $color-white;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1;
|
2018-11-14 10:47:19 -08:00
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2018-12-01 17:48:53 -08:00
|
|
|
.module-image__close-button {
|
2021-09-20 20:23:55 -05:00
|
|
|
@include staged-attachment-close-button;
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2018-12-01 17:48:53 -08:00
|
|
|
background-image: url('../images/x-shadow-16.svg');
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
outline: 2px solid $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2018-12-01 17:48:53 -08:00
|
|
|
}
|
|
|
|
|
2018-11-14 10:47:19 -08:00
|
|
|
// Module: Image Grid
|
|
|
|
|
|
|
|
.module-image-grid {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-06-24 14:00:11 -07:00
|
|
|
gap: 1px;
|
2018-11-14 10:47:19 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-image-grid--one-image {
|
|
|
|
margin-bottom: -5px;
|
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
.module-image-grid--with-sticker {
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
|
2018-11-14 10:47:19 -08:00
|
|
|
.module-image-grid__column {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2021-06-24 14:00:11 -07:00
|
|
|
gap: 1px;
|
2018-11-14 10:47:19 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-image-grid__row {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2018-11-14 11:10:32 -08:00
|
|
|
flex-grow: 1;
|
2021-06-24 14:00:11 -07:00
|
|
|
gap: 1px;
|
2018-11-14 11:10:32 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Typing Animation
|
|
|
|
|
|
|
|
.module-typing-animation {
|
|
|
|
display: inline-flex;
|
2021-07-01 16:43:10 -07:00
|
|
|
flex-direction: row;
|
2018-11-14 11:10:32 -08:00
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
height: 8px;
|
|
|
|
width: 38px;
|
|
|
|
padding-left: 1px;
|
|
|
|
padding-right: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-typing-animation__dot {
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
height: 6px;
|
|
|
|
width: 6px;
|
|
|
|
opacity: 0.4;
|
2021-07-01 16:43:10 -07:00
|
|
|
will-change: transform, opacity;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
2018-11-14 11:10:32 -08:00
|
|
|
|
2021-07-30 13:35:43 -05:00
|
|
|
@include only-when-page-is-visible {
|
2021-08-25 14:02:32 -05:00
|
|
|
animation: {
|
|
|
|
name: typing-animation;
|
|
|
|
duration: 1600ms;
|
|
|
|
timing-function: ease;
|
|
|
|
iteration-count: infinite;
|
|
|
|
}
|
2021-07-30 13:35:43 -05:00
|
|
|
}
|
2021-07-01 16:43:10 -07:00
|
|
|
}
|
2018-11-14 11:10:32 -08:00
|
|
|
|
2021-07-01 16:43:10 -07:00
|
|
|
.module-left-pane .module-typing-animation__dot {
|
2021-07-30 13:35:43 -05:00
|
|
|
@include only-when-page-is-visible {
|
|
|
|
animation-name: typing-animation-bare;
|
|
|
|
}
|
2021-07-01 16:43:10 -07:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-07-01 16:43:10 -07:00
|
|
|
.module-typing-animation__dot--light {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-white;
|
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
2018-11-14 11:10:32 -08:00
|
|
|
}
|
|
|
|
|
2021-07-01 16:43:10 -07:00
|
|
|
@keyframes typing-animation {
|
2018-11-14 11:10:32 -08:00
|
|
|
0% {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
20% {
|
|
|
|
transform: scale(1.3);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
40% {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-01 16:43:10 -07:00
|
|
|
@keyframes typing-animation-bare {
|
|
|
|
0% {
|
2018-11-14 11:10:32 -08:00
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
20% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2021-07-01 16:43:10 -07:00
|
|
|
40% {
|
2018-11-14 11:10:32 -08:00
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-typing-animation__dot--second {
|
2021-07-01 16:43:10 -07:00
|
|
|
animation-delay: 160ms;
|
2018-11-14 11:10:32 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-typing-animation__dot--third {
|
2021-07-01 16:43:10 -07:00
|
|
|
animation-delay: 320ms;
|
2018-11-14 11:10:32 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-typing-animation__spacer {
|
|
|
|
flex-grow: 1;
|
2018-11-14 10:47:19 -08:00
|
|
|
}
|
|
|
|
|
2018-12-01 17:48:53 -08:00
|
|
|
// Module: Attachments
|
|
|
|
|
|
|
|
.module-attachments__header {
|
|
|
|
height: 24px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2021-11-30 21:14:25 -05:00
|
|
|
.module-attachments__edit-icon {
|
|
|
|
align-items: center;
|
|
|
|
background: $color-black-alpha-60;
|
|
|
|
border-radius: 100%;
|
|
|
|
display: flex;
|
|
|
|
height: 36px;
|
|
|
|
justify-content: center;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -20px;
|
|
|
|
margin-top: -18px;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
visibility: hidden;
|
|
|
|
width: 36px;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
@include color-svg('../images/icons/v2/edit-solid-16.svg', $color-white);
|
|
|
|
content: '';
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-attachments--editable {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.module-attachments__edit-icon {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-01 17:48:53 -08:00
|
|
|
.module-attachments__close-button {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
2018-12-01 17:48:53 -08:00
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
|
|
|
right: 16px;
|
|
|
|
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-black);
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-ultramarine);
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2018-12-01 17:48:53 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-attachments__rail {
|
|
|
|
margin-top: 12px;
|
2019-08-06 15:18:37 -04:00
|
|
|
margin-left: 12px;
|
|
|
|
padding-right: 12px;
|
2018-12-01 17:48:53 -08:00
|
|
|
overflow-x: scroll;
|
|
|
|
max-height: 142px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-y: hidden;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
}
|
|
|
|
|
2021-09-20 20:23:55 -05:00
|
|
|
.module-staged-attachment {
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
|
|
&.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-01 17:48:53 -08: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-28 18:30:24 -07:00
|
|
|
white-space: nowrap;
|
2019-10-04 11:06:17 -07: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-01 17:48:53 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-generic-attachment__close-button {
|
2021-09-20 20:23:55 -05:00
|
|
|
@include staged-attachment-close-button;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-black);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-45);
|
|
|
|
}
|
2018-12-01 17:48:53 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-generic-attachment__icon {
|
|
|
|
margin-top: 30px;
|
|
|
|
|
|
|
|
background: url('../images/file-gradient.svg') no-repeat center;
|
|
|
|
height: 44px;
|
|
|
|
width: 56px;
|
|
|
|
margin-left: 32px;
|
|
|
|
margin-right: 32px;
|
|
|
|
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;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
|
|
// 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 11:06:17 -07:00
|
|
|
@include font-caption;
|
|
|
|
|
2018-12-01 17:48:53 -08: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 09:33:23 -08:00
|
|
|
// Module: Staged Placeholder Attachment
|
|
|
|
|
|
|
|
.module-staged-placeholder-attachment {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
2019-01-15 09:33:23 -08:00
|
|
|
margin: 1px;
|
|
|
|
border-radius: 4px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-01-15 09:33:23 -08:00
|
|
|
height: 120px;
|
|
|
|
width: 120px;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
position: relative;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
border: 1px solid $color-gray-25;
|
|
|
|
&:hover {
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
2019-11-07 13:36:16 -08:00
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: inset 0 0 0 2px $color-ultramarine;
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-11-21 11:16:06 -08:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include dark-theme {
|
|
|
|
border: 1px solid $color-gray-60;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
2019-11-07 13:36:16 -08:00
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: inset 0 0 0 2px $color-ultramarine;
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2019-01-15 09:33:23 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-placeholder-attachment__plus-icon {
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
|
|
|
height: 36px;
|
|
|
|
width: 36px;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/plus-24.svg', $color-gray-45);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/plus-24.svg', $color-gray-60);
|
|
|
|
}
|
2019-01-15 09:33:23 -08:00
|
|
|
}
|
|
|
|
|
2019-01-15 19:03:56 -08:00
|
|
|
// Module: Staged Link Preview
|
|
|
|
|
|
|
|
.module-staged-link-preview {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2020-09-28 18:46:31 -05:00
|
|
|
align-items: stretch;
|
2019-01-15 19:03:56 -08:00
|
|
|
|
|
|
|
min-height: 65px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-link-preview--is-loading {
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.module-staged-link-preview__loading {
|
|
|
|
text-align: center;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-staged-link-preview__icon-container {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
.module-staged-link-preview__content {
|
2020-09-28 18:46:31 -05:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-01-15 19:03:56 -08:00
|
|
|
margin-right: 20px;
|
|
|
|
}
|
|
|
|
.module-staged-link-preview__title {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1-bold;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
2020-09-28 18:46:31 -05:00
|
|
|
-webkit-line-clamp: 1;
|
2019-01-15 19:03:56 -08:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
}
|
2020-09-28 18:46:31 -05:00
|
|
|
.module-staged-link-preview__description {
|
|
|
|
@include font-body-1;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 1;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
}
|
|
|
|
.module-staged-link-preview__footer {
|
|
|
|
@include font-body-2;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
> *:not(:first-child) {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '•';
|
|
|
|
font-size: 50%;
|
|
|
|
margin-left: 0.2rem;
|
|
|
|
margin-right: 0.2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
.module-staged-link-preview__location {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
|
|
|
|
2020-09-28 18:46:31 -05:00
|
|
|
text-transform: lowercase;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
}
|
|
|
|
.module-staged-link-preview__close-button {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
2019-01-15 19:03:56 -08:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
right: 0px;
|
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-60);
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
2019-11-07 13:36:16 -08:00
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-ultramarine);
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-11-21 11:16:06 -08:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
2019-11-07 13:36:16 -08:00
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/x-24.svg',
|
|
|
|
$color-ultramarine-light
|
|
|
|
);
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-01-15 19:03:56 -08:00
|
|
|
}
|
|
|
|
|
2019-01-30 12:15:07 -08:00
|
|
|
// Module: Spinner
|
|
|
|
|
|
|
|
.module-spinner__container {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
position: relative;
|
|
|
|
height: 56px;
|
|
|
|
width: 56px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-spinner__circle {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2019-06-26 12:33:13 -07:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include color-svg('../images/spinner-track-56.svg', $color-white-alpha-40);
|
2019-01-30 12:15:07 -08:00
|
|
|
}
|
|
|
|
.module-spinner__arc {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-above-base;
|
2019-06-26 12:33:13 -07:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2019-01-30 12:15:07 -08:00
|
|
|
|
2021-07-30 13:35:43 -05:00
|
|
|
animation: rotate 1000ms linear infinite;
|
2019-10-04 11:06:17 -07: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 12:15:07 -08:00
|
|
|
}
|
|
|
|
|
2019-03-13 13:38:28 -07: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 15:42:01 -07:00
|
|
|
.module-spinner__container--small {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
|
2019-01-30 12:15:07 -08:00
|
|
|
.module-spinner__circle--small {
|
2019-03-13 13:38:28 -07:00
|
|
|
-webkit-mask: url('../images/spinner-track-24.svg') no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
2021-09-07 17:11:17 -07:00
|
|
|
|
|
|
|
// For specificity
|
|
|
|
@include dark-theme {
|
|
|
|
-webkit-mask: url('../images/spinner-track-24.svg') no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
|
|
|
}
|
2019-01-30 12:15:07 -08:00
|
|
|
}
|
|
|
|
.module-spinner__arc--small {
|
2019-03-13 13:38:28 -07:00
|
|
|
-webkit-mask: url('../images/spinner-24.svg') no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
2021-09-07 17:11:17 -07:00
|
|
|
|
|
|
|
// For specificity
|
|
|
|
@include dark-theme {
|
|
|
|
-webkit-mask: url('../images/spinner-24.svg') no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
|
|
|
}
|
2019-06-27 16:35:21 -04:00
|
|
|
}
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-spinner__circle--incoming {
|
|
|
|
background-color: $color-white-alpha-40;
|
2019-06-27 16:35:21 -04:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-spinner__arc--incoming {
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
2019-01-30 12:15:07 -08:00
|
|
|
}
|
2019-03-13 13:38:28 -07:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-spinner__circle--outgoing {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-white-alpha-40;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-white-alpha-40;
|
|
|
|
}
|
2019-01-30 12:15:07 -08:00
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
.module-spinner__arc--outgoing {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2021-05-28 12:15:17 -04:00
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
2019-01-30 12:15:07 -08:00
|
|
|
}
|
|
|
|
|
2021-01-29 14:16:48 -08:00
|
|
|
.module-spinner__circle--on-avatar {
|
|
|
|
background-color: $color-white-alpha-40;
|
|
|
|
}
|
2019-05-31 15:42:01 -07:00
|
|
|
.module-spinner__circle--on-background {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
2019-05-31 15:42:01 -07:00
|
|
|
}
|
|
|
|
.module-spinner__arc--on-background {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
2019-05-31 15:42:01 -07:00
|
|
|
}
|
|
|
|
|
2021-05-05 17:09:29 -07:00
|
|
|
.module-spinner__circle--on-captcha {
|
|
|
|
background-color: $color-white-alpha-40;
|
|
|
|
}
|
|
|
|
|
2020-10-06 10:06:34 -07: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 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine;
|
2020-10-06 10:06:34 -07:00
|
|
|
}
|
2021-01-29 14:16:48 -08:00
|
|
|
.module-spinner__arc--on-avatar {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2021-05-05 17:09:29 -07:00
|
|
|
.module-spinner__arc--on-captcha {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
2020-10-06 10:06:34 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
// Module: Reaction Viewer
|
2020-01-17 17:23:19 -05: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;
|
2020-02-05 18:14:25 -05:00
|
|
|
padding: 0px 8px;
|
2020-01-17 17:23:19 -05: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;
|
2020-02-05 18:14:25 -05:00
|
|
|
padding: 0px 8px;
|
2020-01-17 17:23:19 -05:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2020-02-05 18:14:25 -05:00
|
|
|
flex-basis: 45px;
|
|
|
|
flex-shrink: 0;
|
2020-01-17 17:23:19 -05:00
|
|
|
|
|
|
|
&:not(:first-of-type) {
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
&--selected {
|
|
|
|
@include light-theme() {
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-05 18:14:25 -05:00
|
|
|
&__count,
|
|
|
|
&__all {
|
2020-01-17 17:23:19 -05:00
|
|
|
@include font-body-2-bold();
|
2020-02-05 18:14:25 -05:00
|
|
|
|
|
|
|
white-space: nowrap;
|
2020-01-17 17:23:19 -05:00
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
2020-02-05 18:14:25 -05:00
|
|
|
|
|
|
|
&__count {
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__body {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 0 16px;
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
&__row {
|
2020-02-05 18:14:25 -05:00
|
|
|
margin-top: 12px;
|
2020-01-17 17:23:19 -05:00
|
|
|
min-height: 32px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-02-05 18:14:25 -05:00
|
|
|
&:last-of-type {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
2020-02-03 17:00:50 -05:00
|
|
|
&__avatar {
|
2020-01-17 17:23:19 -05:00
|
|
|
min-width: 32px;
|
2020-02-05 18:14:25 -05:00
|
|
|
flex-shrink: 1;
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
|
2020-02-03 17:00:50 -05:00
|
|
|
&__name {
|
2020-01-17 17:23:19 -05:00
|
|
|
@include font-body-1-bold();
|
2020-02-05 18:14:25 -05:00
|
|
|
flex-grow: 1;
|
2020-01-17 17:23:19 -05:00
|
|
|
margin-left: 8px;
|
|
|
|
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 18:14:25 -05:00
|
|
|
|
|
|
|
&__emoji {
|
|
|
|
width: 18px;
|
|
|
|
flex-shrink: 1;
|
|
|
|
}
|
2020-01-17 17:23:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-01 14:09:15 -05:00
|
|
|
// Module: Calling
|
2020-10-07 21:25:33 -04:00
|
|
|
.module-calling {
|
|
|
|
&__container {
|
|
|
|
align-items: center;
|
2021-01-08 12:58:28 -06:00
|
|
|
background-color: $calling-background-color;
|
2020-10-07 21:25:33 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100vh;
|
2020-11-13 13:57:55 -06:00
|
|
|
justify-content: center;
|
2020-12-10 11:04:30 -05:00
|
|
|
position: absolute;
|
2020-10-07 21:25:33 -04:00
|
|
|
width: 100%;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-below-popup-overlay;
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
color: #ffffff;
|
|
|
|
font-style: normal;
|
|
|
|
padding-bottom: 24px;
|
2021-02-01 14:01:25 -06:00
|
|
|
padding-top: calc(24px + var(--title-bar-drag-area-height));
|
2020-10-07 21:25:33 -04:00
|
|
|
text-align: center;
|
2021-08-17 16:45:18 -05:00
|
|
|
@include calling-text-shadow;
|
2020-10-07 21:25:33 -04:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&--header-name {
|
|
|
|
font-size: 15px;
|
2020-11-17 10:07:53 -05:00
|
|
|
font-weight: 600;
|
2020-10-07 21:25:33 -04:00
|
|
|
letter-spacing: -0.009em;
|
2020-11-17 10:07:53 -05:00
|
|
|
line-height: 21px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__buttons {
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
padding-bottom: 32px;
|
|
|
|
padding-top: 32px;
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
2021-08-17 16:45:18 -05:00
|
|
|
|
|
|
|
&--inline {
|
|
|
|
position: static;
|
|
|
|
}
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__background {
|
2020-10-12 14:26:24 -04:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-10-07 21:25:33 -04:00
|
|
|
height: 100%;
|
2020-10-12 14:26:24 -04:00
|
|
|
justify-content: center;
|
|
|
|
overflow: hidden;
|
2020-11-04 13:56:03 -06:00
|
|
|
position: relative;
|
2020-10-07 21:25:33 -04:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&--blur {
|
2020-10-12 14:26:24 -04:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
2020-11-04 13:56:03 -06:00
|
|
|
background-position: center;
|
2020-10-12 14:26:24 -04:00
|
|
|
filter: blur(25px);
|
2020-10-07 21:25:33 -04:00
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2020-12-10 13:40:34 -05:00
|
|
|
|
2021-08-17 16:45:18 -05:00
|
|
|
&__camera-is-off {
|
|
|
|
@include calling-text-shadow;
|
|
|
|
@include font-body-1;
|
|
|
|
color: $color-white;
|
|
|
|
display: flex;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-base;
|
2021-08-17 16:45:18 -05:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2020-12-10 13:40:34 -05:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/video-off-solid-24.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
height: 24px;
|
2021-08-17 16:45:18 -05:00
|
|
|
margin-right: 10px;
|
2020-12-10 13:40:34 -05:00
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
}
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
2020-10-01 14:09:15 -05:00
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
.module-calling-button__icon {
|
2020-06-04 11:16:19 -07:00
|
|
|
align-items: center;
|
|
|
|
border-radius: 40px;
|
|
|
|
border: none;
|
|
|
|
display: flex;
|
|
|
|
height: 40px;
|
|
|
|
justify-content: center;
|
2020-10-07 21:25:33 -04:00
|
|
|
margin-left: 12px;
|
|
|
|
margin-right: 12px;
|
2020-06-04 11:16:19 -07:00
|
|
|
outline: none;
|
|
|
|
width: 40px;
|
|
|
|
}
|
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
.module-calling-button {
|
2021-08-24 15:16:26 -05:00
|
|
|
@mixin icon($path) {
|
|
|
|
@include color-svg($path, $color-white, $mask-origin: padding-box);
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
}
|
2021-01-08 16:57:54 -06:00
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
&__participants {
|
2021-08-24 15:16:26 -05:00
|
|
|
@include icon('../images/icons/v2/group-solid-24.svg');
|
2020-11-20 14:39:50 -05:00
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
&--container {
|
|
|
|
@include button-reset;
|
|
|
|
border: none;
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--shown {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
border-radius: 16px;
|
|
|
|
padding: 6px 8px;
|
|
|
|
padding-bottom: 2px;
|
|
|
|
margin-top: -6px;
|
|
|
|
margin-right: -8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--count {
|
|
|
|
@include font-body-2-bold;
|
|
|
|
margin-left: 5px;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__settings {
|
2021-08-24 15:16:26 -05:00
|
|
|
@include icon('../images/icons/v2/settings-solid-16.svg');
|
2021-01-08 16:57:54 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
&__grid-view {
|
2021-08-24 15:16:26 -05:00
|
|
|
@include icon('../images/icons/v2/grid-view-solid-24.svg');
|
2021-01-08 16:57:54 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
&__speaker-view {
|
2021-08-24 15:16:26 -05:00
|
|
|
@include icon('../images/icons/v2/speaker-view-solid-24.svg');
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__pip {
|
2021-08-24 15:16:26 -05:00
|
|
|
@include icon('../images/icons/v2/pip-minimize-24.svg');
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
2021-08-17 16:45:18 -05:00
|
|
|
|
|
|
|
&__cancel {
|
2021-08-24 15:16:26 -05:00
|
|
|
@include icon('../images/icons/v2/x-24.svg');
|
2021-08-17 16:45:18 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-calling-button__container {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
2021-08-25 16:42:51 -05:00
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
transition: margin-left 0.3s ease-out, opacity 0.3s ease-out;
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--hidden {
|
|
|
|
margin-left: -100px;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
// The container could be wider than 100px depending on the label. Hiding the label
|
|
|
|
// ensures that the above `margin-left` will completely hide the button.
|
|
|
|
.module-calling-button__label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-calling-button__icon {
|
2021-08-17 16:45:18 -05:00
|
|
|
border-radius: 52px;
|
|
|
|
height: 52px;
|
|
|
|
width: 52px;
|
2020-06-04 11:16:19 -07:00
|
|
|
|
2020-12-01 10:25:29 -06:00
|
|
|
@mixin calling-button-icon($icon, $background-color, $icon-color) {
|
|
|
|
background-color: $background-color;
|
|
|
|
|
|
|
|
div {
|
|
|
|
@include color-svg($icon, $icon-color);
|
2021-08-17 16:45:18 -05:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2020-12-01 10:25:29 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin calling-button-icon-on($icon) {
|
|
|
|
@include calling-button-icon($icon, $color-white, $color-gray-75);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin calling-button-icon-off($icon) {
|
|
|
|
@include calling-button-icon($icon, $color-white-alpha-40, $color-white);
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin calling-button-icon-disabled($icon) {
|
|
|
|
@include calling-button-icon($icon, $color-gray-45, $color-white);
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// If the on/off states seem backwards, it's because this button reflects "is audio
|
|
|
|
// muted?", not "is audio on?".
|
2020-06-04 11:16:19 -07:00
|
|
|
&--audio {
|
2020-12-01 10:25:29 -06:00
|
|
|
$icon: '../images/icons/v2/mic-off-solid-28.svg';
|
2020-10-14 12:30:50 -04:00
|
|
|
&--on {
|
2020-12-01 10:25:29 -06:00
|
|
|
@include calling-button-icon-off($icon);
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
2020-10-14 12:30:50 -04:00
|
|
|
&--off {
|
2020-12-01 10:25:29 -06:00
|
|
|
@include calling-button-icon-on($icon);
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
2020-10-14 12:30:50 -04:00
|
|
|
&--disabled {
|
2020-12-01 10:25:29 -06:00
|
|
|
@include calling-button-icon-disabled($icon);
|
2020-10-14 12:30:50 -04:00
|
|
|
}
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
&--video {
|
2020-12-01 10:25:29 -06:00
|
|
|
$icon: '../images/icons/v2/video-solid-28.svg';
|
2020-10-14 12:30:50 -04:00
|
|
|
&--on {
|
2020-12-01 10:25:29 -06:00
|
|
|
@include calling-button-icon-on($icon);
|
2020-10-14 12:30:50 -04:00
|
|
|
}
|
|
|
|
&--off {
|
2020-12-01 10:25:29 -06:00
|
|
|
@include calling-button-icon-off($icon);
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
|
|
|
&--disabled {
|
2020-12-01 10:25:29 -06:00
|
|
|
@include calling-button-icon-disabled($icon);
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--hangup {
|
2020-12-01 10:25:29 -06:00
|
|
|
@include calling-button-icon(
|
|
|
|
'../images/icons/v2/phone-down-28.svg',
|
|
|
|
$color-accent-red,
|
|
|
|
$color-white
|
|
|
|
);
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
2021-05-20 17:54:03 -04:00
|
|
|
|
2021-08-25 16:42:51 -05:00
|
|
|
&--ring {
|
|
|
|
$icon: '../images/icons/v2/ring-28.svg';
|
|
|
|
&--on {
|
|
|
|
@include calling-button-icon-on($icon);
|
|
|
|
}
|
|
|
|
&--off {
|
|
|
|
@include calling-button-icon-off($icon);
|
|
|
|
}
|
|
|
|
&--disabled {
|
|
|
|
@include calling-button-icon-disabled($icon);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-20 17:54:03 -04:00
|
|
|
&--presenting {
|
2021-08-16 09:32:47 -05:00
|
|
|
$icon: '../images/icons/v2/share-screen-26.svg';
|
2021-05-20 17:54:03 -04:00
|
|
|
&--on {
|
|
|
|
@include calling-button-icon-on($icon);
|
|
|
|
}
|
|
|
|
&--off {
|
|
|
|
@include calling-button-icon-off($icon);
|
|
|
|
}
|
|
|
|
&--disabled {
|
|
|
|
@include calling-button-icon-disabled($icon);
|
|
|
|
}
|
|
|
|
}
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
|
|
|
|
2021-08-17 16:45:18 -05:00
|
|
|
.module-calling-button__label {
|
|
|
|
@include font-subtitle;
|
|
|
|
margin-top: 8px;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: lowercase;
|
|
|
|
color: $color-white;
|
|
|
|
@include calling-text-shadow;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2020-06-04 11:16:19 -07: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
.module-ongoing-call {
|
2020-11-04 13:56:03 -06:00
|
|
|
$local-preview-width: 136px;
|
|
|
|
$local-preview-height: 102px;
|
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
&__remote-video-enabled {
|
|
|
|
background-color: $color-gray-95;
|
2020-11-20 15:24:55 -05:00
|
|
|
height: 100%;
|
2020-10-07 21:25:33 -04:00
|
|
|
width: 100%;
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
&__remote-video-disabled {
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
height: 100vh;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2020-11-13 13:57:55 -06:00
|
|
|
&__container {
|
2021-08-25 16:42:51 -05:00
|
|
|
&--direct:not(&--call-not-started) {
|
2020-11-13 13:57:55 -06:00
|
|
|
.module-ongoing-call__header {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
.module-ongoing-call__footer {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
&__header {
|
2020-11-04 13:56:25 -06:00
|
|
|
background: linear-gradient($color-black-alpha-40, transparent);
|
2020-11-17 10:07:53 -05:00
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2021-01-08 12:58:28 -06:00
|
|
|
padding-bottom: 1rem;
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__header-message {
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 13px;
|
2021-07-15 15:10:08 -07:00
|
|
|
font-variant: tabular-nums;
|
2020-10-07 21:25:33 -04:00
|
|
|
line-height: 18px;
|
|
|
|
letter-spacing: -0.0025em;
|
|
|
|
}
|
|
|
|
|
2021-08-25 16:42:51 -05:00
|
|
|
&__direct-call-ringing-spacer {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
2021-01-08 12:58:28 -06:00
|
|
|
&__participants {
|
|
|
|
display: flex;
|
|
|
|
flex: 1 1 0;
|
2020-11-13 13:57:55 -06:00
|
|
|
width: 100%;
|
2021-01-08 12:58:28 -06:00
|
|
|
|
|
|
|
&__grid {
|
|
|
|
flex-grow: 1;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__overflow {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
position: relative;
|
2021-02-01 13:41:05 -06:00
|
|
|
margin-left: 16px;
|
|
|
|
margin-right: 16px;
|
2021-01-08 12:58:28 -06:00
|
|
|
|
|
|
|
&__inner {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__scroll-marker {
|
|
|
|
$scroll-marker-selector: &;
|
|
|
|
|
2021-03-15 13:50:22 -05:00
|
|
|
@include smooth-scroll;
|
|
|
|
|
2021-01-08 12:58:28 -06:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
left: 0;
|
|
|
|
opacity: 1;
|
|
|
|
position: absolute;
|
|
|
|
transition: opacity 200ms ease-out;
|
|
|
|
width: 100%;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-base;
|
2021-01-08 12:58:28 -06:00
|
|
|
|
|
|
|
&--hidden {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
&::before {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/arrow-down-24.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
background: $color-gray-60;
|
|
|
|
border-radius: 100%;
|
|
|
|
border: 0;
|
|
|
|
box-shadow: 0 0 5px rgba($color-gray-95, 0.5);
|
|
|
|
height: 28px;
|
|
|
|
margin: 12px 0;
|
|
|
|
opacity: 0;
|
|
|
|
outline: none;
|
|
|
|
transition: opacity 200ms ease-out;
|
|
|
|
width: 28px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--top {
|
|
|
|
top: 0;
|
|
|
|
background: linear-gradient(
|
|
|
|
$calling-background-color,
|
|
|
|
transparent 20px,
|
|
|
|
transparent
|
|
|
|
);
|
|
|
|
|
|
|
|
#{$scroll-marker-selector}__button {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--bottom {
|
|
|
|
bottom: 0;
|
|
|
|
background: linear-gradient(
|
|
|
|
to top,
|
|
|
|
$calling-background-color,
|
|
|
|
transparent 20px,
|
|
|
|
transparent
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover &__scroll-marker__button {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2020-11-13 13:57:55 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
&__group-call-remote-participant {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2020-11-16 13:57:58 -06:00
|
|
|
position: relative;
|
2020-11-13 13:57:55 -06:00
|
|
|
|
|
|
|
line-height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
border-radius: 5px;
|
|
|
|
transition: top 200ms linear, left 200ms linear, width 200ms linear,
|
|
|
|
height 200ms linear;
|
|
|
|
|
|
|
|
&__remote-video {
|
|
|
|
// The background-color is seen while the video loads.
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
2020-11-16 13:57:58 -06:00
|
|
|
|
2020-12-01 20:30:25 -05:00
|
|
|
&__blocked {
|
|
|
|
@include color-svg('../images/icons/v2/block-24.svg', $color-white);
|
|
|
|
height: 24px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
&--info {
|
|
|
|
@include button-reset;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
border-radius: 16px;
|
|
|
|
color: $color-white;
|
|
|
|
line-height: 16px;
|
|
|
|
padding: 3px 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--modal-title {
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
display: -webkit-box;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-19 18:31:04 -05:00
|
|
|
&--title {
|
|
|
|
@include font-caption;
|
2020-11-20 15:24:55 -05:00
|
|
|
background: linear-gradient(
|
|
|
|
180deg,
|
2020-11-23 13:15:11 -06:00
|
|
|
transparent,
|
2020-11-20 15:24:55 -05:00
|
|
|
$color-black-alpha-60 100%
|
|
|
|
);
|
2020-11-19 18:31:04 -05:00
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
padding: 6px;
|
|
|
|
position: absolute;
|
2021-08-23 08:17:28 -05:00
|
|
|
user-select: none;
|
2020-11-19 18:31:04 -05:00
|
|
|
width: 100%;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2020-11-19 18:31:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&--contact-name {
|
2020-11-20 15:24:55 -05:00
|
|
|
color: $color-white;
|
2020-11-19 18:31:04 -05:00
|
|
|
margin-right: 20px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--audio-muted::after {
|
2020-11-16 13:57:58 -06:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/mic-off-solid-28.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
content: '';
|
2020-11-19 18:31:04 -05:00
|
|
|
height: 14px;
|
2020-11-16 13:57:58 -06:00
|
|
|
position: absolute;
|
2020-11-19 18:31:04 -05:00
|
|
|
right: 6px;
|
|
|
|
width: 14px;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-base;
|
2020-11-16 13:57:58 -06:00
|
|
|
}
|
2020-11-13 13:57:55 -06:00
|
|
|
}
|
|
|
|
|
2020-12-10 13:40:34 -05:00
|
|
|
&__local-preview-fullsize {
|
2021-09-10 12:24:05 -05:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2020-12-10 13:40:34 -05:00
|
|
|
height: 100%;
|
2021-09-10 12:24:05 -05:00
|
|
|
justify-content: center;
|
2020-12-10 13:40:34 -05:00
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-negative;
|
2021-08-25 16:42:51 -05:00
|
|
|
|
|
|
|
video {
|
|
|
|
@include lonely-local-video-preview;
|
|
|
|
}
|
2021-09-10 12:24:05 -05:00
|
|
|
|
|
|
|
&--presenting {
|
|
|
|
video {
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
}
|
2020-12-10 13:40:34 -05:00
|
|
|
}
|
|
|
|
|
2020-11-04 13:56:03 -06:00
|
|
|
&__footer {
|
2020-10-07 21:25:33 -04:00
|
|
|
background: linear-gradient(transparent, $color-black-alpha-40);
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
2020-11-04 13:56:03 -06:00
|
|
|
justify-content: space-between;
|
2020-10-07 21:25:33 -04:00
|
|
|
width: 100%;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2020-11-04 13:56:03 -06:00
|
|
|
|
|
|
|
&__actions {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This layout-only element is not ideal, but lets us keep the actions centered until
|
|
|
|
// until they'd overlap with the video, at which point they start to move.
|
|
|
|
&__local-preview-offset {
|
|
|
|
flex: 1 0;
|
|
|
|
max-width: $local-preview-width;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__local-preview {
|
|
|
|
border-radius: 5px;
|
|
|
|
display: flex;
|
|
|
|
height: $local-preview-height;
|
|
|
|
margin: 2px 16px 16px 0;
|
|
|
|
overflow: hidden;
|
2020-11-16 13:57:58 -06:00
|
|
|
position: relative;
|
2020-11-04 13:56:03 -06:00
|
|
|
width: $local-preview-width;
|
|
|
|
|
|
|
|
&__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 17:54:03 -04:00
|
|
|
|
|
|
|
&--presenting {
|
|
|
|
transform: inherit;
|
|
|
|
}
|
2020-11-04 13:56:03 -06:00
|
|
|
}
|
2020-11-16 13:57:58 -06:00
|
|
|
|
|
|
|
&--audio-muted::before {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/mic-off-solid-28.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
bottom: 6px;
|
|
|
|
content: '';
|
|
|
|
height: 14px;
|
|
|
|
position: absolute;
|
|
|
|
right: 6px;
|
|
|
|
width: 14px;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-base;
|
2020-11-16 13:57:58 -06:00
|
|
|
}
|
2020-11-04 13:56:03 -06:00
|
|
|
}
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__controls--fadeIn {
|
|
|
|
animation: {
|
|
|
|
name: module-ongoing-call__controls--fade-in;
|
|
|
|
duration: 400ms;
|
|
|
|
timing-function: $ease-out-expo;
|
|
|
|
fill-mode: forwards;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__controls--fadeOut {
|
|
|
|
animation: {
|
|
|
|
name: module-ongoing-call__controls--fade-out;
|
|
|
|
duration: 1200ms;
|
|
|
|
timing-function: $ease-out-expo;
|
|
|
|
fill-mode: forwards;
|
|
|
|
}
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
2020-12-01 10:46:44 -06:00
|
|
|
|
|
|
|
&__toast {
|
2021-05-20 17:54:03 -04:00
|
|
|
@include button-reset();
|
2020-12-01 10:46:44 -06:00
|
|
|
@include font-body-1-bold;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: $color-white;
|
|
|
|
max-width: 80%;
|
|
|
|
opacity: 1;
|
|
|
|
padding: 12px;
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
top: 12px;
|
|
|
|
transition: top 200ms ease-out, opacity 200ms ease-out;
|
|
|
|
user-select: none;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-above-base;
|
2020-12-01 10:46:44 -06:00
|
|
|
|
|
|
|
&--hidden {
|
|
|
|
opacity: 0;
|
|
|
|
top: 5px;
|
|
|
|
}
|
|
|
|
}
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
.module-calling-tools {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
2020-08-26 20:03:42 -04:00
|
|
|
position: absolute;
|
2021-02-01 14:01:25 -06:00
|
|
|
top: calc(24px + var(--title-bar-drag-area-height));
|
2020-10-07 21:25:33 -04:00
|
|
|
width: 100%;
|
2020-08-26 20:03:42 -04:00
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
&__button {
|
|
|
|
margin-right: 25px;
|
2020-08-26 20:03:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-30 20:43:05 -04: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;
|
|
|
|
position: absolute;
|
|
|
|
width: 120px;
|
2021-12-02 18:08:40 -05:00
|
|
|
z-index: $z-index-calling-pip;
|
2020-09-30 20:43:05 -04:00
|
|
|
|
2020-12-08 10:58:36 -06:00
|
|
|
& .module-ongoing-call__group-call-remote-participant {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2020-09-30 20:43:05 -04:00
|
|
|
&__video {
|
|
|
|
&--remote {
|
|
|
|
align-items: center;
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
border-radius: 4px 4px 0 0;
|
|
|
|
display: flex;
|
2020-12-01 19:52:01 -06:00
|
|
|
height: 120px; // This height should be kept in sync with <CallingPipRemoteVideo>'s hard-coded height.
|
2020-09-30 20:43:05 -04:00
|
|
|
justify-content: center;
|
2020-11-20 15:24:55 -05:00
|
|
|
overflow: hidden;
|
2020-09-30 20:43:05 -04:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2020-11-19 13:13:36 -05:00
|
|
|
|
2020-11-19 18:31:04 -05:00
|
|
|
.module-ongoing-call__group-call-remote-participant--audio-muted::after {
|
2020-11-19 13:13:36 -05:00
|
|
|
display: none;
|
|
|
|
}
|
2020-12-11 12:56:23 -06:00
|
|
|
|
|
|
|
// The avatar image can be dragged on Windows.
|
2021-04-21 11:32:23 -05:00
|
|
|
.module-Avatar img {
|
2020-12-11 12:56:23 -06:00
|
|
|
-webkit-user-drag: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
}
|
2020-09-30 20:43:05 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&--local {
|
|
|
|
bottom: 38px;
|
|
|
|
height: 32px;
|
|
|
|
position: absolute;
|
|
|
|
right: 4px;
|
2020-11-18 13:04:03 -06:00
|
|
|
transform: rotateY(180deg);
|
2020-09-30 20:43:05 -04: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(
|
|
|
|
'../images/icons/v2/phone-down-28.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
|
|
|
height: 28px;
|
|
|
|
width: 28px;
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/phone-down-28.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--pip {
|
2020-10-26 11:17:02 -05:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/pip-maximize-24.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
2020-09-30 20:43:05 -04:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
@include dark-theme {
|
2020-10-26 11:17:02 -05:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/pip-maximize-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
2020-09-30 20:43:05 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-15 15:53:21 -04:00
|
|
|
.module-calling-participants-list {
|
|
|
|
background-color: $color-gray-80;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: $color-white;
|
|
|
|
margin-right: 12px;
|
|
|
|
margin-top: 54px;
|
2020-11-20 12:19:53 -05:00
|
|
|
overflow: hidden;
|
2020-10-15 15:53:21 -04:00
|
|
|
padding: 14px;
|
|
|
|
width: 280px;
|
2020-11-19 13:11:35 -05:00
|
|
|
padding-bottom: 0;
|
2020-10-15 15:53:21 -04:00
|
|
|
|
|
|
|
&__overlay {
|
|
|
|
display: flex;
|
|
|
|
height: 100vh;
|
|
|
|
justify-content: flex-end;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100vw;
|
2021-12-02 18:08:40 -05:00
|
|
|
z-index: $z-index-popup;
|
2020-10-15 15:53:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
@include font-body-2-bold;
|
|
|
|
}
|
|
|
|
|
2020-11-20 14:39:50 -05:00
|
|
|
&__contact-icon {
|
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
2020-10-15 15:53:21 -04:00
|
|
|
&__list {
|
2020-11-20 12:19:53 -05:00
|
|
|
height: 100%;
|
|
|
|
margin-bottom: 0;
|
|
|
|
margin-left: -14px;
|
|
|
|
margin-right: -14px;
|
2020-10-15 15:53:21 -04:00
|
|
|
margin-top: 22px;
|
2020-11-20 12:19:53 -05:00
|
|
|
overflow: scroll;
|
|
|
|
padding-bottom: 24px;
|
|
|
|
padding-left: 14px;
|
|
|
|
padding-right: 14px;
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: $color-gray-45;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background-color: $color-gray-80;
|
|
|
|
}
|
2020-10-15 15:53:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__contact {
|
|
|
|
@include font-body-1;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
list-style-type: none;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__name {
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 8px;
|
2020-11-20 12:19:53 -05:00
|
|
|
max-width: 130px;
|
2020-10-15 15:53:21 -04:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
vertical-align: middle;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__close {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
@include color-svg('../images/x-shadow-16.svg', $color-gray-15);
|
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2020-10-15 15:53:21 -04:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
outline: 2px solid $color-ultramarine;
|
2020-10-15 15:53:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__muted {
|
|
|
|
&--video {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/video-off-solid-28.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 18px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--audio {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/mic-off-solid-28.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 18px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
}
|
2021-05-20 17:54:03 -04:00
|
|
|
|
|
|
|
&__presenting {
|
2021-08-16 09:32:47 -05:00
|
|
|
@include color-svg('../images/icons/v2/share-screen-26.svg', $color-white);
|
2021-05-20 17:54:03 -04:00
|
|
|
display: inline-block;
|
|
|
|
margin-left: 18px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
2020-10-15 15:53:21 -04:00
|
|
|
}
|
|
|
|
|
2020-10-01 14:09:15 -05:00
|
|
|
.module-call-need-permission-screen {
|
2020-10-07 21:25:33 -04:00
|
|
|
align-items: center;
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
color: $color-gray-05;
|
2020-10-01 14:09:15 -05:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-10-07 21:25:33 -04:00
|
|
|
height: 100vh;
|
2020-10-01 14:09:15 -05:00
|
|
|
justify-content: center;
|
2020-10-07 21:25:33 -04:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2020-10-01 14:09:15 -05:00
|
|
|
|
|
|
|
&__text {
|
|
|
|
margin: 2em 1em;
|
|
|
|
max-width: 400px;
|
|
|
|
@include font-body-1;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
padding: 0.5em 1em;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
@include font-body-1-bold;
|
|
|
|
color: $color-gray-05;
|
|
|
|
background: $color-gray-65;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
// Module: conversation list
|
2019-01-14 13:49:58 -08:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
.module-conversation-list {
|
2021-10-12 18:59:08 -05:00
|
|
|
$normal-row-height: 72px;
|
|
|
|
|
2021-09-17 17:03:18 -04:00
|
|
|
@include scrollbar;
|
2021-10-12 18:59:08 -05:00
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
2021-08-26 17:05:43 -04:00
|
|
|
|
2021-10-14 15:21:10 -05:00
|
|
|
&--width-narrow {
|
|
|
|
padding-left: 6px;
|
|
|
|
padding-right: 6px;
|
|
|
|
}
|
|
|
|
|
2021-04-02 17:32:55 -05:00
|
|
|
&--scroll-behavior {
|
|
|
|
&-default {
|
|
|
|
@include smooth-scroll;
|
|
|
|
}
|
|
|
|
}
|
2019-01-14 13:49:58 -08:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
&__item {
|
|
|
|
&--archive-button {
|
|
|
|
@include button-reset;
|
2019-01-14 13:49:58 -08:00
|
|
|
|
2021-10-06 10:45:25 -05:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2021-10-12 18:59:08 -05:00
|
|
|
border-radius: 10px;
|
|
|
|
height: $normal-row-height;
|
|
|
|
line-height: $normal-row-height;
|
2021-02-23 14:34:28 -06:00
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
2021-10-14 15:21:10 -05:00
|
|
|
padding-left: 18px;
|
|
|
|
padding-right: 18px;
|
2021-10-12 18:59:08 -05:00
|
|
|
display: flex;
|
2019-03-11 17:20:16 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
2019-03-11 17:20:16 -07:00
|
|
|
|
2021-02-23 14:34:28 -06: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 15:07:03 -07:00
|
|
|
|
2021-10-06 10:45:25 -05:00
|
|
|
&__icon {
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/archive-outline-16.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/archive-solid-16.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
margin-left: 8px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
&__archived-count {
|
|
|
|
@include font-body-2-bold;
|
2020-09-29 15:07:03 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
padding: 6px;
|
|
|
|
padding-top: 1px;
|
|
|
|
padding-bottom: 1px;
|
|
|
|
border-radius: 10px;
|
2021-10-14 11:47:57 -05:00
|
|
|
white-space: pre;
|
2020-09-29 15:07:03 -07:00
|
|
|
|
2021-02-23 14:34:28 -06: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 18:59:08 -05:00
|
|
|
|
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
&__icon {
|
|
|
|
display: block;
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text,
|
|
|
|
&__archived-count {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
&--contact-or-conversation {
|
|
|
|
@include button-reset;
|
2019-03-11 17:20:16 -07:00
|
|
|
|
2021-03-03 14:09:58 -06:00
|
|
|
align-items: center;
|
2021-10-12 18:59:08 -05:00
|
|
|
border-radius: 10px;
|
2021-03-03 14:09:58 -06:00
|
|
|
cursor: inherit;
|
2021-02-23 14:34:28 -06:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2021-10-12 18:59:08 -05:00
|
|
|
height: $normal-row-height;
|
|
|
|
margin: 2px 0;
|
|
|
|
padding: 8px 14px;
|
2021-03-03 14:09:58 -06:00
|
|
|
user-select: none;
|
|
|
|
width: 100%;
|
2019-11-21 11:16:06 -08:00
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
.module-conversation-list--width-narrow & {
|
2021-10-14 15:21:10 -05:00
|
|
|
padding-left: 18px;
|
|
|
|
padding-right: 0;
|
2021-10-12 18:59:08 -05:00
|
|
|
}
|
|
|
|
|
2021-03-03 14:09:58 -06:00
|
|
|
&--is-button {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
cursor: inherit;
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
2021-03-03 14:09:58 -06:00
|
|
|
|
|
|
|
&:hover:not(:disabled),
|
|
|
|
&:focus:not(:disabled) {
|
|
|
|
@include light-theme {
|
2021-10-12 18:59:08 -05:00
|
|
|
background-color: $color-black-alpha-06;
|
2021-03-03 14:09:58 -06:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-10-12 18:59:08 -05:00
|
|
|
background-color: $color-white-alpha-06;
|
2021-03-03 14:09:58 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--is-checkbox {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&--disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
|
|
|
$disabled-selector: '#{&}--disabled';
|
|
|
|
&:hover:not(#{$disabled-selector}),
|
|
|
|
&:focus:not(#{$disabled-selector}) {
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
}
|
2019-03-11 17:20:16 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
&--is-selected {
|
|
|
|
@include light-theme {
|
2021-10-13 13:43:30 -05:00
|
|
|
background-color: $color-gray-15;
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-10-12 18:59:08 -05:00
|
|
|
background-color: $color-white-alpha-12;
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
}
|
2019-03-14 14:41:14 -07:00
|
|
|
|
2021-10-26 14:14:40 -05:00
|
|
|
&__unread-indicator {
|
|
|
|
$size: 18px;
|
2021-02-23 14:34:28 -06:00
|
|
|
|
|
|
|
@include font-caption-bold;
|
|
|
|
border-radius: 10px;
|
|
|
|
color: $color-white;
|
2021-10-14 15:21:10 -05:00
|
|
|
font-weight: 500;
|
2021-10-12 18:59:08 -05:00
|
|
|
height: $size;
|
|
|
|
line-height: $size;
|
|
|
|
margin-left: 10px;
|
2021-10-26 14:14:40 -05:00
|
|
|
margin-top: 1px;
|
2021-10-12 18:59:08 -05:00
|
|
|
min-width: $size;
|
|
|
|
padding-left: 3px;
|
|
|
|
padding-right: 3px;
|
|
|
|
text-align: center;
|
|
|
|
word-break: normal;
|
2021-10-14 15:21:10 -05:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-10-12 18:59:08 -05:00
|
|
|
|
|
|
|
.module-conversation-list--width-narrow & {
|
2021-10-14 15:21:10 -05:00
|
|
|
margin-left: 6px;
|
2021-10-26 14:14:40 -05:00
|
|
|
box-sizing: border-box;
|
2021-10-12 18:59:08 -05:00
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine;
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-10-25 15:02:13 -07:00
|
|
|
background-color: $color-ultramarine-dawn;
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
2021-10-14 15:21:10 -05:00
|
|
|
|
2021-10-26 14:14:40 -05:00
|
|
|
&--two-digits,
|
|
|
|
&--many {
|
2021-10-28 15:20:52 -05:00
|
|
|
box-sizing: content-box;
|
2021-10-19 08:53:30 -05:00
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--many {
|
2021-10-26 14:14:40 -05:00
|
|
|
font-size: 10px;
|
2021-10-14 15:21:10 -05:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '+';
|
|
|
|
display: inline-block;
|
2021-10-26 14:14:40 -05:00
|
|
|
font-size: 9px;
|
2021-10-14 15:21:10 -05:00
|
|
|
}
|
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-left: 12px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: stretch;
|
2021-03-03 14:09:58 -06:00
|
|
|
overflow: hidden;
|
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
2021-03-03 14:09:58 -06:00
|
|
|
&--disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
|
|
|
|
&__header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
&__name {
|
2021-10-14 10:48:48 -05:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2021-02-23 14:34:28 -06: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 10:48:48 -05:00
|
|
|
|
|
|
|
&__contact-name {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__mute-icon {
|
|
|
|
$size: 14px;
|
|
|
|
|
|
|
|
height: $size;
|
|
|
|
margin-inline-start: 8px;
|
|
|
|
min-width: $size;
|
|
|
|
width: $size;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/bell-disabled-outline-24.svg',
|
|
|
|
$color-gray-45
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/bell-disabled-solid-24.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
&__date {
|
|
|
|
display: inline-block;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
&__timestamp {
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-left: 6px;
|
|
|
|
|
|
|
|
@include font-caption;
|
|
|
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__message {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2021-10-12 18:59:08 -05:00
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
align-items: center;
|
2021-10-14 15:21:10 -05:00
|
|
|
justify-content: flex-start;
|
2021-10-12 18:59:08 -05:00
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
|
|
|
|
&__text {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
|
|
|
|
@include font-body-2;
|
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
display: -webkit-box;
|
2021-02-23 14:34:28 -06:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
&--always-full-size {
|
|
|
|
height: 36px; // two lines
|
2021-02-23 14:34:28 -06: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;
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__status-icon {
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
margin-top: 4px;
|
2021-02-23 14:34:28 -06:00
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 6px;
|
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
@mixin normal-status-icon($icon) {
|
|
|
|
@include light-theme {
|
2021-10-13 19:12:25 -05:00
|
|
|
@include color-svg($icon, $color-gray-45);
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-10-13 19:12:25 -05:00
|
|
|
@include color-svg($icon, $color-gray-25);
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--sending {
|
2021-07-30 13:35:43 -05:00
|
|
|
@include only-when-page-is-visible {
|
|
|
|
animation: rotate 4s linear infinite;
|
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/sending.svg', $color-gray-60);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/sending.svg', $color-gray-45);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--sent {
|
|
|
|
@include normal-status-icon(
|
|
|
|
'../images/check-circle-outline.svg'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--delivered {
|
|
|
|
@include normal-status-icon('../images/double-check.svg');
|
|
|
|
width: 18px;
|
|
|
|
}
|
|
|
|
|
2021-10-12 10:40:27 -05:00
|
|
|
&--read,
|
|
|
|
&--viewed {
|
2021-02-23 14:34:28 -06:00
|
|
|
@include normal-status-icon('../images/read.svg');
|
|
|
|
width: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--error,
|
|
|
|
&--partial-sent {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-outline-12.svg',
|
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-solid-12.svg',
|
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-05-05 17:09:29 -07:00
|
|
|
|
|
|
|
&--paused {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-outline-12.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-solid-12.svg',
|
|
|
|
$color-gray-45
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-02-23 14:34:28 -06: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-03 14:09:58 -06:00
|
|
|
|
|
|
|
&__checkbox {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
background: $color-white;
|
|
|
|
border-radius: 100%;
|
|
|
|
height: 20px;
|
|
|
|
margin-left: 16px;
|
|
|
|
margin-right: 16px;
|
|
|
|
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 12:15:17 -04:00
|
|
|
border-color: $color-ultramarine;
|
2021-03-03 14:09:58 -06:00
|
|
|
&:checked {
|
|
|
|
box-shadow: inset 0 0 0px 1px $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
border-width: 2px;
|
2021-05-28 12:15:17 -04:00
|
|
|
border-color: $color-ultramarine-light;
|
2021-03-03 14:09:58 -06:00
|
|
|
|
|
|
|
&:checked {
|
|
|
|
box-shadow: inset 0 0 0px 1px $color-black;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-11 15:29:31 -06:00
|
|
|
&:disabled:not(:checked) {
|
2021-03-03 14:09:58 -06:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked {
|
2021-03-11 15:29:31 -06:00
|
|
|
$icon: '../images/icons/v2/check-24.svg';
|
|
|
|
|
2021-05-28 12:15:17 -04:00
|
|
|
background: $color-ultramarine;
|
2021-03-03 14:09:58 -06:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2021-03-11 15:29:31 -06:00
|
|
|
@include color-svg($icon, $color-white);
|
2021-03-03 14:09:58 -06:00
|
|
|
width: 13px;
|
|
|
|
height: 13px;
|
|
|
|
}
|
2021-03-11 15:29:31 -06:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
&:disabled {
|
|
|
|
background: $color-gray-15;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
&:disabled {
|
|
|
|
background: $color-gray-45;
|
|
|
|
}
|
|
|
|
}
|
2021-03-03 14:09:58 -06:00
|
|
|
}
|
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
&--header {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
|
2021-10-14 09:13:08 -05:00
|
|
|
align-items: flex-end;
|
|
|
|
display: flex;
|
2021-08-11 09:23:21 -07:00
|
|
|
height: 100%;
|
2021-10-12 18:59:08 -05:00
|
|
|
overflow-x: hidden;
|
2021-10-14 09:13:08 -05:00
|
|
|
padding-bottom: 8px;
|
|
|
|
padding-left: 16px;
|
2021-10-12 18:59:08 -05:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
user-select: none;
|
|
|
|
white-space: nowrap;
|
2021-02-23 14:34:28 -06:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2021-10-12 18:59:08 -05:00
|
|
|
|
|
|
|
.module-conversation-list--width-narrow & {
|
|
|
|
@include rounded-corners;
|
|
|
|
display: block;
|
|
|
|
height: 2px;
|
2021-10-14 15:21:10 -05:00
|
|
|
margin: 19px 0 19px 17px;
|
2021-10-14 09:13:08 -05:00
|
|
|
padding-bottom: 0;
|
2021-10-14 15:21:10 -05:00
|
|
|
width: 48px;
|
2021-10-12 18:59:08 -05: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 14:34:28 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
&--spinner {
|
|
|
|
width: 100%;
|
|
|
|
padding: 10px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-03-11 17:20:16 -07:00
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
// Module: Left Pane
|
2020-04-23 15:20:47 -04:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
.module-left-pane {
|
2021-10-12 18:59:08 -05:00
|
|
|
border-right-style: solid;
|
|
|
|
border-right-width: 1px;
|
2021-02-23 14:34:28 -06:00
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
2021-03-03 14:09:58 -06:00
|
|
|
position: relative;
|
2021-10-12 18:59:08 -05:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-10-13 13:44:37 -05:00
|
|
|
border-color: $color-gray-15;
|
2021-10-12 18:59:08 -05:00
|
|
|
background-color: $color-gray-02;
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
border: 2px solid $color-gray-02;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-gray-65;
|
|
|
|
background-color: $color-gray-80;
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
border: 2px solid $color-gray-80;
|
|
|
|
}
|
|
|
|
}
|
2019-01-14 13:49:58 -08:00
|
|
|
}
|
|
|
|
|
2021-04-20 16:16:49 -07:00
|
|
|
.module-left-pane__empty {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0 32px;
|
|
|
|
text-align: center;
|
|
|
|
|
2021-10-12 18:59:08 -05:00
|
|
|
.module-left-pane--width-narrow & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-04-20 16:16:49 -07: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;
|
|
|
|
margin-left: 4px;
|
|
|
|
vertical-align: bottom;
|
|
|
|
width: 28px;
|
|
|
|
|
|
|
|
&--icon {
|
|
|
|
$icon: '../images/icons/v2/compose-outline-24.svg';
|
|
|
|
@include color-svg($icon, $color-gray-90);
|
|
|
|
display: inline-block;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
.module-left-pane__header {
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
&__contents {
|
|
|
|
height: calc(#{$header-height} + var(--title-bar-drag-area-height));
|
|
|
|
width: 100%;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
padding-top: var(--title-bar-drag-area-height);
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
&__back-button {
|
|
|
|
@include button-reset;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
margin-left: 7px;
|
|
|
|
margin-right: 5px;
|
|
|
|
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
|
2021-03-03 14:09:58 -06:00
|
|
|
&:disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-left-24.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-left-24.svg',
|
2021-05-28 12:15:17 -04:00
|
|
|
$color-ultramarine
|
2021-02-23 14:34:28 -06:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-left-24.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:hover {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-left-24.svg',
|
2021-05-28 12:15:17 -04:00
|
|
|
$color-ultramarine-light
|
2021-02-23 14:34:28 -06:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2021-02-23 14:34:28 -06:00
|
|
|
|
|
|
|
&__text {
|
|
|
|
@include font-body-1-bold;
|
2021-11-01 13:43:02 -05:00
|
|
|
flex-grow: 1;
|
|
|
|
padding-right: 16px;
|
2021-02-23 14:34:28 -06:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-03-11 17:20:16 -07:00
|
|
|
}
|
2021-03-03 14:09:58 -06:00
|
|
|
|
|
|
|
&__form {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-06-25 16:52:56 -07:00
|
|
|
|
|
|
|
&__expire-timer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
margin: 0 16px 16px 16px;
|
|
|
|
|
|
|
|
&__label {
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-disappearing-timer-select {
|
|
|
|
width: 144px;
|
|
|
|
}
|
|
|
|
}
|
2021-03-03 14:09:58 -06:00
|
|
|
}
|
2019-03-11 17:20:16 -07:00
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
.module-left-pane__archive-helper-text {
|
|
|
|
@include font-body-2;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
padding: 1em;
|
2019-10-04 11:06:17 -07: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-11 17:20:16 -07:00
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
.module-left-pane__no-search-results,
|
|
|
|
.module-left-pane__compose-no-contacts {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-top: 27px;
|
|
|
|
padding-left: 1em;
|
|
|
|
padding-right: 1em;
|
2019-11-07 13:36:16 -08:00
|
|
|
width: 100%;
|
2021-02-23 14:34:28 -06:00
|
|
|
text-align: center;
|
|
|
|
outline: none;
|
|
|
|
}
|
2019-11-07 13:36:16 -08:00
|
|
|
|
2021-05-19 09:14:35 -07: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 14:34:28 -06:00
|
|
|
.module-left-pane__compose-search-form {
|
|
|
|
&__input {
|
|
|
|
flex-grow: 1;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2019-01-14 13:49:58 -08:00
|
|
|
}
|
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
.module-left-pane__list--measure {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
outline: none;
|
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
.module-left-pane__list--wrapper {
|
|
|
|
position: relative;
|
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2021-02-23 14:34:28 -06:00
|
|
|
.module-left-pane__list {
|
|
|
|
position: absolute;
|
|
|
|
outline: none;
|
2019-01-14 13:49:58 -08:00
|
|
|
}
|
|
|
|
|
2021-03-03 14:09:58 -06:00
|
|
|
.module-left-pane__footer {
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-end;
|
|
|
|
left: 0;
|
|
|
|
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 18:59:08 -05:00
|
|
|
.module-left-pane__resize-grab-area {
|
|
|
|
position: absolute;
|
|
|
|
width: 8px;
|
|
|
|
height: 100%;
|
|
|
|
right: -8px;
|
|
|
|
top: 0;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2021-10-12 18:59:08 -05:00
|
|
|
cursor: col-resize;
|
|
|
|
}
|
|
|
|
|
2019-05-31 15:42:01 -07:00
|
|
|
// Module: Timeline Loading Row
|
|
|
|
|
|
|
|
.module-timeline-loading-row {
|
|
|
|
height: 48px;
|
|
|
|
padding: 12px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: columns;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-20 10:42:28 -07:00
|
|
|
// Module: Timeline
|
|
|
|
|
|
|
|
.module-timeline {
|
|
|
|
height: 100%;
|
2019-05-31 15:42:01 -07:00
|
|
|
overflow: hidden;
|
2021-09-17 17:03:18 -04:00
|
|
|
|
|
|
|
.ReactVirtualized__List {
|
|
|
|
@include scrollbar;
|
|
|
|
}
|
2019-03-20 10:42:28 -07:00
|
|
|
}
|
|
|
|
|
2020-12-01 08:42:35 -08:00
|
|
|
.module-timeline--disabled {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2019-03-20 10:42:28 -07:00
|
|
|
.module-timeline__message-container {
|
2019-08-22 14:11:36 -07:00
|
|
|
padding-top: 4px;
|
|
|
|
padding-bottom: 4px;
|
2019-03-20 10:42:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.ReactVirtualized__List {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-05-24 16:58:27 -07:00
|
|
|
// Module: CompositionPopper
|
2019-05-16 15:32:11 -07:00
|
|
|
|
2019-05-24 16:58:27 -07:00
|
|
|
%module-composition-popper {
|
2019-05-16 15:32:11 -07:00
|
|
|
width: 332px;
|
|
|
|
border-radius: 8px;
|
2019-05-24 16:58:27 -07:00
|
|
|
margin-bottom: 6px;
|
2021-12-02 18:08:40 -05:00
|
|
|
z-index: $z-index-context-menu;
|
2019-05-16 15:32:11 -07:00
|
|
|
user-select: none;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
@include popper-shadow();
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-02;
|
2019-05-24 16:58:27 -07:00
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
border: 2px solid $color-gray-02;
|
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
2021-11-30 21:14:25 -05:00
|
|
|
background: $color-gray-80;
|
2019-05-24 16:58:27 -07:00
|
|
|
::-webkit-scrollbar-thumb {
|
2021-11-30 21:14:25 -05:00
|
|
|
border: 2px solid $color-gray-80;
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-24 16:58:27 -07: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 18:08:40 -05:00
|
|
|
z-index: $z-index-context-menu;
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
.module-sticker-picker__header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
padding: 0 8px;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-picker__header__packs {
|
|
|
|
width: 288px;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&__slider {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
transform: translateX(0);
|
|
|
|
transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-picker__header__button {
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 8px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
background: none;
|
|
|
|
margin-right: 4px;
|
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
outline: none;
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
&:active,
|
|
|
|
&:focus {
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
2019-11-07 13:36:16 -08:00
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
2019-11-21 11:16:06 -08:00
|
|
|
@include dark-keyboard-mode {
|
2019-11-07 13:36:16 -08:00
|
|
|
background: $color-gray-60;
|
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
&--selected {
|
|
|
|
@include light-theme {
|
2019-11-07 13:36:16 -08:00
|
|
|
background: $color-gray-15;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-11-07 13:36:16 -08:00
|
|
|
background: $color-gray-45;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--recents,
|
|
|
|
&--add-pack {
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
min-width: 20px;
|
|
|
|
min-height: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--recents {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/recent-outline-20.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/recent-solid-20.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--add-pack {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/plus-20.svg', $color-gray-60);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/plus-20.svg', $color-gray-25);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--prev-page,
|
|
|
|
&--next-page {
|
|
|
|
top: 0;
|
|
|
|
margin: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2019-10-04 11:06:17 -07:00
|
|
|
min-width: 16px;
|
|
|
|
min-height: 16px;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-02;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--prev-page {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-left-16.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-left-16.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--next-page {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-right-16.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-right-16.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--error {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
position: absolute;
|
|
|
|
left: 14px;
|
|
|
|
top: 2px;
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-solid-24.svg',
|
|
|
|
$color-accent-red
|
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--hint {
|
|
|
|
position: relative;
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
border-radius: 7px;
|
2021-05-28 12:15:17 -04:00
|
|
|
background: $color-ultramarine;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-picker__header__button__image {
|
2020-01-15 14:16:21 -05:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
object-fit: contain;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
2019-05-23 18:27:42 -07:00
|
|
|
.module-sticker-picker__header__button__image--placeholder {
|
|
|
|
min-width: 20px;
|
|
|
|
min-height: 20px;
|
|
|
|
max-width: 20px;
|
|
|
|
max-height: 20px;
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-05;
|
2019-05-23 18:27:42 -07:00
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
.module-sticker-picker__body {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
width: 332px;
|
|
|
|
height: 356px;
|
|
|
|
padding: 8px 20px 16px 16px;
|
|
|
|
overflow-y: auto;
|
|
|
|
display: grid;
|
|
|
|
grid-gap: 8px;
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
|
grid-auto-rows: 68px;
|
|
|
|
|
|
|
|
&--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 11:16:06 -08:00
|
|
|
@include mouse-mode {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
&__image,
|
|
|
|
&__placeholder {
|
|
|
|
width: 100%;
|
2020-01-15 14:16:21 -05:00
|
|
|
height: 100%;
|
|
|
|
object-fit: contain;
|
2019-05-16 15:32:11 -07: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 11:06:17 -07:00
|
|
|
@include font-body-1-bold;
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
text-align: center;
|
|
|
|
padding: 8px 16px 12px 0;
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:only-child {
|
|
|
|
padding: 0 0 28px 0; // header height to offset the text so it is centered in the whole picker
|
|
|
|
}
|
|
|
|
|
|
|
|
&--error {
|
|
|
|
@include light-theme() {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-accent-red;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
@include dark-theme() {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-accent-red;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--hint {
|
|
|
|
@include light-theme() {
|
2021-05-28 12:15:17 -04:00
|
|
|
color: $color-ultramarine;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
2021-05-28 12:15:17 -04:00
|
|
|
color: $color-ultramarine-light;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--pin {
|
|
|
|
padding: 8px 16px 12px 0px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: StickerManager
|
|
|
|
|
|
|
|
.module-sticker-manager {
|
|
|
|
padding: 0 16px;
|
2019-11-07 13:36:16 -08:00
|
|
|
outline: none;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-manager__text {
|
|
|
|
height: 18px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
letter-spacing: 0px;
|
|
|
|
line-height: 18px;
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--heading {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1-bold;
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-manager__empty {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 64px;
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-02;
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-90;
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-18 14:36:20 -05:00
|
|
|
%blessed-sticker-pack-icon {
|
|
|
|
height: 14px;
|
|
|
|
width: 14px;
|
|
|
|
border-radius: 8px;
|
|
|
|
background-color: $color-white;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin: {
|
|
|
|
left: 5px;
|
|
|
|
bottom: 2px;
|
|
|
|
}
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
2019-12-18 11:44:57 -08:00
|
|
|
content: '';
|
2019-12-18 14:36:20 -05:00
|
|
|
display: block;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
position: absolute;
|
|
|
|
top: -1px;
|
|
|
|
left: -1px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/check-circle-solid-24.svg',
|
|
|
|
$color-accent-blue
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/check-circle-solid-24.svg',
|
|
|
|
$color-accent-blue
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
.module-sticker-manager__pack-row {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-11-07 13:36:16 -08:00
|
|
|
padding: 16px;
|
2019-05-16 15:32:11 -07:00
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
& + & {
|
|
|
|
border-top: 1px solid $color-gray-15;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
& + & {
|
|
|
|
border-top: 1px solid $color-gray-75;
|
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2019-11-21 11:16:06 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
&__cover {
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
2020-01-15 14:16:21 -05:00
|
|
|
object-fit: contain;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
2019-05-23 18:27:42 -07:00
|
|
|
&__cover-placeholder {
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
2019-10-04 11:06:17 -07:00
|
|
|
background: $color-gray-05;
|
2019-05-23 18:27:42 -07:00
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
&__meta {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
padding: 0 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__author {
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
@include light-theme() {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-45;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__blessed-icon {
|
2019-12-18 14:36:20 -05:00
|
|
|
@extend %blessed-sticker-pack-icon;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__controls {
|
|
|
|
flex-shrink: 1;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
&--menu {
|
2019-08-06 17:40:25 -07:00
|
|
|
&::after {
|
2019-05-16 15:32:11 -07:00
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
min-width: 24px;
|
|
|
|
min-height: 24px;
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/more-horiz-24.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/more-horiz-24.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-manager__install-button {
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
color: $color-gray-90;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include font-body-1-bold;
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
height: 24px;
|
|
|
|
background: $color-gray-05;
|
|
|
|
border-radius: 12px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 12px;
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
@include mouse-mode {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
&--blue {
|
|
|
|
@include light-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
background: $color-ultramarine;
|
2019-05-16 15:32:11 -07:00
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2021-05-28 12:15:17 -04:00
|
|
|
background: $color-ultramarine-light;
|
2019-05-16 15:32:11 -07:00
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-manager__preview-modal {
|
|
|
|
&__overlay {
|
2019-10-04 11:06:17 -07:00
|
|
|
background: $color-black-alpha-40;
|
2019-05-16 15:32:11 -07:00
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-12-02 18:08:40 -05:00
|
|
|
z-index: $z-index-popup;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
position: relative;
|
|
|
|
border-radius: 8px;
|
2019-10-04 11:06:17 -07:00
|
|
|
box-shadow: 0 4px 12px 0 $color-black-alpha-20;
|
2019-05-16 15:32:11 -07:00
|
|
|
width: 440px;
|
|
|
|
height: 360px;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
2019-05-23 18:27:42 -07:00
|
|
|
&__error {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-accent-red;
|
2019-05-23 18:27:42 -07:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 0 80px 30px 80px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include font-body-1-bold;
|
2019-05-23 18:27:42 -07:00
|
|
|
}
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
&__header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-05-23 18:27:42 -07:00
|
|
|
flex-shrink: 0;
|
2019-05-16 15:32:11 -07:00
|
|
|
height: 36px;
|
|
|
|
padding: 0 8px 0 16px;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&__text {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-1-bold;
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
color: $color-gray-90;
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__close-button {
|
|
|
|
border: none;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-60);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-05);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__sticker-grid {
|
|
|
|
width: 100%;
|
|
|
|
display: grid;
|
|
|
|
grid-gap: 8px;
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
|
overflow-y: auto;
|
2019-09-06 15:12:49 -04:00
|
|
|
padding: 0 16px;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 80px;
|
|
|
|
grid-column: 1 / span 4;
|
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
&__cell {
|
|
|
|
width: 96px;
|
|
|
|
height: 96px;
|
2020-01-07 16:42:06 -05:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
&__image {
|
|
|
|
width: 100%;
|
2020-01-15 14:16:21 -05:00
|
|
|
height: 100%;
|
|
|
|
object-fit: contain;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
2019-05-23 18:27:42 -07:00
|
|
|
|
|
|
|
&--placeholder {
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__meta-overlay {
|
|
|
|
border-radius: 4px;
|
|
|
|
width: 408px;
|
|
|
|
height: 52px;
|
|
|
|
position: absolute;
|
|
|
|
left: 16px;
|
|
|
|
bottom: 16px;
|
|
|
|
padding: 0 12px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__info {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
2020-02-28 18:14:12 -08:00
|
|
|
flex-grow: 1;
|
2020-03-17 17:57:57 -07:00
|
|
|
flex-shrink: 1;
|
|
|
|
overflow: hidden;
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
&__title {
|
|
|
|
margin: 0;
|
2020-01-09 14:30:32 -05:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include font-body-1-bold;
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__author {
|
|
|
|
margin: 0;
|
2020-01-09 14:30:32 -05:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-45;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__blessed-icon {
|
2019-12-18 14:36:20 -05:00
|
|
|
@extend %blessed-sticker-pack-icon;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__install {
|
2020-02-28 18:14:12 -08:00
|
|
|
flex-shrink: 0;
|
|
|
|
overflow: hidden;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Sticker button (launches the sticker picker)
|
|
|
|
|
|
|
|
.sticker-button-wrapper {
|
|
|
|
height: 36px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-button__button {
|
|
|
|
border: 0;
|
|
|
|
background: none;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
border-radius: 16px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
opacity: 0.5;
|
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
&:focus,
|
2019-05-16 15:32:11 -07:00
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
outline: none;
|
|
|
|
|
2019-08-06 17:40:25 -07:00
|
|
|
&::after {
|
2019-05-16 15:32:11 -07:00
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2019-05-24 16:58:27 -07:00
|
|
|
flex-shrink: 0;
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/sticker-outline-24.svg',
|
2020-10-21 19:54:14 -04:00
|
|
|
$color-gray-75
|
2019-10-04 11:06:17 -07:00
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/sticker-solid-24.svg',
|
2020-10-21 19:54:14 -04:00
|
|
|
$color-gray-15
|
2019-10-04 11:06:17 -07:00
|
|
|
);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--active {
|
|
|
|
@include light-theme() {
|
2019-10-04 11:06:17 -07:00
|
|
|
background: $color-gray-05;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-sticker-button__tooltip {
|
2019-11-07 13:36:16 -08:00
|
|
|
@include button-reset;
|
|
|
|
|
2019-05-16 15:32:11 -07:00
|
|
|
height: 34px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 7px 12px;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin-bottom: 6px;
|
2021-12-02 18:08:40 -05:00
|
|
|
z-index: $z-index-tooltip;
|
2019-05-16 15:32:11 -07: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 14:16:21 -05:00
|
|
|
object-fit: contain;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
2019-05-23 18:27:42 -07:00
|
|
|
&__image-placeholder {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-05;
|
2019-05-23 18:27:42 -07:00
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
&__text {
|
|
|
|
margin-left: 4px;
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
2019-10-04 11:06:17 -07:00
|
|
|
font-weight: bold;
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--introduction {
|
|
|
|
width: 420px;
|
|
|
|
height: 72px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
2019-12-11 19:10:37 -08:00
|
|
|
&__image {
|
|
|
|
width: 52px;
|
|
|
|
height: 52px;
|
|
|
|
}
|
2019-05-16 15:32:11 -07:00
|
|
|
|
|
|
|
&__meta {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 0 12px;
|
|
|
|
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 11:06:17 -07:00
|
|
|
|
|
|
|
@include font-body-1-bold;
|
2019-05-16 15:32:11 -07:00
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__subtitle {
|
|
|
|
margin-top: 3px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__close {
|
|
|
|
flex-shrink: 1;
|
|
|
|
height: 100%;
|
|
|
|
&__button {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-60);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-05);
|
2019-05-16 15:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-24 16:58:27 -07: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;
|
|
|
|
margin: 0 12px;
|
|
|
|
|
|
|
|
&__search-field {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-left: 8px;
|
|
|
|
position: relative;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
|
|
|
|
2019-05-24 16:58:27 -07:00
|
|
|
&::after {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
position: absolute;
|
|
|
|
left: 8px;
|
|
|
|
top: 6px;
|
|
|
|
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/search-16.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/search-16.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__input {
|
|
|
|
width: 100%;
|
|
|
|
height: 28px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include font-body-1;
|
|
|
|
|
2019-05-24 16:58:27 -07:00
|
|
|
line-height: 28px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2019-05-24 16:58:27 -07:00
|
|
|
border-radius: 17px;
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
padding: 0 8px 0 30px;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
color: $color-gray-90;
|
|
|
|
border-color: $color-gray-60;
|
|
|
|
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
border-color: $color-ultramarine;
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
|
2019-08-06 17:40:25 -07:00
|
|
|
&:placeholder {
|
2019-05-24 16:58:27 -07: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 12:15:17 -04:00
|
|
|
border-color: $color-ultramarine;
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
|
2019-08-06 17:40:25 -07:00
|
|
|
&:placeholder {
|
2019-05-24 16:58:27 -07:00
|
|
|
color: $color-gray-45;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__footer {
|
|
|
|
@extend %module-emoji-picker--ribbon;
|
|
|
|
justify-content: center;
|
2021-09-09 11:29:01 -05:00
|
|
|
|
|
|
|
&__skin-tones {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__settings-spacer {
|
|
|
|
width: 28px;
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
2019-05-24 16:58:27 -07: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 11:16:06 -08:00
|
|
|
@include mouse-mode {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-05-24 16:58:27 -07:00
|
|
|
&--footer {
|
2021-09-09 11:29:01 -05:00
|
|
|
&:not(:last-of-type) {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--settings {
|
|
|
|
margin-left: 12px;
|
|
|
|
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(
|
|
|
|
'../images/icons/v2/settings-outline-16.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/settings-solid-16.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--selected {
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
background: $color-gray-05;
|
2019-05-24 16:58:27 -07: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 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/search-16.svg',
|
|
|
|
$color-gray-60
|
|
|
|
);
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/search-16.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--close {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-60);
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--recents {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2019-10-04 11:06:17 -07:00
|
|
|
'../images/icons/v2/recent-outline-20.svg',
|
2019-05-24 16:58:27 -07:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2019-10-04 11:06:17 -07:00
|
|
|
'../images/icons/v2/recent-solid-20.svg',
|
2019-05-24 16:58:27 -07:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--emoji {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2019-10-04 11:06:17 -07:00
|
|
|
'../images/icons/v2/emoji-smiley-outline-20.svg',
|
2019-05-24 16:58:27 -07:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/emoji-smiley-solid-20.svg',
|
|
|
|
$color-gray-25
|
|
|
|
);
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$categories: animal food activity travel object symbol flag;
|
|
|
|
|
|
|
|
@each $cat in $categories {
|
|
|
|
&--#{$cat} {
|
|
|
|
&::after {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2019-10-04 11:06:17 -07:00
|
|
|
'../images/icons/v2/emoji-#{$cat}-outline-20.svg',
|
2019-05-24 16:58:27 -07:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2019-10-04 11:06:17 -07:00
|
|
|
'../images/icons/v2/emoji-#{$cat}-solid-20.svg',
|
2019-05-24 16:58:27 -07:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__body {
|
|
|
|
padding: 8px 16px 0 12px;
|
2019-11-07 13:36:16 -08:00
|
|
|
outline: none;
|
2019-05-24 16:58:27 -07: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 15:25:57 -05:00
|
|
|
@include font-body-1;
|
2019-05-24 16:58:27 -07: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;
|
|
|
|
margin: 0 6px;
|
|
|
|
padding-top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-emoji-button__button {
|
|
|
|
border: 0;
|
|
|
|
background: none;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
border-radius: 16px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
opacity: 0.5;
|
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
&:focus,
|
2019-05-24 16:58:27 -07:00
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2019-11-21 11:16:06 -08:00
|
|
|
outline: none;
|
|
|
|
|
2019-08-06 17:40:25 -07:00
|
|
|
&::after {
|
2019-05-24 16:58:27 -07:00
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
@include light-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/emoji-smiley-outline-24.svg',
|
2020-10-21 19:54:14 -04:00
|
|
|
$color-gray-75
|
2019-10-04 11:06:17 -07:00
|
|
|
);
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/emoji-smiley-solid-24.svg',
|
2020-10-21 19:54:14 -04:00
|
|
|
$color-gray-15
|
2019-10-04 11:06:17 -07:00
|
|
|
);
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-19 15:26:06 -04:00
|
|
|
&--has-emoji {
|
|
|
|
opacity: 1;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-24 16:58:27 -07:00
|
|
|
&--active {
|
|
|
|
@include light-theme() {
|
2019-10-04 11:06:17 -07:00
|
|
|
background: $color-gray-05;
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Emoji
|
2019-06-17 14:46:42 -04:00
|
|
|
@mixin emoji-size($size) {
|
2019-05-24 16:58:27 -07:00
|
|
|
&--#{$size} {
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
2019-06-27 16:35:21 -04:00
|
|
|
&--inline {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: bottom;
|
|
|
|
background-size: $size $size;
|
|
|
|
}
|
2019-06-17 14:46:42 -04:00
|
|
|
}
|
|
|
|
&__image--#{$size} {
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
|
|
|
transform: translate3d(0, 0, 0);
|
2020-02-07 15:19:35 -05:00
|
|
|
vertical-align: baseline;
|
2019-05-24 16:58:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-emoji {
|
2020-02-07 14:07:22 -05:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2019-06-27 16:35:21 -04:00
|
|
|
color: transparent;
|
2019-10-31 15:32:10 -04:00
|
|
|
font-family: auto;
|
2019-06-27 16:35:21 -04:00
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
caret-color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
caret-color: $color-gray-05;
|
|
|
|
}
|
2019-05-24 16:58:27 -07:00
|
|
|
|
|
|
|
@include emoji-size(16px);
|
2019-06-27 16:35:21 -04:00
|
|
|
@include emoji-size(18px);
|
2019-05-24 16:58:27 -07:00
|
|
|
@include emoji-size(20px);
|
2019-12-17 15:25:57 -05:00
|
|
|
@include emoji-size(24px);
|
2019-05-24 16:58:27 -07:00
|
|
|
@include emoji-size(28px);
|
|
|
|
@include emoji-size(32px);
|
2020-01-23 18:57:37 -05:00
|
|
|
@include emoji-size(48px);
|
2019-05-24 16:58:27 -07:00
|
|
|
@include emoji-size(64px);
|
|
|
|
@include emoji-size(66px);
|
|
|
|
}
|
|
|
|
|
2019-06-26 12:33:13 -07:00
|
|
|
// Module: Countdown
|
|
|
|
|
|
|
|
.module-countdown {
|
|
|
|
display: block;
|
2019-05-31 15:42:01 -07:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
|
2019-05-31 15:42:01 -07:00
|
|
|
// Note: the colors here should match the module-spinner's on-background colors
|
|
|
|
.module-countdown__front-path {
|
2019-06-26 12:33:13 -07:00
|
|
|
fill-opacity: 0;
|
|
|
|
stroke-width: 2;
|
2019-05-31 15:42:01 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
stroke: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
stroke: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-countdown__back-path {
|
|
|
|
fill-opacity: 0;
|
|
|
|
stroke-width: 2;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
stroke: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
stroke: $color-gray-75;
|
|
|
|
}
|
2019-06-26 12:33:13 -07:00
|
|
|
}
|
|
|
|
|
2019-06-27 16:35:21 -04:00
|
|
|
// Module: CompositionInput
|
|
|
|
.module-composition-input {
|
2020-10-21 09:53:32 -07:00
|
|
|
&__quill {
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
.ql-editor {
|
2020-11-03 18:04:22 -08:00
|
|
|
caret-color: transparent;
|
2020-10-21 09:53:32 -07:00
|
|
|
padding: 0;
|
2020-11-20 16:03:16 -08:00
|
|
|
text-align: start;
|
2021-05-27 11:42:33 -04:00
|
|
|
white-space: break-spaces;
|
2020-10-21 09:53:32 -07:00
|
|
|
|
2020-11-03 18:04:22 -08:00
|
|
|
&--loaded {
|
|
|
|
caret-color: auto;
|
|
|
|
}
|
|
|
|
|
2020-10-21 09:53:32 -07:00
|
|
|
&.ql-blank::before {
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
2020-11-06 12:11:18 -08:00
|
|
|
|
|
|
|
.emoji-blot {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
}
|
2020-10-21 09:53:32 -07:00
|
|
|
}
|
|
|
|
}
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2020-11-02 17:19:52 -08:00
|
|
|
&__at-mention {
|
|
|
|
background-color: $color-gray-20;
|
|
|
|
border-radius: 4px;
|
2020-11-10 09:51:24 -08:00
|
|
|
display: inline;
|
2020-11-02 17:19:52 -08:00
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
2020-11-05 13:18:42 -08:00
|
|
|
height: 22px;
|
|
|
|
line-height: 22px;
|
2020-11-02 17:19:52 -08:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-21 09:53:32 -07:00
|
|
|
&__input {
|
2019-10-04 11:06:17 -07:00
|
|
|
border: none;
|
2019-06-27 16:35:21 -04:00
|
|
|
border-radius: 18px;
|
|
|
|
overflow: hidden;
|
|
|
|
word-break: break-word;
|
|
|
|
|
2020-10-21 09:53:32 -07:00
|
|
|
// Override Quill styles
|
|
|
|
.ql-container {
|
|
|
|
@include font-body-1;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
|
2020-10-21 09:53:32 -07:00
|
|
|
.ql-blank::before {
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-45;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
// Same as background color
|
|
|
|
border: 1px solid $color-white;
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
// Same as background color
|
|
|
|
border: 1px solid $color-gray-95;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
2019-06-27 16:35:21 -04:00
|
|
|
&__scroller {
|
|
|
|
padding: 7px 12px;
|
|
|
|
min-height: 32px;
|
|
|
|
max-height: 80px;
|
|
|
|
overflow: auto;
|
2019-10-17 10:50:57 -07:00
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
@include light-theme {
|
|
|
|
border: 2px solid $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border: 2px solid $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-06 15:18:37 -04:00
|
|
|
&--large {
|
|
|
|
max-height: 227px;
|
2020-10-26 17:10:44 -07:00
|
|
|
min-height: 227px;
|
|
|
|
|
2019-08-06 15:18:37 -04:00
|
|
|
.DraftEditor-root {
|
|
|
|
height: 227px - 2 * 7px; // subtract padding
|
|
|
|
}
|
|
|
|
}
|
2019-06-27 16:35:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-within {
|
|
|
|
@include light-theme() {
|
2021-05-28 12:15:17 -04:00
|
|
|
border: 1px solid $color-ultramarine;
|
2019-06-27 16:35:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
2021-05-28 12:15:17 -04:00
|
|
|
border: 1px solid $color-ultramarine;
|
2019-06-27 16:35:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-02 17:19:52 -08:00
|
|
|
&__suggestions {
|
|
|
|
padding: 0;
|
2019-06-27 16:35:21 -04:00
|
|
|
margin-bottom: 6px;
|
|
|
|
border-radius: 8px;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2020-11-02 17:19:52 -08:00
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&--scroller {
|
|
|
|
max-height: 300px;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
2019-06-27 16:35:21 -04:00
|
|
|
|
|
|
|
@include popper-shadow();
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__row {
|
2020-11-02 17:19:52 -08:00
|
|
|
height: 34px;
|
2019-06-27 16:35:21 -04:00
|
|
|
padding: 0 12px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
width: 100%;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
2020-11-02 17:19:52 -08:00
|
|
|
&--mention {
|
|
|
|
height: 40px;
|
|
|
|
}
|
|
|
|
|
2020-10-21 09:53:32 -07:00
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
2019-06-27 16:35:21 -04:00
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__short-name {
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--selected,
|
|
|
|
&:hover {
|
|
|
|
@include light-theme() {
|
2019-10-04 11:06:17 -07:00
|
|
|
background: $color-gray-05;
|
2019-06-27 16:35:21 -04:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background: $color-gray-60;
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-02 17:19:52 -08:00
|
|
|
|
|
|
|
&__title {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
|
|
|
|
2019-06-27 16:35:21 -04:00
|
|
|
stroke: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-31 15:42:01 -07:00
|
|
|
// Module: Last Seen Indicator
|
|
|
|
|
|
|
|
.module-last-seen-indicator {
|
|
|
|
padding-top: 25px;
|
|
|
|
padding-bottom: 35px;
|
2021-07-12 14:58:45 -05:00
|
|
|
user-select: none;
|
2019-05-31 15:42:01 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-last-seen-indicator__bar {
|
2019-10-04 11:06:17 -07:00
|
|
|
background-color: $color-gray-45;
|
2019-05-31 15:42:01 -07:00
|
|
|
width: 100%;
|
2019-10-04 11:06:17 -07:00
|
|
|
height: 1px;
|
2019-05-31 15:42:01 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-last-seen-indicator__text {
|
|
|
|
margin-top: 3px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include font-body-2-bold;
|
2019-05-31 15:42:01 -07:00
|
|
|
|
|
|
|
text-align: center;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
2019-05-31 15:42:01 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Scroll Down Button
|
|
|
|
|
|
|
|
.module-scroll-down {
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-scroll-down-button;
|
2019-05-31 15:42:01 -07:00
|
|
|
position: absolute;
|
|
|
|
right: 20px;
|
|
|
|
bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-scroll-down__button {
|
|
|
|
height: 44px;
|
|
|
|
width: 44px;
|
|
|
|
border-radius: 22px;
|
|
|
|
text-align: center;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-25;
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-gray-45;
|
|
|
|
}
|
|
|
|
|
|
|
|
box-shadow: 0px 3px 5px 0px $color-black-alpha-20;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-45;
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
box-shadow: 0px 3px 5px 0px $color-white-alpha-20;
|
2019-05-31 15:42:01 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-scroll-down__button--new-messages {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine;
|
2019-05-31 15:42:01 -07:00
|
|
|
|
|
|
|
&:hover {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine-dark;
|
2019-05-31 15:42:01 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-scroll-down__icon {
|
2019-10-04 11:06:17 -07:00
|
|
|
@include color-svg('../images/icons/v2/arrow-down-24.svg', $color-white);
|
|
|
|
height: 36px;
|
|
|
|
width: 36px;
|
|
|
|
margin-left: -3px;
|
|
|
|
margin-top: -1px;
|
2019-05-31 15:42:01 -07:00
|
|
|
}
|
|
|
|
|
2019-10-17 11:22:07 -07:00
|
|
|
// Module: Avatar Popup
|
|
|
|
|
|
|
|
.module-avatar-popup {
|
|
|
|
min-width: 240px;
|
2021-10-12 18:59:08 -05:00
|
|
|
max-width: 320px;
|
2019-10-17 11:22:07 -07:00
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
|
|
|
@include popper-shadow;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-avatar-popup__profile {
|
2021-07-19 15:26:06 -04:00
|
|
|
@include button-reset();
|
|
|
|
align-items: center;
|
2019-10-17 11:22:07 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2021-07-19 15:26:06 -04:00
|
|
|
width: 100%;
|
|
|
|
|
2021-10-25 12:11:19 -07:00
|
|
|
@include light-theme {
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-gray-05;
|
2021-07-19 15:26:06 -04:00
|
|
|
}
|
2021-10-25 12:11:19 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:hover {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:hover {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
&:focus {
|
2021-07-19 15:26:06 -04:00
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
2019-10-17 11:22:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-avatar-popup__profile {
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-avatar-popup__profile__text {
|
|
|
|
margin-left: 10px;
|
2021-04-28 13:50:42 -07:00
|
|
|
overflow: hidden;
|
2019-10-17 11:22:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-avatar-popup__profile__name {
|
2021-03-08 11:58:59 -06:00
|
|
|
@include font-body-1-bold;
|
2019-10-17 11:22:07 -07:00
|
|
|
}
|
|
|
|
.module-avatar-popup__profile__number {
|
2021-03-08 11:58:59 -06:00
|
|
|
@include font-subtitle;
|
2019-10-17 11:22:07 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-28 13:50:42 -07:00
|
|
|
.module-avatar-popup__profile__name,
|
|
|
|
.module-avatar-popup__profile__number {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2019-10-17 11:22:07 -07:00
|
|
|
.module-avatar-popup__divider {
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-avatar-popup__item {
|
|
|
|
@include font-body-2;
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
height: 32px;
|
|
|
|
padding: 6px;
|
|
|
|
|
|
|
|
@include light-theme {
|
2019-12-03 12:02:50 -08:00
|
|
|
&:hover {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:hover {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
2019-10-17 11:22:07 -07:00
|
|
|
&:focus {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2019-12-03 12:02:50 -08:00
|
|
|
&:hover {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:hover {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
2019-10-17 11:22:07 -07:00
|
|
|
&:focus {
|
2019-11-07 13:36:16 -08:00
|
|
|
background-color: $color-gray-60;
|
2019-10-17 11:22:07 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-avatar-popup__item__icon {
|
|
|
|
margin-left: 6px;
|
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2021-08-19 18:56:29 -04:00
|
|
|
|
|
|
|
&--update {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/refresh-24.svg', $color-gray-75);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/refresh-24.svg', $color-gray-15);
|
|
|
|
}
|
|
|
|
}
|
2019-10-17 11:22:07 -07:00
|
|
|
}
|
|
|
|
.module-avatar-popup__item__icon-settings {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/settings-outline-16.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/settings-solid-16.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module-avatar-popup__item__icon-archive {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/archive-outline-16.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/archive-solid-16.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-avatar-popup__item__text {
|
2021-08-19 18:56:29 -04:00
|
|
|
flex-grow: 1;
|
2019-10-17 11:22:07 -07:00
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
|
2021-08-19 18:56:29 -04:00
|
|
|
.module-avatar-popup__item--badge {
|
|
|
|
background: $color-ultramarine;
|
|
|
|
border-radius: 100%;
|
|
|
|
height: 8px;
|
|
|
|
margin-right: 10px;
|
|
|
|
width: 8px;
|
|
|
|
}
|
|
|
|
|
2019-11-07 13:36:16 -08:00
|
|
|
// Module: Shortcut Guide Modal
|
|
|
|
|
|
|
|
.module-shortcut-guide-modal {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
background-color: $color-black-alpha-40;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-context-menu;
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-shortcut-guide-container {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Shortcut Guide
|
|
|
|
|
|
|
|
.module-shortcut-guide {
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 16px;
|
|
|
|
|
|
|
|
max-height: calc(100vh - 40px);
|
|
|
|
max-width: 1150px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
@include popper-shadow;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
border: 2px solid $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-shortcut-guide__header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-shortcut-guide__header-text {
|
|
|
|
@include font-title-2;
|
|
|
|
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
.module-shortcut-guide__header-close {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-60);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-05);
|
|
|
|
}
|
|
|
|
|
2020-10-30 12:35:31 -05:00
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-ultramarine);
|
2020-10-30 12:35:31 -05:00
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
2021-05-28 12:15:17 -04:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/x-24.svg',
|
|
|
|
$color-ultramarine-light
|
|
|
|
);
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-shortcut-guide__section-header {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-shortcut-guide__scroll-container {
|
|
|
|
outline: none;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-shortcut-guide__section {
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 25px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 900px) {
|
|
|
|
.module-shortcut-guide__section-list {
|
|
|
|
column-count: 2;
|
|
|
|
column-gap: 20px;
|
|
|
|
column-span: none;
|
|
|
|
column-fill: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-shortcut-guide__shortcut {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
break-inside: avoid;
|
|
|
|
|
2019-12-03 12:02:50 -08:00
|
|
|
padding-left: 4px;
|
2019-11-07 13:36:16 -08:00
|
|
|
min-height: 40px;
|
|
|
|
outline: none;
|
|
|
|
|
2020-10-30 12:35:31 -05:00
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
background-color: $color-gray-90;
|
2019-11-07 13:36:16 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
border-bottom: 1px solid $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-bottom: 1px solid $color-gray-90;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-shortcut-guide__shortcut__description {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-top: 4px;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
.module-shortcut-guide__shortcut__key-container {
|
2020-04-20 11:23:46 -07:00
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
.module-shortcut-guide__shortcut__key-inner-container {
|
2019-11-07 13:36:16 -08:00
|
|
|
text-align: right;
|
2020-04-20 11:23:46 -07:00
|
|
|
margin-top: 4px;
|
2019-11-07 13:36:16 -08:00
|
|
|
margin-right: 4px;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2020-04-20 11:23:46 -07:00
|
|
|
|
2019-11-07 13:36:16 -08:00
|
|
|
.module-shortcut-guide__shortcut__key {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
padding: 3px;
|
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
margin-left: 4px;
|
|
|
|
|
|
|
|
height: 30px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
border: 1px solid $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border: 1px solid $color-gray-90;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-shortcut-guide__shortcut__key--square {
|
|
|
|
width: 30px;
|
|
|
|
padding-left: 0px;
|
|
|
|
padding-right: 0px;
|
|
|
|
}
|
|
|
|
|
2020-08-26 20:03:42 -04:00
|
|
|
/* Calling: Device Selection */
|
|
|
|
|
|
|
|
.module-calling-device-selection {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-calling-device-selection__close-button {
|
|
|
|
@include button-reset;
|
|
|
|
|
2021-10-27 17:07:13 -07:00
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-15);
|
2020-08-26 20:03:42 -04:00
|
|
|
|
2021-10-27 17:07:13 -07:00
|
|
|
height: 24px;
|
2020-08-26 20:03:42 -04:00
|
|
|
position: absolute;
|
|
|
|
right: 5px;
|
|
|
|
top: 0;
|
2021-10-27 17:07:13 -07:00
|
|
|
width: 24px;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2020-08-26 20:03:42 -04:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
outline: 2px solid $color-ultramarine;
|
2020-08-26 20:03:42 -04: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;
|
|
|
|
|
|
|
|
select {
|
|
|
|
@include font-body-1;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
border: 1px solid $color-gray-45;
|
|
|
|
cursor: pointer;
|
|
|
|
height: 40px;
|
|
|
|
outline: 0;
|
|
|
|
padding: 10px;
|
|
|
|
padding-right: 32px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
border: 2px solid $color-gray-75;
|
|
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
border-right: 0;
|
|
|
|
border-top: 0;
|
|
|
|
content: ' ';
|
|
|
|
display: block;
|
|
|
|
height: 10px;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
right: 15px;
|
|
|
|
top: 16px;
|
|
|
|
transform-origin: center;
|
|
|
|
transform: rotate(-45deg);
|
|
|
|
width: 10px;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-above-base;
|
2020-08-26 20:03:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-01 08:42:35 -08:00
|
|
|
// Module: GroupV1 Disabled Actions
|
|
|
|
|
|
|
|
.module-group-v1-disabled-actions {
|
|
|
|
padding: 8px 16px 12px 16px;
|
|
|
|
max-width: 650px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
|
|
@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;
|
|
|
|
padding-left: 30px;
|
|
|
|
padding-right: 30px;
|
|
|
|
|
|
|
|
@include button-primary;
|
|
|
|
}
|
|
|
|
|
2021-01-29 14:16:48 -08:00
|
|
|
// Module: GroupV2 Pending Approval Actions
|
|
|
|
|
|
|
|
.module-group-v2-pending-approval-actions {
|
|
|
|
padding: 8px 16px 12px 16px;
|
|
|
|
max-width: 650px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
|
|
@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;
|
|
|
|
padding-left: 30px;
|
|
|
|
padding-right: 30px;
|
|
|
|
|
|
|
|
@include button-secondary;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-20 09:30:45 -08:00
|
|
|
// Module: Modal Host
|
|
|
|
|
|
|
|
.module-modal-host__overlay {
|
|
|
|
background: $color-black-alpha-40;
|
|
|
|
height: 100vh;
|
|
|
|
left: 0;
|
2021-10-14 12:52:42 -04:00
|
|
|
position: absolute;
|
2020-11-20 09:30:45 -08:00
|
|
|
top: 0;
|
2021-10-14 12:52:42 -04:00
|
|
|
width: 100vw;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-popup-overlay;
|
2021-10-14 12:52:42 -04:00
|
|
|
}
|
2020-11-20 09:30:45 -08:00
|
|
|
|
2021-10-14 12:52:42 -04:00
|
|
|
.module-modal-host__container {
|
2020-11-20 09:30:45 -08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-10-14 12:52:42 -04:00
|
|
|
height: 100vh;
|
2020-11-20 09:30:45 -08:00
|
|
|
justify-content: center;
|
2021-10-14 12:52:42 -04:00
|
|
|
left: 0;
|
2020-11-20 09:30:45 -08:00
|
|
|
overflow: hidden;
|
|
|
|
padding: 20px;
|
2021-10-14 12:52:42 -04:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100vw;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-popup-overlay;
|
2020-11-20 09:30:45 -08:00
|
|
|
}
|
|
|
|
|
2021-12-04 00:04:34 +01:00
|
|
|
.module-modal-host--on-top-of-everything {
|
|
|
|
$loading-screen-modal-overlay: $z-index-on-top-of-everything + 1;
|
|
|
|
|
|
|
|
.module-modal-host__overlay,
|
|
|
|
.module-modal-host__container {
|
|
|
|
z-index: $loading-screen-modal-overlay;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 14:16:48 -08:00
|
|
|
// Module: GroupV2 Join Dialog
|
|
|
|
|
|
|
|
.module-group-v2-join-dialog {
|
|
|
|
@include font-body-1;
|
|
|
|
border-radius: 8px;
|
|
|
|
width: 360px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
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;
|
|
|
|
right: 12px;
|
|
|
|
top: 12px;
|
|
|
|
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-75);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-15);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine;
|
2021-01-29 14:16:48 -08:00
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
2021-05-28 12:15:17 -04:00
|
|
|
background-color: $color-ultramarine-light;
|
2021-01-29 14:16:48 -08: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-01 17:24:28 -07:00
|
|
|
color: $color-gray-60;
|
2021-01-29 14:16:48 -08:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.module-group-v2-join-dialog__prompt {
|
|
|
|
margin-top: 40px;
|
2021-06-01 17:24:28 -07:00
|
|
|
|
|
|
|
&--approval {
|
|
|
|
@include font-subtitle;
|
|
|
|
color: $color-gray-45;
|
|
|
|
margin-top: 40px;
|
|
|
|
}
|
2021-01-29 14:16:48 -08: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) {
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
|
|
|
}
|
2021-06-01 17:24:28 -07:00
|
|
|
.module-group-v2-join-dialog__description {
|
|
|
|
color: $color-gray-60;
|
|
|
|
margin-top: 12px;
|
|
|
|
}
|
2021-01-29 14:16:48 -08:00
|
|
|
|
2020-10-06 10:06:34 -07: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;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-popup-overlay;
|
2020-10-06 10:06:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Module: Error Modal
|
|
|
|
|
|
|
|
.module-error-modal__button-container {
|
|
|
|
margin-top: 10px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
2020-10-07 21:25:33 -04:00
|
|
|
.module-button {
|
2021-01-29 16:19:24 -05:00
|
|
|
&__small {
|
|
|
|
@include font-body-2;
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 12:15:17 -04:00
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
2021-01-29 16:19:24 -05: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;
|
|
|
|
padding: 7px 12px;
|
|
|
|
}
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.module-background-color {
|
|
|
|
&__default {
|
|
|
|
background-color: $color-black-alpha-40;
|
|
|
|
}
|
|
|
|
|
2021-08-05 20:17:05 -04:00
|
|
|
@include avatar-colors();
|
2020-10-07 21:25:33 -04:00
|
|
|
}
|
|
|
|
|
2020-11-19 13:11:35 -05:00
|
|
|
.module-tooltip {
|
2021-01-11 15:43:21 -06: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 11:16:19 -07:00
|
|
|
border-radius: 8px;
|
2021-01-11 15:43:21 -06:00
|
|
|
color: var(--tooltip-text-color);
|
2020-11-19 13:11:35 -05:00
|
|
|
display: inline-block;
|
|
|
|
padding: 8px 21px;
|
|
|
|
position: fixed;
|
|
|
|
text-align: center;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-tooltip;
|
2020-06-04 11:16:19 -07:00
|
|
|
|
2020-11-19 13:11:35 -05:00
|
|
|
.module-tooltip-arrow {
|
|
|
|
position: absolute;
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
2020-11-19 13:11:35 -05:00
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
|
|
|
border: solid 6px transparent;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
margin-left: -6px;
|
|
|
|
margin-top: -6px;
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-placement='top'] {
|
|
|
|
.module-tooltip-arrow {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
|
|
|
bottom: -12px;
|
2021-01-11 15:43:21 -06:00
|
|
|
border-top-color: var(--tooltip-background-color);
|
2020-11-19 13:11:35 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-placement='right'] {
|
|
|
|
.module-tooltip-arrow {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
|
|
|
left: -6px;
|
2021-01-11 15:43:21 -06:00
|
|
|
border-right-color: var(--tooltip-background-color);
|
2020-11-19 13:11:35 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-placement='bottom'] {
|
|
|
|
.module-tooltip-arrow {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
|
|
|
top: -6px;
|
2021-01-11 15:43:21 -06:00
|
|
|
border-bottom-color: var(--tooltip-background-color);
|
2020-11-19 13:11:35 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-placement='left'] {
|
|
|
|
.module-tooltip-arrow {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-tooltip-arrow::after {
|
|
|
|
right: -12px;
|
2021-01-11 15:43:21 -06:00
|
|
|
border-left-color: var(--tooltip-background-color);
|
2020-11-19 13:11:35 -05:00
|
|
|
}
|
2020-06-04 11:16:19 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-28 12:11:19 -07:00
|
|
|
// Module: Chat Session Refreshed Dialog
|
|
|
|
|
|
|
|
.module-chat-session-refreshed-dialog {
|
2021-02-18 08:40:26 -08:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
.module-chat-session-refreshed-dialog__buttons {
|
|
|
|
text-align: right;
|
|
|
|
margin-top: 20px;
|
2021-05-28 12:11:19 -07:00
|
|
|
padding: 3px;
|
2021-02-18 08:40:26 -08:00
|
|
|
}
|
|
|
|
.module-chat-session-refreshed-dialog__button {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
@include button-reset;
|
|
|
|
@include button-primary;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 7px 14px;
|
|
|
|
margin-left: 12px;
|
|
|
|
}
|
|
|
|
.module-chat-session-refreshed-dialog__button--secondary {
|
|
|
|
@include button-secondary;
|
|
|
|
}
|
|
|
|
|
2021-05-28 12:11:19 -07: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 11:22:07 -07:00
|
|
|
/* Third-party module: react-contextmenu*/
|
2018-07-09 14:29:13 -07:00
|
|
|
|
|
|
|
.react-contextmenu {
|
2020-10-21 14:26:35 -04:00
|
|
|
@include popper-shadow();
|
|
|
|
|
2019-11-07 13:36:16 -08:00
|
|
|
outline: none;
|
2018-07-09 14:29:13 -07:00
|
|
|
border-radius: 4px;
|
2020-10-21 14:26:35 -04:00
|
|
|
min-width: 220px;
|
|
|
|
padding: 6px 0;
|
2018-07-09 14:29:13 -07:00
|
|
|
opacity: 0;
|
2019-01-22 23:08:00 +01:00
|
|
|
user-select: none;
|
2021-09-16 17:51:57 -04:00
|
|
|
visibility: hidden;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2020-10-21 14:26:35 -04:00
|
|
|
background-color: $color-white;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2020-10-21 14:26:35 -04:00
|
|
|
background-color: $color-gray-75;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu--visible {
|
|
|
|
opacity: 1;
|
2021-09-16 17:51:57 -04:00
|
|
|
visibility: visible;
|
2021-12-01 18:13:09 -05:00
|
|
|
z-index: $z-index-context-menu;
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item {
|
2019-11-07 13:36:16 -08:00
|
|
|
outline: none;
|
2018-07-09 14:29:13 -07:00
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
2019-10-04 11:06:17 -07:00
|
|
|
@include font-body-2;
|
|
|
|
|
2020-10-21 14:26:35 -04:00
|
|
|
padding: 7px 12px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2020-10-21 14:26:35 -04:00
|
|
|
|
|
|
|
&--divider {
|
|
|
|
height: 1px;
|
|
|
|
margin: 6px 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item--checked:before {
|
|
|
|
content: '✓';
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
right: 7px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item.react-contextmenu-submenu {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item.react-contextmenu-submenu > .react-contextmenu-item {
|
|
|
|
padding-right: 36px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item.react-contextmenu-submenu
|
|
|
|
> .react-contextmenu-item:after {
|
2020-10-21 14:26:35 -04:00
|
|
|
content: ' ';
|
2018-07-09 14:29:13 -07:00
|
|
|
display: inline-block;
|
2020-10-21 14:26:35 -04:00
|
|
|
height: 18px;
|
2018-07-09 14:29:13 -07:00
|
|
|
position: absolute;
|
|
|
|
right: 7px;
|
2020-10-21 14:26:35 -04:00
|
|
|
width: 12px;
|
2019-10-04 11:06:17 -07:00
|
|
|
|
|
|
|
@include light-theme {
|
2020-10-21 14:26:35 -04:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-right-16.svg',
|
|
|
|
$color-gray-75
|
|
|
|
);
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2020-10-21 14:26:35 -04:00
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/chevron-right-16.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
2019-10-04 11:06:17 -07:00
|
|
|
color: $color-gray-02;
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.react-contextmenu-item.react-contextmenu-item--active,
|
|
|
|
.react-contextmenu-item.react-contextmenu-item--selected {
|
2020-05-01 13:40:27 -04:00
|
|
|
color: $color-black;
|
2019-10-04 11:06:17 -07:00
|
|
|
@include light-theme {
|
2020-05-01 13:40:27 -04:00
|
|
|
background-color: $color-gray-15;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2020-10-21 14:26:35 -04:00
|
|
|
background-color: $color-gray-60;
|
2020-05-01 13:40:27 -04:00
|
|
|
color: $color-white;
|
2019-10-04 11:06:17 -07:00
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
|
|
|
|
2021-06-25 12:08:16 -04:00
|
|
|
.react-contextmenu-item--disabled.react-contextmenu-item--selected {
|
|
|
|
background-color: inherit;
|
|
|
|
cursor: inherit;
|
|
|
|
}
|
|
|
|
|
2018-07-09 14:29:13 -07: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 13:40:27 -04:00
|
|
|
color: $color-black;
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
2018-07-09 14:29:13 -07: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 13:40:27 -04:00
|
|
|
color: $color-black;
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
2018-07-09 14:29:13 -07:00
|
|
|
}
|
2018-08-10 17:15:00 -07:00
|
|
|
|
2019-01-08 13:22:27 -08:00
|
|
|
// To limit messages with things forcing them wider, like long attachment names
|
2019-01-15 19:03:56 -08:00
|
|
|
.module-message__container {
|
2021-01-27 15:15:43 -06:00
|
|
|
&--incoming {
|
|
|
|
align-self: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--outgoing {
|
|
|
|
align-self: flex-end;
|
|
|
|
}
|
|
|
|
|
2020-02-03 15:02:49 -05:00
|
|
|
&--with-reactions {
|
2021-07-09 15:27:16 -05:00
|
|
|
margin-bottom: -9px;
|
2020-02-03 15:02:49 -05:00
|
|
|
}
|
2020-04-29 17:24:12 -04:00
|
|
|
|
|
|
|
&--deleted-for-everyone {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2019-01-08 13:22:27 -08:00
|
|
|
}
|
|
|
|
|
2020-10-21 14:26:35 -04:00
|
|
|
.module-message__context {
|
|
|
|
&--icon::before {
|
|
|
|
content: ' ';
|
|
|
|
display: inline-block;
|
|
|
|
height: 14px;
|
|
|
|
margin-right: 8px;
|
|
|
|
width: 14px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__download::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/save-outline-24.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/save-solid-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__reply::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/reply-outline-24.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/reply-solid-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__react::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/add-emoji-outline-24.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/add-emoji-outline-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__more-info::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/info-outline-24.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/info-outline-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__retry-send::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/send-24.svg', $color-black);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/send-24.svg', $color-gray-15);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-27 15:35:35 -07:00
|
|
|
&__forward-message::before {
|
|
|
|
transform: scaleX(-1);
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/reply-outline-24.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/reply-solid-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-21 14:26:35 -04:00
|
|
|
&__delete-message::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/trash-outline-24.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/trash-solid-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__delete-message-for-everyone::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/trash-outline-24.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/trash-solid-24.svg',
|
|
|
|
$color-gray-15
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|