Skip to content
Snippets Groups Projects
Commit 27d6c59a authored by Karl Prieb's avatar Karl Prieb
Browse files

new toolbar search style

parent 16743fb2
No related branches found
No related tags found
No related merge requests found
...@@ -1324,7 +1324,7 @@ label.required::after { ...@@ -1324,7 +1324,7 @@ label.required::after {
.rooms-list { .rooms-list {
direction: rtl; direction: rtl;
position: absolute; position: absolute;
top: @header-min-height; top: @header-min-height + @toolbar-height;
bottom: @footer-min-height; bottom: @footer-min-height;
width: 100%; width: 100%;
overflow-x: hidden; overflow-x: hidden;
...@@ -1337,7 +1337,6 @@ label.required::after { ...@@ -1337,7 +1337,6 @@ label.required::after {
padding-left: 8px; padding-left: 8px;
padding-bottom: 1em; padding-bottom: 1em;
position: relative; position: relative;
padding-top: 50px;
} }
} }
...@@ -1372,7 +1371,7 @@ label.required::after { ...@@ -1372,7 +1371,7 @@ label.required::after {
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
z-index: 2; z-index: 3;
cursor: pointer; cursor: pointer;
min-height: @header-min-height; min-height: @header-min-height;
height: @header-min-height; height: @header-min-height;
...@@ -1587,11 +1586,11 @@ label.required::after { ...@@ -1587,11 +1586,11 @@ label.required::after {
-webkit-justify-content: center; -webkit-justify-content: center;
&.top-unread-rooms { &.top-unread-rooms {
top: 105px; top: @header-min-height + @toolbar-height;
} }
&.bottom-unread-rooms { &.bottom-unread-rooms {
bottom: 70px; bottom: @footer-min-height;
} }
i { i {
...@@ -1614,15 +1613,15 @@ label.required::after { ...@@ -1614,15 +1613,15 @@ label.required::after {
} }
.toolbar { .toolbar {
position: fixed; position: absolute;
width: 244px; width: 100%;
z-index: 3; z-index: 2;
top: 60px; top: @header-min-height;
padding-top: 10px; height: @toolbar-height;
} }
.toolbar-search { .toolbar-search {
padding-right: 8px; margin: 10px 8px;
position: relative; position: relative;
} }
...@@ -1637,7 +1636,7 @@ label.required::after { ...@@ -1637,7 +1636,7 @@ label.required::after {
.toolbar-search__icon--cancel { .toolbar-search__icon--cancel {
left: auto; left: auto;
right: 8px; right: 0;
opacity: 0; opacity: 0;
transition: opacity 0.3s; transition: opacity 0.3s;
} }
...@@ -2468,22 +2467,44 @@ label.required::after { ...@@ -2468,22 +2467,44 @@ label.required::after {
} }
&.search-results-list { &.search-results-list {
top: 25px; top: 0;
height: calc(~"100vh - 200px"); height: calc(~"100vh -" @header-min-height + @toolbar-height + @footer-min-height);
overflow-y: auto; overflow-y: auto;
box-shadow: none; box-shadow: none;
border-radius: 0; border-radius: 0;
padding: 25px 0 0 8px;
direction: rtl;
.popup-item { .popup-item {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
padding-left: 6px; padding-left: 6px;
position: relative;
direction: ltr;
height: 30px;
i::before {
margin-right: 0;
}
}
.room-title {
line-height: 30px;
font-size: 15px;
}
.bold {
font-weight: 700;
} }
.unread { .unread {
top: 8px; top: 8px;
} }
.loading-animation {
position: relative;
}
} }
} }
......
...@@ -787,10 +787,6 @@ ...@@ -787,10 +787,6 @@
.left(12px); .left(12px);
} }
.toolbar-search {
padding: 0 0 0 8px;
}
.toolbar-search__icon { .toolbar-search__icon {
right: 0; right: 0;
} }
...@@ -801,8 +797,10 @@ ...@@ -801,8 +797,10 @@
} }
.message-popup.search-results-list { .message-popup.search-results-list {
direction: ltr;
.popup-item { .popup-item {
padding-right: 6px; direction: rtl;
} }
} }
} }
@header-min-height: 60px; @header-min-height: 60px;
@toolbar-height: 55px;
@footer-min-height: 70px; @footer-min-height: 70px;
@rooms-box-width: 260px; @rooms-box-width: 260px;
@flex-tab-width: 400px; @flex-tab-width: 400px;
......
...@@ -543,8 +543,7 @@ a:hover { ...@@ -543,8 +543,7 @@ a:hover {
background-color: @tertiary-font-color; background-color: @tertiary-font-color;
} }
.rooms-list, .rooms-list {
.toolbar {
background-color: lighten(@primary-background-color, 2.5%); background-color: lighten(@primary-background-color, 2.5%);
} }
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
{{> accountBox }} {{> accountBox }}
</header> </header>
{{#if currentUser}} {{#if currentUser}}
{{> toolbar}}
<div class="unread-rooms background-primary-action-color color-primary-action-contrast top-unread-rooms hidden"> <div class="unread-rooms background-primary-action-color color-primary-action-contrast top-unread-rooms hidden">
{{_ "More_unreads"}} <i class="icon-up-big"></i> {{_ "More_unreads"}} <i class="icon-up-big"></i>
</div> </div>
<div class="rooms-list" aria-label="{{_ "Channels"}}" role="region"> <div class="rooms-list" aria-label="{{_ "Channels"}}" role="region">
<div class="wrapper"> <div class="wrapper">
{{> toolbar}}
{{> unreadRooms }} {{> unreadRooms }}
{{#each roomType}} {{#each roomType}}
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<template name="toolbarSearchList"> <template name="toolbarSearchList">
<i class="{{icon}} {{userStatus}}"></i> <i class="{{icon}} {{userStatus}}"></i>
{{name}} <span class="room-title {{#if unread}}bold{{/if}}">{{name}}</span>
{{#if unread}} {{#if unread}}
<span class="unread">{{unread}}</span> <span class="unread">{{unread}}</span>
{{/if}} {{/if}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment