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 {
|
.module-main-header {
|
||||||
height: $header-height;
|
height: $header-height;
|
||||||
width: $left-pane-width;
|
width: 100%;
|
||||||
|
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
|
padding-right: 16px;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
& > * {
|
||||||
|
margin-right: 12px;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.module-main-header__search {
|
&__search {
|
||||||
margin-left: 12px;
|
flex-grow: 1;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
|
||||||
.module-main-header__search__input {
|
&__input {
|
||||||
|
flex-grow: 1;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
|
|
||||||
// 320 - 28 (avatar) - 32 (left/right margin) - 12 (space to avatar)
|
|
||||||
width: 248px;
|
|
||||||
|
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
padding-right: 5px;
|
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;
|
border: solid 1px $ultramarine-ui-light;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.module-main-header__search__input--with-text {
|
&--with-text {
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.module-main-header__search__input--in-conversation {
|
&--in-conversation {
|
||||||
padding-left: 50px;
|
padding-left: 50px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.module-main-header__search__icon {
|
&__icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
top: 6px;
|
top: 6px;
|
||||||
|
@ -4351,7 +4358,7 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.module-main-header__search__in-conversation-pill {
|
&__in-conversation-pill {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 3px;
|
left: 3px;
|
||||||
top: 3px;
|
top: 3px;
|
||||||
|
@ -4375,8 +4382,8 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
||||||
@include dark-theme {
|
@include dark-theme {
|
||||||
background-color: $color-gray-75;
|
background-color: $color-gray-75;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.module-main-header__search__in-conversation-pill__avatar-container {
|
&__avatar-container {
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
|
@ -4384,7 +4391,8 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
||||||
|
|
||||||
background-color: $ultramarine-ui-light;
|
background-color: $ultramarine-ui-light;
|
||||||
}
|
}
|
||||||
.module-main-header__search__in-conversation-pill__avatar {
|
|
||||||
|
&__avatar {
|
||||||
height: 16px;
|
height: 16px;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
|
|
||||||
|
@ -4401,7 +4409,8 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.module-main-header__search__in-conversation-pill__x-button {
|
|
||||||
|
&__x-button {
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
|
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
@ -4414,8 +4423,9 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
||||||
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.module-main-header__search__cancel-icon {
|
&__cancel-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
|
@ -4429,6 +4439,8 @@ $timer-icons: '55', '50', '45', '40', '35', '30', '25', '20', '15', '10', '05',
|
||||||
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Module: Image
|
// Module: Image
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue