Skip to content

Commit

Permalink
CSS: Add distinct style for disabled .toggle-sliders
Browse files Browse the repository at this point in the history
  • Loading branch information
flourish86 committed Jul 23, 2024
1 parent bedbe52 commit d06d716
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions public/css/icinga/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,18 @@ form.inline {
border-color: @icinga-blue;
}

.icinga-controls input[type="checkbox"]:disabled + .toggle-switch .toggle-slider {
opacity: .5;
}

.icinga-controls input[type="checkbox"]:disabled:not(:checked) + .toggle-switch .toggle-slider {
background: @gray-light
}

.icinga-controls input[type="checkbox"]:disabled + .toggle-switch .toggle-slider:before {
background: @gray-lighter
}

.icinga-controls input[type="checkbox"]:focus + .toggle-switch .toggle-slider {
box-shadow: 0 0 0 2px @body-bg-color, 0 0 0 4px @icinga-blue-light;
}
Expand Down

0 comments on commit d06d716

Please sign in to comment.