Skip to content

Commit 296af08

Browse files
committed
Removed unused styles and labels in dropdowns
1 parent 4161a67 commit 296af08

File tree

1 file changed

+53
-55
lines changed

1 file changed

+53
-55
lines changed

util/gh-pages/index.html

Lines changed: 53 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,22 @@
3636
}
3737

3838
.dropdown-menu .checkbox {
39-
width: 100%;
4039
display: block;
41-
clear: both;
42-
font-weight: 400;
43-
line-height: 1.42857143;
4440
white-space: nowrap;
4541
margin: 0;
46-
}
47-
48-
.dropdown-menu .checkbox label {
42+
}
43+
.dropdown-menu .checkbox label {
4944
padding: 3px 20px;
5045
width: 100%;
51-
}
46+
}
5247

53-
.dropdown-menu .checkbox input {
54-
position: relative;
55-
margin: 0 0.5rem 0;
56-
padding: 0;
57-
vertical-align: middle;
58-
}
48+
.dropdown-menu .checkbox input {
49+
position: relative;
50+
margin: 0 0.5rem 0;
51+
padding: 0;
52+
}
5953

60-
.dropdown-menu .checkbox:hover {
54+
.dropdown-menu .checkbox:hover {
6155
background-color: var(--theme-hover);
6256
}
6357

@@ -243,7 +237,7 @@
243237
display: block;
244238
}
245239

246-
.theme-choice>li {
240+
.theme-choice > li {
247241
padding: 5px 10px;
248242
font-size: 0.8em;
249243
user-select: none;
@@ -352,11 +346,13 @@ <h1>Clippy Lints</h1>
352346
<ul class="dropdown-menu">
353347
<li class="checkbox">
354348
<label ng-click="toggleLevels(true)">
349+
<input type="checkbox" class="invisible" />
355350
All
356351
</label>
357352
</li>
358353
<li class="checkbox">
359354
<label ng-click="toggleLevels(false)">
355+
<input type="checkbox" class="invisible" />
360356
None
361357
</label>
362358
</li>
@@ -376,11 +372,13 @@ <h1>Clippy Lints</h1>
376372
<ul class="dropdown-menu">
377373
<li class="checkbox">
378374
<label ng-click="toggleGroups(true)">
375+
<input type="checkbox" class="invisible" />
379376
All
380377
</label>
381378
</li>
382379
<li class="checkbox">
383380
<label ng-click="toggleGroups(false)">
381+
<input type="checkbox" class="invisible" />
384382
None
385383
</label>
386384
</li>
@@ -428,7 +426,7 @@ <h2 class="panel-title">
428426
</h2>
429427
</header>
430428

431-
<ul class="list-group lint-docs" ng-if="open[lint.id]" ng-class="{collapse: true, in: open[lint.id]}">
429+
<div class="list-group lint-docs" ng-if="open[lint.id]" ng-class="{collapse: true, in: open[lint.id]}">
432430
<div class="list-group-item lint-doc-md" ng-bind-html="lint.docs | markdown"></div>
433431
<div class="lint-additional-info-container">
434432
<!-- Applicability -->
@@ -521,46 +519,46 @@ <h2 class="panel-title">
521519
);
522520
};
523521
})
524-
.directive('themeDropdown', function ($document) {
525-
return {
526-
restrict: 'A',
527-
link: function ($scope, $element, $attr) {
528-
$element.bind('click', function () {
529-
$element.toggleClass('open');
530-
$element.addClass('open-recent');
531-
});
532-
533-
$document.bind('click', function () {
534-
if (!$element.hasClass('open-recent')) {
535-
$element.removeClass('open');
536-
}
537-
$element.removeClass('open-recent');
538-
})
522+
.directive('themeDropdown', function ($document) {
523+
return {
524+
restrict: 'A',
525+
link: function ($scope, $element, $attr) {
526+
$element.bind('click', function () {
527+
$element.toggleClass('open');
528+
$element.addClass('open-recent');
529+
});
530+
531+
$document.bind('click', function () {
532+
if (!$element.hasClass('open-recent')) {
533+
$element.removeClass('open');
539534
}
540-
}
541-
})
542-
.directive('filterDropdown', function ($document) {
543-
return {
544-
restrict: 'A',
545-
link: function ($scope, $element, $attr) {
546-
$element.bind('click', function (event) {
547-
if (event.target.closest('button')) {
548-
$element.toggleClass('open');
549-
} else {
550-
$element.addClass('open');
551-
}
552-
$element.addClass('open-recent');
553-
});
554-
555-
$document.bind('click', function () {
556-
if (!$element.hasClass('open-recent')) {
557-
$element.removeClass('open');
558-
}
559-
$element.removeClass('open-recent');
560-
})
535+
$element.removeClass('open-recent');
536+
})
537+
}
538+
}
539+
})
540+
.directive('filterDropdown', function ($document) {
541+
return {
542+
restrict: 'A',
543+
link: function ($scope, $element, $attr) {
544+
$element.bind('click', function (event) {
545+
if (event.target.closest('button')) {
546+
$element.toggleClass('open');
547+
} else {
548+
$element.addClass('open');
561549
}
562-
}
563-
})
550+
$element.addClass('open-recent');
551+
});
552+
553+
$document.bind('click', function () {
554+
if (!$element.hasClass('open-recent')) {
555+
$element.removeClass('open');
556+
}
557+
$element.removeClass('open-recent');
558+
})
559+
}
560+
}
561+
})
564562
.directive('onFinishRender', function ($timeout) {
565563
return {
566564
restrict: 'A',

0 commit comments

Comments
 (0)