Update conversation header design

This commit is contained in:
Evan Hahn 2021-03-01 14:08:37 -06:00 committed by Josh Perez
parent d7d70da315
commit dfa5005e7d
8 changed files with 514 additions and 487 deletions

View file

@ -2853,336 +2853,6 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
}
}
// Module: Conversation Header
.module-conversation-header {
padding-left: 16px;
padding-right: 16px;
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;
}
}
.module-conversation-header__back-icon {
$transition: 250ms ease-out;
display: inline-block;
margin-left: -10px;
margin-right: -10px;
width: 24px;
height: 24px;
min-width: 24px;
vertical-align: text-bottom;
border: none;
opacity: 0;
transition: margin-right $transition, opacity $transition;
&:disabled {
cursor: default;
}
&--show {
opacity: 1;
margin-right: 6px;
}
@include light-theme {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$color-gray-90
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$color-gray-02
);
}
}
.module-conversation-header__title-container {
flex-grow: 1;
flex-shrink: 1;
min-width: 0;
display: block;
height: $header-height;
}
.module-conversation-header__title-flex {
margin-left: auto;
margin-right: auto;
display: inline-flex;
flex-direction: row;
align-items: center;
height: $header-height;
max-width: 100%;
}
.module-conversation-header__title-clickable {
cursor: pointer;
&:focus {
@include mouse-mode {
outline: none;
}
}
}
.module-conversation-header__note-to-self {
@include dark-theme {
color: $color-gray-02;
}
}
.module-conversation-header__avatar {
min-width: 32px;
margin-right: 4px;
}
.module-conversation-header__title {
margin-left: 6px;
min-width: 0;
@include font-body-1-bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
-webkit-user-select: text;
@include light-theme {
color: $color-gray-90;
}
@include dark-theme {
color: $color-gray-02;
}
}
.module-conversation-header__contacts-icon {
display: inline-block;
height: 15px;
width: 15px;
margin-bottom: 3px;
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',
$ultramarine-ui-light
);
}
}
}
.module-conversation-header__title__profile-name {
@include font-body-1-bold-italic;
}
.module-conversation-header__title__verified-icon {
display: inline-block;
width: 1.25em;
height: 1.25em;
vertical-align: text-bottom;
@include light-theme {
@include color-svg('../images/icons/v2/check-24.svg', $color-gray-90);
}
@include dark-theme {
@include color-svg('../images/icons/v2/check-24.svg', $color-gray-02);
}
}
.module-conversation-header__expiration {
display: flex;
flex-direction: row;
align-items: center;
padding-left: 8px;
padding-right: 8px;
transition: opacity 250ms ease-out;
&--hidden {
opacity: 0;
}
}
.module-conversation-header__expiration__clock-icon {
height: 24px;
width: 24px;
display: inline-block;
@include light-theme {
@include color-svg('../images/icons/v2/timer-24.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/icons/v2/timer-24.svg', $color-gray-25);
}
}
.module-conversation-header__expiration__setting {
margin-left: 5px;
text-align: center;
}
.module-conversation-header__more-button {
height: 24px;
width: 24px;
margin-left: 12px;
border: none;
opacity: 0;
transition: opacity 250ms ease-out;
&:disabled {
cursor: default;
}
&--show {
opacity: 1;
}
@include light-theme {
@include color-svg(
'../images/icons/v2/chevron-down-24.svg',
$color-gray-75
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/chevron-down-24.svg',
$color-gray-15
);
}
}
.module-conversation-header__search-button {
height: 24px;
width: 24px;
margin-left: 12px;
border: none;
opacity: 0;
transition: opacity 250ms ease-out;
&:disabled {
cursor: default;
}
&--show {
opacity: 1;
}
@include light-theme {
@include color-svg('../images/icons/v2/search-24.svg', $color-gray-75);
}
@include dark-theme {
@include color-svg('../images/icons/v2/search-24.svg', $color-gray-15);
}
}
.module-conversation-header__calling-button {
$icon-size: 24px;
margin-left: 12px;
border: none;
opacity: 0;
transition: opacity 250ms ease-out;
&:disabled {
cursor: default;
}
&--show {
opacity: 1;
}
&--video {
@include light-theme {
@include color-svg(
'../images/icons/v2/video-outline-24.svg',
$color-gray-75
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/video-solid-24.svg',
$color-gray-15
);
}
height: $icon-size;
width: $icon-size;
}
&--audio {
@include light-theme {
@include color-svg(
'../images/icons/v2/phone-right-outline-24.svg',
$color-gray-75
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/phone-right-solid-24.svg',
$color-gray-15
);
}
height: $icon-size;
width: $icon-size;
}
&--join {
@include font-body-1;
align-items: center;
background-color: $color-accent-green;
border-radius: 9999px; // This ensures the borders are completely rounded. (A value like 100% would make it an ellipse.)
color: $color-white;
display: flex;
outline: none;
padding: 5px 18px;
@include keyboard-mode {
&:focus {
box-shadow: 0px 0px 0px 4px $ultramarine-ui-light;
}
}
&:before {
@include color-svg('../images/icons/v2/video-solid-24.svg', $color-white);
content: '';
display: block;
height: $icon-size;
margin-right: 5px;
width: $icon-size;
}
}
}
// Module: Conversation Details
.conversation-details-panel {