Skip to content

Commit

Permalink
Final tweaks for notifications UI
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Nov 7, 2012
1 parent 6c18d71 commit 1b0d24c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions ckan/public/base/less/masthead.less
@@ -1,6 +1,10 @@
@mastheadPadding: 5px 10px 3px;
@notificationsBg: #C9403A;

@menuActiveBg: mix(@mastheadBackgroundColorStart, @mastheadLinkColor, 95%);
@menuActiveHi: mix(@mastheadBackgroundColorStart, @mastheadLinkColor, 85%);
@menuActiveLo: darken(@menuActiveBg, 10%);

.masthead() {
.clearfix();
color: @mastheadTextColor;
Expand Down Expand Up @@ -67,6 +71,11 @@ header.masthead {
font-size: 12px;
font-weight: bold;
padding: 4px 10px;
.border-radius(3px);
&.active {
background-color: @menuActiveBg;
box-shadow: 0 -1px 0 @menuActiveLo, 0 1px 0 @menuActiveHi;
}
}
}
}
Expand Down Expand Up @@ -164,6 +173,10 @@ header.masthead {
&.authed {
margin: 0 0 0 30px;
}
&.not-authed {
padding-top: 2px;
padding-bottom: 2px;
}
}

.dropdown-menu {
Expand All @@ -178,10 +191,6 @@ header.masthead {
}
}
}
.notifications-dropdown-menu {
margin-right: 4px;
min-width: 300px;
}

.debug {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/header.html
Expand Up @@ -30,7 +30,7 @@ <h1>
{% if c.userobj %}
<div class="section account avatar authed" data-module="me" data-me="{{ c.userobj.id }}">
<div class="dropdown">
<a href="{{ h.url_for(controller='user', action='dashboard') }}" class="button notifications{% if c.new_activities > 0 %} notifications-important{% endif %}">
<a href="{{ h.url_for(controller='user', action='dashboard') }}" class="button notifications{% if c.new_activities > 0 %} notifications-important{% endif %}" title="{{ c.new_activities }} {{ _('new notifications') }}">
{{ c.new_activities }}
</a>
</div>
Expand Down

0 comments on commit 1b0d24c

Please sign in to comment.