Various search UI improvements

This commit is contained in:
Evan Hahn 2021-11-01 13:43:02 -05:00 committed by GitHub
parent 630394d91d
commit a9cb621eb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 835 additions and 577 deletions

View file

@ -2699,158 +2699,6 @@ button.ConversationDetails__action-button {
}
}
&__search {
flex-grow: 1;
position: relative;
display: flex;
flex-direction: row;
-webkit-app-region: no-drag;
&__input {
width: 100%;
height: 28px;
padding-left: 30px;
padding-right: 5px;
border-radius: 14px;
border: none;
@include font-body-2;
@include light-theme {
background-color: $color-gray-05;
color: $color-gray-90;
border: solid 1px $color-gray-02;
}
@include dark-theme {
color: $color-gray-05;
background-color: $color-gray-95;
border: solid 1px $color-gray-80;
}
&:placeholder {
color: $color-gray-45;
}
&:focus {
border: solid 1px $color-ultramarine;
outline: none;
}
&--with-text {
padding-right: 30px;
}
&--in-conversation {
padding-left: 50px;
}
}
&__icon {
position: absolute;
left: 8px;
top: 6px;
height: 16px;
width: 16px;
cursor: text;
@include light-theme {
@include color-svg('../images/icons/v2/search-16.svg', $color-gray-75);
}
@include dark-theme {
@include color-svg('../images/icons/v2/search-16.svg', $color-gray-25);
}
}
&__in-conversation-pill {
position: absolute;
left: 3px;
top: 3px;
bottom: 3px;
border-radius: 14px;
width: 42px;
display: flex;
flex-direction: row;
align-items: center;
// Overriding some default button styling
border: none;
padding: 0;
outline: none;
@include light-theme {
background-color: $color-gray-15;
}
@include dark-theme {
background-color: $color-gray-75;
}
&__avatar-container {
margin-left: 4px;
height: 16px;
width: 16px;
border-radius: 8px;
background-color: $color-ultramarine;
}
&__avatar {
height: 16px;
width: 16px;
@include light-theme {
@include color-svg(
'../images/icons/v2/profile-circle-outline-24.svg',
$color-white
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/profile-circle-solid-24.svg',
$color-gray-05
);
}
}
&__x-button {
margin-left: 2px;
height: 16px;
width: 16px;
@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-25);
}
}
}
&__cancel-icon {
position: absolute;
right: 8px;
top: 5px;
height: 18px;
width: 18px;
@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-25);
}
}
.module-left-pane--width-narrow & {
display: none;
}
}
&__compose-icon {
$icon: '../images/icons/v2/compose-outline-24.svg';
@ -5712,6 +5560,8 @@ button.module-image__border-overlay:focus {
&__text {
@include font-body-1-bold;
flex-grow: 1;
padding-right: 16px;
@include light-theme {
color: $color-gray-90;