Skip to content

Commit

Permalink
Insert icheck CSS right after bootstrap file. (pi-hole#2752)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdwebdesign authored Oct 16, 2023
2 parents ff77b8f + 099f2bc commit ea74a78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/pi-hole/js/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function initCheckboxRadioStyle() {
}

var boxsheet = $('<link href="' + getCheckboxURL(chkboxStyle) + '" rel="stylesheet" />');
boxsheet.appendTo("head");
boxsheet.insertAfter($("link[href*='style/vendor/bootstrap/css/bootstrap.min.css']"));

applyCheckboxRadioStyle(chkboxStyle);

Expand Down
14 changes: 9 additions & 5 deletions style/pi-hole.css
Original file line number Diff line number Diff line change
Expand Up @@ -779,29 +779,33 @@ li:not(.menu-open) .treeview-menu .warning-count {
}

/* Domains table: filter by type - smaller icheck */
body:not(.lcars) .filter_types [class*="icheck-"] > label {
body:not([class*="lcars"]) .filter_types [class*="icheck-"] > label {
padding-left: 1.5em !important;
line-height: 1.2em;
min-height: 1.2em;
}
body:not(.lcars)
body:not([class*="lcars"])
.filter_types
[class*="icheck-"]
> input:first-child
+ input[type="hidden"]
+ label::before,
body:not(.lcars) .filter_types [class*="icheck-"] > input:first-child + label::before {
body:not([class*="lcars"]) .filter_types [class*="icheck-"] > input:first-child + label::before {
width: 1.2em;
height: 1.2em;
margin-left: -1.55em;
}
body:not(.lcars)
body:not([class*="lcars"])
.filter_types
[class*="icheck-"]
> input:first-child:checked
+ input[type="hidden"]
+ label::after,
body:not(.lcars) .filter_types [class*="icheck-"] > input:first-child:checked + label::after {
body:not([class*="lcars"])
.filter_types
[class*="icheck-"]
> input:first-child:checked
+ label::after {
width: 0.35em;
height: 0.7em;
top: -0.2em;
Expand Down

0 comments on commit ea74a78

Please sign in to comment.