Skip to content

Commit

Permalink
css: Change title prefix css style
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Aug 10, 2017
1 parent 447cf4d commit 8e27413
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
17 changes: 13 additions & 4 deletions app/assets/stylesheets/less/_page.less
Original file line number Diff line number Diff line change
Expand Up @@ -6473,10 +6473,19 @@ div.diff-body[data-outdated="true"] tr:hover .icon-comment {
}

.title-prefix {
font-size: 15px;
font-weight: bold;
border-radius: 2px;
color: #3592B5;
font-size: 15px;
font-weight: bold;
border-radius: 2px;
color: #3592B5;
&:hover {
background-color: #3592B5;
color: white;
}
}

.title-prefix-hover {
background-color: #3592B5;
color: white;
}

.send-notification-check {
Expand Down
9 changes: 9 additions & 0 deletions app/views/board/list.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@
$('.board-labels select').on('change', function(e){
$("#option_form").submit();
});
var $titlePrefix = $(".title-prefix");
$titlePrefix
.on("mouseover", function (e) {
$(".title-prefix:contains('" + e.target.innerText + "')")
.addClass("title-prefix-hover");
})
.on("mouseleave", function (e) {
$titlePrefix.removeClass("title-prefix-hover");
});
});
</script>
@common.select2()
Expand Down
10 changes: 10 additions & 0 deletions app/views/issue/list.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
yobi.ShortcutKey.setKeymapLink({
"N": "@routes.IssueApp.newIssueForm(project.owner, project.name)"
});

var $titlePrefix = $(".title-prefix");
$titlePrefix
.on("mouseover", function (e) {
$(".title-prefix:contains('" + e.target.innerText + "')")
.addClass("title-prefix-hover");
})
.on("mouseleave", function (e) {
$titlePrefix.removeClass("title-prefix-hover");
});
});
</script>
}

0 comments on commit 8e27413

Please sign in to comment.