Skip to content

Commit

Permalink
Another hotfix to sidebar notification CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
bnvk committed Dec 27, 2013
1 parent 9cfe11b commit 79cc55d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 5 additions & 2 deletions static/default/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -6083,6 +6083,9 @@ div.content-normal {
#sidebar a:active {
color: #a31304;
}
#sidebar a.sidebar-tag {
position: relative;
}
#sidebar span.sidebar-icon {
position: relative;
top: -2px;
Expand All @@ -6105,15 +6108,15 @@ div.content-normal {
display: inline-block;
white-space: nowrap;
overflow: hidden;
position: relative;
}
#sidebar span.sidebar-notification {
float: right;
padding: .6em;
font-size: 11px;
line-height: 11px;
color: #ffffff;
position: relative;
position: absolute;
right: 0px;
}
#sidevar .navigation-on a:hover span.sidebar-notification {
color: #ffffff !important;
Expand Down
4 changes: 2 additions & 2 deletions static/default/html/layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
{% else %}
<li class="sidebar-tags-draggable {{ navigation_on(result.search_tags, tag.slug) }}" data-tag_name="{{tag.name}}" data-tag_slug="{{tag.slug}}" data-tag_stat_new="{{tag.stats.new}}" data-tag_stat_all="{{tag.stats.all}}">
{% endif %}
<a href="{{tag.url}}" title="{{tag.all}} {{_("emails")}}">
<a href="{{tag.url}}" title="{{tag.all}} {{_("emails")}}" class="sidebar-tag">
<span class="sidebar-icon icon-{{tag.slug}}"></span>
{{tag.name}}
<span class="sidebar-tag">{{tag.name}}</span>
{% if tag.stats.new > 0 %}
<span class="sidebar-notification notification-important">{{ friendly_number(tag.stats.new) }}</span>
{% endif %}
Expand Down
8 changes: 6 additions & 2 deletions static/default/less/app-web/sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@

#sidebar a:active { color: @red; }

#sidebar a.sidebar-tag {
position: relative;
}

#sidebar span.sidebar-icon {
position: relative;
top: -2px;
Expand All @@ -64,7 +68,6 @@
display: inline-block;
white-space: nowrap;
overflow: hidden;
position: relative;
}

#sidebar span.sidebar-notification {
Expand All @@ -73,7 +76,8 @@
font-size: 11px;
line-height: 11px;
color: @white;
position: relative;
position: absolute;
right: 0px;
}

#sidevar .navigation-on a:hover span.sidebar-notification {
Expand Down

0 comments on commit 79cc55d

Please sign in to comment.