File tree 5 files changed +40
-3
lines changed
5 files changed +40
-3
lines changed Original file line number Diff line number Diff line change
1
+ /*---------- Labels ----------*/
2
+
3
+ .wc-Labels {
4
+ display : inline-block;
5
+ border-width : 0 0 3px 0 ;
6
+ border-style : solid;
7
+ font-weight : 700 ;
8
+ border-color : transparent;
9
+ opacity : .7 ;
10
+ }
11
+ /* state */
12
+ .wc-Labels : hover {
13
+ text-decoration : none;
14
+ opacity : 1 ;
15
+ }
Original file line number Diff line number Diff line change 28
28
@import "components/hero.css" ;
29
29
@import "components/filter.css" ;
30
30
@import "components/pagination.css" ;
31
+ @import "components/labels.css" ;
31
32
/*----------Layout----------*/
32
33
@import "layout/body.css" ;
33
34
@import "layout/utilities.css" ;
Original file line number Diff line number Diff line change 69
69
/* modifier : label */
70
70
.IssueList-noResults-list-item--label {
71
71
list-style : none;
72
+ padding-top : .8em ;
73
+ }
74
+ /* labels item */
75
+ .IssueList-noResults-list-labelsItem {
76
+ display : inline-block;
72
77
}
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ issueList.PaginationControlsView = Backbone.View.extend({
236
236
issueList . IssueView = Backbone . View . extend ( {
237
237
el : $ ( '.js-issue-list' ) ,
238
238
events : {
239
- 'click .IssueItem- label' : 'labelSearch'
239
+ 'click .js-issue- label' : 'labelSearch' ,
240
240
} ,
241
241
initialize : function ( ) {
242
242
this . issues = new issueList . IssueCollection ( ) ;
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ <h2 class="wc-margin-bottom">Issues</h2>
70
70
</ p >
71
71
</ div >
72
72
< div class = "IssueItem-section" >
73
- < span class = "IssueItem-label" > < % _ . each ( issue . labels , function ( label ) { % >
74
- < a href = "#" class = "wc-bold " > < %= label . name % > </ a >
73
+ < span class = "IssueItem-label js-issue-label " > < % _ . each ( issue . labels , function ( label ) { % >
74
+ < a href = "#" class = "wc-Labels" title = "Labels : <%= label.name %> "> < %= label . name % > </ a >
75
75
< % } ) ; % > </ span >
76
76
</ div >
77
77
</ div >
@@ -83,6 +83,22 @@ <h2 class="wc-margin-bottom">Issues</h2>
83
83
< li class = "IssueList-noResults-list-item" > Check your spelling</ li >
84
84
< li class = "IssueList-noResults-list-item" > Try a more general search</ li >
85
85
< li class = "IssueList-noResults-list-item" > Filter by popular labels</ li >
86
+ < li class = "IssueList-noResults-list-item IssueList-noResults-list-item--label" >
87
+ < ul class = "r-ResetList IssueList-noResults-list-labels" >
88
+ < li class = "IssueList-noResults-list-labelsItem js-issue-label" >
89
+ < a class = "wc-Labels" href = "#" title = "Labels : android" style = "border-color: #48DE20" > android</ a >
90
+ </ li >
91
+ < li class = "IssueList-noResults-list-labelsItem js-issue-label" >
92
+ < a class = "wc-Labels" href = "#" title = "Labels : chrome" style = "border-color: #FFA500" > chrome</ a >
93
+ </ li >
94
+ < li class = "IssueList-noResults-list-labelsItem js-issue-label" >
95
+ < a class = "wc-Labels" href = "#" title = "Labels : firefox" style = "border-color: #E50000" > firefox</ a >
96
+ </ li >
97
+ < li class = "IssueList-noResults-list-labelsItem js-issue-label" >
98
+ < a class = "wc-Labels" href = "#" title = "Labels : ie" style = "border-color: #3E8AE5" > ie</ a >
99
+ </ li >
100
+ </ ul >
101
+ </ li >
86
102
</ ul >
87
103
</ div >
88
104
< % } %>
You can’t perform that action at this time.
0 commit comments