2021-03-01 20:08:37 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.module-ConversationHeader {
|
2021-06-01 20:45:43 +00:00
|
|
|
@mixin icon-element($icon, $margin-right: 4px) {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
user-select: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2021-06-01 20:45:43 +00:00
|
|
|
display: block;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: $margin-right;
|
2021-06-01 20:45:43 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg($icon, $color-gray-60);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg($icon, $color-gray-25);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-04 18:04:22 +00:00
|
|
|
--button-spacing: 12px;
|
2021-03-01 20:08:37 +00:00
|
|
|
|
|
|
|
&.module-ConversationHeader--narrow {
|
2023-05-04 18:04:22 +00:00
|
|
|
--button-spacing: 4px;
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
|
2021-03-08 22:42:29 +00:00
|
|
|
-webkit-app-region: var(--draggable-app-region);
|
2021-03-01 20:08:37 +00:00
|
|
|
padding-top: var(--title-bar-drag-area-height);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
height: calc(#{$header-height} + var(--title-bar-drag-area-height));
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-02;
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__back-icon {
|
|
|
|
$transition: 250ms ease-out;
|
|
|
|
|
|
|
|
display: inline-block;
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
min-width: 20px;
|
|
|
|
margin-inline-start: -20px;
|
2021-03-01 20:08:37 +00:00
|
|
|
vertical-align: text-bottom;
|
|
|
|
border: none;
|
|
|
|
opacity: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
transition: margin-inline-start $transition, opacity $transition;
|
2021-03-01 20:08:37 +00:00
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--show {
|
|
|
|
opacity: 1;
|
2023-05-04 18:04:22 +00:00
|
|
|
margin-inline: 24px 6px;
|
2023-05-12 20:50:19 +00:00
|
|
|
-webkit-app-region: no-drag;
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2021-03-01 20:08:37 +00:00
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2021-03-01 20:08:37 +00:00
|
|
|
$color-gray-02
|
|
|
|
);
|
|
|
|
}
|
2021-09-17 20:57:54 +00:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-ultramarine-light;
|
|
|
|
}
|
|
|
|
}
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
$padding: 4px 12px;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 4px var(--button-spacing);
|
2021-03-01 20:08:37 +00:00
|
|
|
padding: $padding;
|
|
|
|
overflow: hidden;
|
|
|
|
min-width: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
transition: margin-inline-end 200ms ease-out;
|
2021-03-01 20:08:37 +00:00
|
|
|
|
|
|
|
&--clickable {
|
|
|
|
@include button-reset;
|
2022-08-25 23:56:20 +00:00
|
|
|
flex: 1;
|
2021-03-01 20:08:37 +00:00
|
|
|
border-radius: 4px;
|
2021-03-08 22:42:29 +00:00
|
|
|
-webkit-app-region: no-drag;
|
2021-03-01 20:08:37 +00:00
|
|
|
|
|
|
|
// These are clobbered by button-reset:
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 4px var(--button-spacing);
|
2021-03-01 20:08:37 +00:00
|
|
|
padding: $padding;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-start: 0;
|
2021-03-01 20:08:37 +00:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-ultramarine;
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
color: $color-ultramarine-light;
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__avatar {
|
|
|
|
min-width: 32px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 12px;
|
2021-03-01 20:08:37 +00:00
|
|
|
padding-top: 4px;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__info {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
@include font-body-1-bold;
|
2023-05-04 18:04:22 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-03-01 20:08:37 +00:00
|
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
&__in-contacts-icon {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 4px;
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__subtitle {
|
|
|
|
display: flex;
|
|
|
|
@include font-body-2;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__expiration {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include icon-element('../images/icons/v3/timer/timer-compact.svg');
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 12px;
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__verified {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include icon-element('../images/icons/v3/check/check-compact.svg');
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:16:04 +00:00
|
|
|
&__button {
|
|
|
|
$icon-size: 32px;
|
|
|
|
|
2021-03-08 22:42:29 +00:00
|
|
|
-webkit-app-region: no-drag;
|
2021-03-03 01:16:04 +00:00
|
|
|
@include button-reset;
|
2022-06-13 23:37:29 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-03-03 01:16:04 +00:00
|
|
|
border-radius: 4px;
|
|
|
|
border: 2px solid transparent;
|
|
|
|
display: flex;
|
|
|
|
height: $icon-size;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: var(--button-spacing);
|
2021-03-03 01:16:04 +00:00
|
|
|
min-width: $icon-size;
|
|
|
|
opacity: 0;
|
|
|
|
padding: 2px;
|
2023-04-20 17:03:43 +00:00
|
|
|
transition: margin-inline-end 200ms ease-out, opacity 200ms ease-out,
|
2021-03-03 01:16:04 +00:00
|
|
|
background 100ms ease-out;
|
|
|
|
width: $icon-size;
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--show {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2021-07-20 20:18:35 +00:00
|
|
|
&--show-disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:16:04 +00:00
|
|
|
@include light-theme {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: $color-gray-02;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: $color-gray-80;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
2021-03-01 20:08:37 +00:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
border-color: $color-ultramarine;
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:focus {
|
2021-05-28 16:15:17 +00:00
|
|
|
border-color: $color-ultramarine-light;
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-13 23:37:29 +00:00
|
|
|
@mixin normal-button($icon, $size) {
|
2021-03-03 01:16:04 +00:00
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2022-06-13 23:37:29 +00:00
|
|
|
width: $size;
|
|
|
|
height: $size;
|
|
|
|
|
2021-03-03 01:16:04 +00:00
|
|
|
@include light-theme {
|
2022-06-13 23:37:29 +00:00
|
|
|
@include color-svg($icon, $color-gray-75);
|
2021-03-03 01:16:04 +00:00
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
2022-06-13 23:37:29 +00:00
|
|
|
@include color-svg($icon, $color-gray-90);
|
2021-03-03 01:16:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
2022-06-13 23:37:29 +00:00
|
|
|
@include color-svg($icon, $color-gray-15);
|
2021-03-03 01:16:04 +00:00
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
2022-06-13 23:37:29 +00:00
|
|
|
@include color-svg($icon, $color-gray-02);
|
2021-03-03 01:16:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-01 20:08:37 +00:00
|
|
|
|
2021-03-03 01:16:04 +00:00
|
|
|
&--video {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include normal-button('../images/icons/v3/video/video.svg', 20px);
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:16:04 +00:00
|
|
|
&--audio {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include normal-button('../images/icons/v3/phone/phone.svg', 20px);
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:16:04 +00:00
|
|
|
&--search {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include normal-button('../images/icons/v3/search/search.svg', 20px);
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:16:04 +00:00
|
|
|
&--more {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include normal-button('../images/icons/v3/more/more.svg', 20px);
|
|
|
|
margin-inline-end: 16px;
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:16:04 +00:00
|
|
|
&--join-call {
|
2021-07-16 18:04:57 +00:00
|
|
|
$background: $color-accent-green;
|
|
|
|
|
2021-03-01 20:08:37 +00:00
|
|
|
@include font-body-1;
|
2021-04-30 22:58:57 +00:00
|
|
|
@include rounded-corners;
|
2021-03-01 20:08:37 +00:00
|
|
|
align-items: center;
|
2021-07-16 18:04:57 +00:00
|
|
|
background-color: $background;
|
2021-03-01 20:08:37 +00:00
|
|
|
color: $color-white;
|
|
|
|
display: flex;
|
|
|
|
outline: none;
|
|
|
|
overflow: hidden;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 5px;
|
|
|
|
padding-inline: 18px;
|
2021-03-01 20:08:37 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
user-select: none;
|
2021-03-03 01:16:04 +00:00
|
|
|
width: auto;
|
2021-03-01 20:08:37 +00:00
|
|
|
|
|
|
|
&:before {
|
2023-05-04 18:04:22 +00:00
|
|
|
$icon-size: 16px;
|
2021-03-03 01:16:04 +00:00
|
|
|
|
2021-03-01 20:08:37 +00:00
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/video/video-compact-fill.svg',
|
2021-03-01 20:08:37 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: $icon-size;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 5px;
|
2021-03-01 20:08:37 +00:00
|
|
|
min-width: $icon-size;
|
|
|
|
width: $icon-size;
|
|
|
|
}
|
2021-07-16 18:04:57 +00:00
|
|
|
|
|
|
|
// Override hover state coming from __button above.
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: darken($background, 16%);
|
|
|
|
}
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-01 20:45:43 +00:00
|
|
|
|
|
|
|
&__disappearing-timer__item {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-start: 25px;
|
2021-06-01 20:45:43 +00:00
|
|
|
|
|
|
|
&--active {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-start: 0px;
|
2023-05-04 18:04:22 +00:00
|
|
|
@include icon-element('../images/icons/v3/check/check-compact.svg', 12px);
|
2021-06-01 20:45:43 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-01 20:08:37 +00:00
|
|
|
}
|