File tree 3 files changed +37
-8
lines changed
3 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 33
33
34
34
/* list category */
35
35
.label-editor-list {
36
+ display : flex;
37
+ flex-direction : column;
36
38
max-height : 18.75em ;
37
39
-webkit-overflow-scrolling : touch;
38
40
overflow-x : hidden;
52
54
cursor : pointer;
53
55
display : block;
54
56
margin : 0 ;
57
+ order : 2 ;
55
58
padding : calc (var (--unit-space ) * .75 ) calc (var (--unit-space ) * .5 );
56
59
}
57
60
61
+ .label-editor-list-item .small {
62
+ vertical-align : middle;
63
+ }
64
+
65
+ .label-editor-list-item ::before {
66
+ content : "☐" ;
67
+ display : inline-block;
68
+ font-size : 1.5em ;
69
+ margin-top : -4px ;
70
+ vertical-align : middle;
71
+ }
72
+
58
73
.label-editor-list-item : last-child {
59
74
border-bottom : 1px solid # ddd ;
60
75
}
64
79
.label-editor-list-item .focused {
65
80
border-color : Highlight;
66
81
border-style : solid;
67
- border-width : 2px ;
82
+ border-width : 2px 2 px 2 px 4 px ;
68
83
outline : none;
69
84
}
70
85
71
86
/* checkbox */
72
87
.label-editor-list-item-checkbox {
88
+ clip : rect (0 0 0 0 );
89
+ height : 0 ;
73
90
margin : 0 ;
74
91
padding : 0 ;
92
+ position : absolute;
93
+ visibility : hidden;
94
+ width : 0 ;
95
+ }
96
+
97
+ .label-editor-list-item-checkbox : checked + .label-editor-list-item ::before {
98
+ content : "︎☑︎" ;
99
+ }
100
+
101
+ .label-editor-list-item-checkbox : checked + .label-editor-list-item {
102
+ order : 1 ;
75
103
}
76
104
77
105
/* Launch Category Editor */
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ issues.CategoryEditorView = Backbone.View.extend({
118
118
// hide the non-filter matches
119
119
_ . each ( toHide , function ( name ) {
120
120
$ ( "input[name=" + escape ( name ) + "]" )
121
- . closest ( ".label-editor-list-item" )
121
+ . next ( ".label-editor-list-item" )
122
122
. hide ( ) ;
123
123
} ) ;
124
124
} , 100 ) ,
Original file line number Diff line number Diff line change 11
11
</div >
12
12
<div class =" label-editor-list" tabindex =" -1" >
13
13
<% _.each(labels, function(label) { %>
14
- <label class =" label-editor-list-item label-<%= label.remoteName %>" tabindex =" 0" >
15
- <input class =" label-editor-list-item-checkbox"
16
- type =" checkbox" name =" <%= label.name %>"
17
- data-color =" <%=label.color%>"
18
- data-remotename =" <%= label.remoteName %>"
19
- tabindex =" -1" >
14
+ <input class =" label-editor-list-item-checkbox"
15
+ type =" checkbox" name =" <%= label.name %>"
16
+ id =" label-<%= label.remoteName %>"
17
+ data-color =" <%=label.color%>"
18
+ data-remotename =" <%= label.remoteName %>"
19
+ tabindex =" -1" >
20
+ <label class =" label-editor-list-item label-<%= label.remoteName %>" for =" label-<%= label.remoteName %>" tabindex =" 0" >
20
21
<span class =" small" ><%= label.name %></span >
21
22
</label >
22
23
<% }); %>
You can’t perform that action at this time.
0 commit comments