38
38
.panel .panel-title-name .anchor { display : none; }
39
39
.panel : hover .panel-title-name .anchor { display : inline;}
40
40
41
+ .label {
42
+ padding-top : 0.3em ;
43
+ padding-bottom : 0.3em ;
44
+ }
45
+
41
46
.label-lint-group {
42
47
min-width : 8em ;
43
48
}
44
49
.label-lint-level {
45
50
min-width : 4em ;
46
51
}
47
52
48
- .lint-level-allow {
53
+ .label- lint-level-allow {
49
54
background-color : # 5cb85c ;
50
55
}
51
- .lint-level-warn {
56
+ .label- lint-level-warn {
52
57
background-color : # f0ad4e ;
53
58
}
54
- .lint-level-deny {
59
+ .label- lint-level-deny {
55
60
background-color : # d9534f ;
56
61
}
57
- .lint-level-none {
62
+ .label- lint-level-none {
58
63
background-color : # 777777 ;
59
64
}
60
65
66
+ .label-doc-folding {
67
+ color : # 000 ;
68
+ background-color : # fff ;
69
+ border : 1px solid var (--theme-popup-border );
70
+ }
71
+ .label-doc-folding : hover {
72
+ background-color : # e6e6e6 ;
73
+ }
74
+
61
75
.lint-doc-md > h3 {
62
76
border-top : 1px solid var (--theme-popup-border );
63
77
padding : 10px 15px ;
@@ -249,7 +263,10 @@ <h1>Clippy's lint list</h1>
249
263
< div class ="panel-body row filter-panel ">
250
264
< div class ="col-md-6 form-inline ">
251
265
< div class ="form-group form-group-lg ">
252
- < p class ="h4 "> Lint levels</ p >
266
+ < p class ="h4 ">
267
+ Lint levels
268
+ < a href ="https://doc.rust-lang.org/rustc/lints/levels.html "> (?)</ a >
269
+ </ p >
253
270
< div class ="checkbox " ng-repeat ="(level, enabled) in levels ">
254
271
< label class ="text-capitalize ">
255
272
< input type ="checkbox " ng-model ="levels[level] " />
@@ -260,7 +277,10 @@ <h1>Clippy's lint list</h1>
260
277
</ div >
261
278
< div class ="col-md-6 form-inline ">
262
279
< div class ="form-group form-group-lg ">
263
- < p class ="h4 "> Lint groups</ p >
280
+ < p class ="h4 ">
281
+ Lint groups
282
+ < a href ="https://github.com/rust-lang/rust-clippy/#clippy "> (?)</ a >
283
+ </ p >
264
284
< div class ="checkbox " ng-repeat ="(group, enabled) in groups ">
265
285
< label class ="text-capitalize ">
266
286
< input type ="checkbox " ng-model ="groups[group] " />
@@ -296,12 +316,11 @@ <h2 class="panel-title">
296
316
< div class ="panel-title-addons ">
297
317
< span class ="label label-lint-group label-default "> {{lint.group}}</ span >
298
318
299
- < span class ="label label-lint-level lint-level-{{lint.level}} "> {{lint.level}}</ span >
319
+ < span class ="label label-lint-level label- lint-level-{{lint.level}} "> {{lint.level}}</ span >
300
320
301
- < button class ="btn btn-default btn-xs ">
302
- < span ng-show ="open[lint.id] "> −</ span >
303
- < span ng-hide ="open[lint.id] "> +</ span >
304
- </ button >
321
+
322
+ < span class ="label label-doc-folding " ng-show ="open[lint.id] "> −</ span >
323
+ < span class ="label label-doc-folding " ng-hide ="open[lint.id] "> +</ span >
305
324
</ div >
306
325
</ h2 >
307
326
</ header >
0 commit comments