Skip to content

Commit 28475d4

Browse files
committed
CSS: Clarify disabled state
1 parent 64f82ab commit 28475d4

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

public/css/detail/event-rule-detail.less

+8-2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
&:first-child:before {
6767
content: "";
6868
display: block;
69+
top: 50%;
70+
}
71+
72+
&:first-child:last-child:before {
6973
top: calc(~"50% - 1em");
7074
}
7175

@@ -402,10 +406,11 @@
402406
margin-left: 1em;
403407

404408
&:disabled {
405-
background: @gray-light;
409+
background: @gray-lighter;
406410
color: @disabled-gray;
407411
cursor: not-allowed;
408412
border-color: transparent;
413+
opacity: .5;
409414
}
410415

411416
&.btn-remove {
@@ -428,9 +433,10 @@
428433
.remove-escalation-form {
429434
button[disabled] {
430435
&:disabled {
431-
background: @gray-light;
436+
background: @gray-lighter;
432437
color: @disabled-gray;
433438
cursor: not-allowed;
439+
opacity: .5;
434440
}
435441
}
436442
}

public/css/form.less

+26
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
border-radius: 0;
1616
border: none;
1717
}
18+
19+
.form-controls {
20+
margin-top: 2em;
21+
22+
.btn-remove {
23+
margin-right: auto;
24+
}
25+
}
1826
}
1927

2028
.entry-form {
@@ -77,3 +85,21 @@
7785
content: "\f0c0";
7886
}
7987
}
88+
89+
.icinga-form {
90+
.form-controls {
91+
.btn-remove:not(:hover) {
92+
border-color: transparent;
93+
}
94+
95+
.btn-default {
96+
background: @low-sat-blue;
97+
color: @icinga-blue;
98+
border-color: transparent;
99+
100+
&:hover {
101+
background: @low-sat-blue-dark;
102+
}
103+
}
104+
}
105+
}

0 commit comments

Comments
 (0)