summaryrefslogtreecommitdiffstats
path: root/public/css/themes/high-contrast.less
blob: b22ffd5cb7b28a48ec573e423fc2d7a40d38556d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
/*! Icinga Web 2 | (c) 2016 Icinga Development Team | GPLv2+ */

@icinga-blue: #006D8C;

// Gray colors
@gray: #7F7F7F;
@gray-semilight: #A9A9A9;
@gray-light: #C9C9C9;
@gray-lighter: #EEEEEE;
@gray-lightest: #F7F7F7;
@disabled-gray: #9a9a9a;

// State colors
@color-ok: #006400;
@color-critical: #EE0000;
@color-critical-handled: #EE0000;
@color-warning: #8B5A00;
@color-warning-handled: #8B5A00;
@color-unknown: #800080;
@color-unknown-handled: #800080;
@color-unreachable: #800080;
@color-unreachable-handled: #800080;
@color-pending: #0000EE;

// Icinga colors
@low-sat-blue: #dae3e6;
@low-sat-blue-dark: #c0cccd;

// Background color for <body>
@body-bg-color: @white;

@text-color: #191919;
@text-color-light: #555555;

@menu-highlight-color: white;
@menu-2ndlvl-color: white;
@menu-2ndlvl-highlight-color: white;
@menu-2ndlvl-active-hover-color: @text-color;

#menu ul.nav-level-1 > .nav-item > a {
  &:focus, &:hover {
    text-decoration: underline;
  }
}

#menu ul.nav-level-1 > .nav-item.active > a,
#menu .nav-level-1 > .nav-item.active:not(.selected) > a:hover {
  color: @text-color;
  background-color: @white;
}

#menu .nav-level-2 > .nav-item.active {
  background-color: @white;

  a {
    color: @text-color;
  }

  > a:focus, > a:hover {
    opacity: 1;
  }
}

#menu .nav-level-2 > .nav-item > a {
  &:hover, &:focus {
    text-decoration: underline;
  }
}

#menu ul:not(.nav-level-2) > .selected > a {
  color: @text-color;
}

#menu .active > a {
  text-decoration: underline;
}

.badge:not(.handled),
.state-badge:not(.handled) {
  &.state-warning {
    border: 1px solid @color-warning;
  }

  &.state-critical,
  &.state-down {
    border: 1px solid @color-critical;
  }

  &.state-unreachable {
    border: 1px solid @color-unreachable;
  }

  &.state-unknown {
    border: 1px solid @color-unknown;
  }

  &.state-ok,
  &.state-up {
    border: 1px solid @color-ok;
  }
}

.badge.handled,
.badge.state-ok,
.state-badge.handled,
.state-badge.state-ok {
  background-color: @body-bg-color !important;
  color: @text-color !important;

  &.state-warning {
    border: 1px solid @color-warning-handled;
  }

  &.state-critical,
  &.state-down {
    border: 1px solid @color-critical-handled;
  }

  &.state-unreachable {
    border: 1px solid @color-unreachable-handled;
  }

  &.state-unknown {
    border: 1px solid @color-unknown-handled;
  }
}

.boxview a:focus {
    color: @text-color;
    text-decoration: underline;
}

.icinga-module.module-monitoring {
  @timeline-notification-color: #1650CF;
  @timeline-hard-state-color: #A24600;
  @timeline-comment-color: #346964;
  @timeline-ack-color: #855D18;
  @timeline-downtime-start-color: #515151;
  @timeline-downtime-end-color: #5e5e2f;

  // Unfortunately it does not suffice to only override the timeline colors here, because our less compiler seems to
  // have the related style block in module.less already evaluated

  .timeline-notification {
    background-color: @timeline-notification-color;

    &.extrapolated {
      background-color: lighten(@timeline-notification-color, 20%);
    }
  }

  .timeline-hard-state {
    background-color: @timeline-hard-state-color;

    &.extrapolated {
      background-color: lighten(@timeline-hard-state-color, 20%);
    }
  }

  .timeline-comment {
    background-color: @timeline-comment-color;

    &.extrapolated {
      background-color: lighten(@timeline-comment-color, 20%);
    }
  }

  .timeline-ack {
    background-color: @timeline-ack-color;

    &.extrapolated {
      background-color: lighten(@timeline-ack-color, 20%);
    }
  }

  .timeline-downtime-start {
    background-color: @timeline-downtime-start-color;

    &.extrapolated {
      background-color: lighten(@timeline-downtime-start-color, 20%);
    }
  }

  .timeline-downtime-end {
    background-color: @timeline-downtime-end-color;

    &.extrapolated {
      background-color: lighten(@timeline-downtime-end-color, 20%);
    }
  }
}

.icinga-controls {
  input:not([type="checkbox"]):not([type="radio"]),
  .toggle-switch .toggle-slider:before,
  .toggle-switch > .toggle-slider,
  select,
  textarea {
    border: 1px solid @icinga-blue;
  }

  input[type="checkbox"]:not(:checked) + .toggle-switch .toggle-slider:before {
    height: 1.166666667em;
    width: 1.166666667em;
    margin: 1px;
  }
}

.search-suggestions {
  input:not([type="checkbox"]):not([type="radio"]),
  .toggle-switch .toggle-slider:before,
  .toggle-switch > .toggle-slider,
  select,
  textarea {
    border: none;
  }
}

.icinga-module.module-icingadb .list-item.overdue {
  background: none;

  header > *:not(time),
  .caption {
    opacity: 1;
  }
}

.controls input.search,
input.search {
  background-image: url(../img/icons/search.png);
}

.search-bar,
.button-link,
.view-mode-switcher > label {
  border: 1px solid @icinga-blue;
}

// compensate for 1px border
.filter-input-area {
  padding: 1/12em !important;
}

.view-mode-switcher > label {
  padding: (10/16)*.25em (10/16)*.5em !important;

  &:not(:first-of-type) {
    border-left: none;
  }
}