File tree 2 files changed +31
-8
lines changed
2 files changed +31
-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
}
70
85
71
86
/* checkbox */
72
87
.label-editor-list-item-checkbox {
73
- margin : 0 ;
74
- padding : 0 ;
88
+ display : none;
89
+ }
90
+
91
+ .label-editor-list-item-checkbox : checked + .label-editor-list-item ::before {
92
+ content : "︎☑︎" ;
93
+ }
94
+
95
+ .label-editor-list-item-checkbox : checked + .label-editor-list-item {
96
+ order : 1 ;
75
97
}
76
98
77
99
/* Launch Category Editor */
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