Use flexbox to lay out main header
This commit is contained in:
parent
8ccf402497
commit
b47d8d8b2b
1 changed files with 147 additions and 135 deletions
|
@ -4277,26 +4277,33 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
|||
|
||||
.module-main-header {
|
||||
height: $header-height;
|
||||
width: $left-pane-width;
|
||||
width: 100%;
|
||||
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.module-main-header__search {
|
||||
margin-left: 12px;
|
||||
& > * {
|
||||
margin-right: 12px;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__search {
|
||||
flex-grow: 1;
|
||||
position: relative;
|
||||
}
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
.module-main-header__search__input {
|
||||
&__input {
|
||||
flex-grow: 1;
|
||||
height: 28px;
|
||||
|
||||
// 320 - 28 (avatar) - 32 (left/right margin) - 12 (space to avatar)
|
||||
width: 248px;
|
||||
|
||||
padding-left: 30px;
|
||||
padding-right: 5px;
|
||||
|
||||
|
@ -4324,17 +4331,17 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
|||
border: solid 1px $ultramarine-ui-light;
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.module-main-header__search__input--with-text {
|
||||
&--with-text {
|
||||
padding-right: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.module-main-header__search__input--in-conversation {
|
||||
&--in-conversation {
|
||||
padding-left: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.module-main-header__search__icon {
|
||||
&__icon {
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
top: 6px;
|
||||
|
@ -4349,9 +4356,9 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
|||
@include dark-theme {
|
||||
@include color-svg('../images/icons/v2/search-16.svg', $color-gray-25);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.module-main-header__search__in-conversation-pill {
|
||||
&__in-conversation-pill {
|
||||
position: absolute;
|
||||
left: 3px;
|
||||
top: 3px;
|
||||
|
@ -4375,16 +4382,17 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
|||
@include dark-theme {
|
||||
background-color: $color-gray-75;
|
||||
}
|
||||
}
|
||||
.module-main-header__search__in-conversation-pill__avatar-container {
|
||||
|
||||
&__avatar-container {
|
||||
margin-left: 4px;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
border-radius: 8px;
|
||||
|
||||
background-color: $ultramarine-ui-light;
|
||||
}
|
||||
.module-main-header__search__in-conversation-pill__avatar {
|
||||
}
|
||||
|
||||
&__avatar {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
|
||||
|
@ -4400,8 +4408,9 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
|||
$color-gray-05
|
||||
);
|
||||
}
|
||||
}
|
||||
.module-main-header__search__in-conversation-pill__x-button {
|
||||
}
|
||||
|
||||
&__x-button {
|
||||
margin-left: 2px;
|
||||
|
||||
height: 16px;
|
||||
|
@ -4413,9 +4422,10 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
|||
@include dark-theme {
|
||||
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.module-main-header__search__cancel-icon {
|
||||
&__cancel-icon {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 5px;
|
||||
|
@ -4428,6 +4438,8 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
|||
@include dark-theme {
|
||||
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Module: Image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue