Skip to content

Commit

Permalink
CSS: Clarify disabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
flourish86 committed May 22, 2023
1 parent 64f82ab commit 28475d4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
10 changes: 8 additions & 2 deletions public/css/detail/event-rule-detail.less
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
&:first-child:before {
content: "";
display: block;
top: 50%;
}

&:first-child:last-child:before {
top: calc(~"50% - 1em");
}

Expand Down Expand Up @@ -402,10 +406,11 @@
margin-left: 1em;

&:disabled {
background: @gray-light;
background: @gray-lighter;
color: @disabled-gray;
cursor: not-allowed;
border-color: transparent;
opacity: .5;
}

&.btn-remove {
Expand All @@ -428,9 +433,10 @@
.remove-escalation-form {
button[disabled] {
&:disabled {
background: @gray-light;
background: @gray-lighter;
color: @disabled-gray;
cursor: not-allowed;
opacity: .5;
}
}
}
26 changes: 26 additions & 0 deletions public/css/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
border-radius: 0;
border: none;
}

.form-controls {
margin-top: 2em;

.btn-remove {
margin-right: auto;
}
}
}

.entry-form {
Expand Down Expand Up @@ -77,3 +85,21 @@
content: "\f0c0";
}
}

.icinga-form {
.form-controls {
.btn-remove:not(:hover) {
border-color: transparent;
}

.btn-default {
background: @low-sat-blue;
color: @icinga-blue;
border-color: transparent;

&:hover {
background: @low-sat-blue-dark;
}
}
}
}

0 comments on commit 28475d4

Please sign in to comment.