left-sidebar: Simplify and make more uniform the "All streams" header.

The issue before was that the left sidebar would become too tall for
the screen because the standard header that has “STREAMS” and buttons
is 20px tall, and this one is 30px tall. This makes it much shorter,
changes the text to be the same style as the “STREAMS” text (medium
grey, uppercase text).

The markup is then fixed to be significantly less verbose than before —
changing a list to just a simple link.
This commit is contained in:
Brock Whittaker
2017-09-26 11:36:37 -07:00
committed by Tim Abbott
parent 38b3eeb332
commit 55bc9e3f76
2 changed files with 14 additions and 14 deletions

View File

@@ -381,11 +381,6 @@ li.expanded_private_message a {
color: hsl(0, 0%, 20%); color: hsl(0, 0%, 20%);
} }
.all-streams-padding {
padding-top: 5px;
margin-bottom: -5px;
}
.pm-box, .pm-box,
.topic-box { .topic-box {
display: block; display: block;
@@ -412,9 +407,20 @@ li.expanded_private_message a {
} }
#topics_header { #topics_header {
border-top: 1px solid hsl(0, 0%, 88%);
margin-top: 5px;
margin-right: 10px; margin-right: 10px;
color: hsl(0, 0%, 43%);
}
#topics_header a {
color: inherit;
text-decoration: none;
text-transform: uppercase;
}
#topics_header a i {
margin-right: 5px;
position: relative;
top: 1px;
} }
#streams_header { #streams_header {

View File

@@ -51,13 +51,7 @@
<i id="join_unsub_stream" class="icon-vector-plus" data-toggle="tooltip" title="{{ _('Join stream')}}" ></i> <i id="join_unsub_stream" class="icon-vector-plus" data-toggle="tooltip" title="{{ _('Join stream')}}" ></i>
</div> </div>
<div id="topics_header"> <div id="topics_header">
<div class="all-streams-padding"> <a href="" class="show-all-streams"> <i class="icon-vector-chevron-left"></i>{{ _('All streams') }}</a>
<ul class="filters">
<li data-name="all-streams">
<a href="" class="show-all-streams"> <i class="icon-vector-chevron-left"></i>{{ _('All streams') }}</a>
</li>
</ul>
</div>
</div> </div>
<div id="stream-filters-container" class="scrolling_list"> <div id="stream-filters-container" class="scrolling_list">
<div class="input-append notdisplayed"> <div class="input-append notdisplayed">