Skip to content

Commit

Permalink
issue: Change css style of number of issue
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Mar 16, 2017
1 parent 52b787e commit 6ed18f2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
34 changes: 21 additions & 13 deletions app/assets/stylesheets/less/_page.less
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,34 @@

&.gnb-usermenu-item {
font-size: 14px;
color: @low-white;
color: #a2a2a2;

a {
line-height: 30px;
padding:5px 10px;
text-decoration: none;
.transition(color 0.15s);

&:hover {
color: @blue;
color: #fcfcfc;
.counter-badge {
color: #fcfcfc;
}
}

.counter-badge {
font-family: @fixed-font-family;
display: inline-block;
font-size: 12px;
min-width: 8px;
padding: 2px 2px 0 2px;
text-align: center;
color: black;
background-color: rgba(255, 115, 50, 0.75);
border-radius: 5px;
line-height: 14px;
vertical-align: middle;
margin-left: 4px;
margin-bottom: 3px;
}

&.usermenu-icon-button {
Expand Down Expand Up @@ -547,16 +565,6 @@
.border-radius(9px);
}

.counter-badge {
display: inline-block;
font-size: 12px;
padding: 0 3px;
text-align: center;
font-family: @fixed-font-family;
.border-radius(3px);
vertical-align: middle;
}

.project-new-posting {
font-size: 12px;
line-height: 14px;
Expand Down
2 changes: 1 addition & 1 deletion app/views/common/usermenu.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@myOpenIssueCount = @{
val count = Issue.countOpenIssuesByUser(UserApp.currentUser())
if(count > 0) {
Html("<span class=\"counter-badge\">(" + count + ")</span>")
Html("<span class=\"counter-badge\">" + count + "</span>")
}
}

Expand Down

0 comments on commit 6ed18f2

Please sign in to comment.