| 1 |
/* Copyright (C) 2017 Icinga Development Team <[email protected]> */ |
| 2 |
|
| 3 |
// See Icinga Web 2: public/css/icinga/base.less |
| 4 |
// All handled are color black to ensure readability, expect for warning |
| 5 |
@tlv-color-critical-bg: @color-critical; |
| 6 |
@tlv-color-critical-fg: white; |
| 7 |
@tlv-color-critical-handled-bg: @color-critical-handled; |
| 8 |
@tlv-color-critical-handled-fg: black; |
| 9 |
|
| 10 |
@tlv-color-warning-bg: @color-warning; |
| 11 |
@tlv-color-warning-fg: black; |
| 12 |
@tlv-color-warning-handled-bg: @color-warning-handled; |
| 13 |
@tlv-color-warning-handled-fg: black; |
| 14 |
|
| 15 |
@tlv-color-unknown-bg: @color-unknown; |
| 16 |
@tlv-color-unknown-fg: white; |
| 17 |
@tlv-color-unknown-handled-bg: @color-unknown-handled; |
| 18 |
@tlv-color-unknown-handled-fg: black; |
| 19 |
|
| 20 |
@tlv-color-ok-bg: @color-ok; |
| 21 |
@tlv-color-ok-fg: @text-color-inverted; |
| 22 |
|
| 23 |
@tlv-color-downtime-bg: fade(@color-ok, 75%); |
| 24 |
@tlv-color-downtime-fg: black; |
| 25 |
@tlv-color-downtime-handled-bg: @color-ok; |
| 26 |
@tlv-color-downtime-handled-fg: @color-warning-handled; |
| 27 |
|
| 28 |
@tlv-color-pending-bg: @color-pending; |
| 29 |
@tlv-color-pending-fg: white; |
| 30 |
|
| 31 |
@tlv-color-missing-bg: @gray-light; |
| 32 |
@tlv-color-missing-fg: @text-color; |
| 33 |
|
| 34 |
.tlv-overview-tiles .tlv-overview-tile { |
| 35 |
display: block; |
| 36 |
float: left; |
| 37 |
padding: 1em; |
| 38 |
margin: 0.5em; |
| 39 |
position: relative; |
| 40 |
width: 20em; |
| 41 |
height: 10em; |
| 42 |
border: 1px solid @gray-light; |
| 43 |
text-decoration: none; |
| 44 |
|
| 45 |
&:hover { |
| 46 |
background-color: @tr-hover-color; |
| 47 |
} |
| 48 |
|
| 49 |
.tlv-title { |
| 50 |
font-weight: bold; |
| 51 |
font-size: 1.25em; |
| 52 |
.text-ellipsis(); |
| 53 |
} |
| 54 |
|
| 55 |
.tlv-name { |
| 56 |
color: @gray; |
| 57 |
.text-ellipsis(); |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
.tlv-status-tile { |
| 62 |
&.critical, &.down { |
| 63 |
background-color: @tlv-color-critical-bg; |
| 64 |
color: @tlv-color-critical-fg; |
| 65 |
} |
| 66 |
&.critical.handled, &.down.handled { |
| 67 |
background-color: fade(@tlv-color-critical-handled-bg, 50%); |
| 68 |
color: @tlv-color-critical-handled-fg; |
| 69 |
} |
| 70 |
&.unknown, &.unreachable { |
| 71 |
background-color: @tlv-color-unknown-bg; |
| 72 |
color: @tlv-color-unknown-fg; |
| 73 |
} |
| 74 |
&.unknown.handled, &.unreachable.handled { |
| 75 |
background-color: fade(@tlv-color-unknown-handled-bg, 50%); |
| 76 |
color: @tlv-color-unknown-handled-fg; |
| 77 |
} |
| 78 |
&.warning { |
| 79 |
background-color: @tlv-color-warning-bg; |
| 80 |
color: @tlv-color-warning-fg; |
| 81 |
} |
| 82 |
&.warning.handled { |
| 83 |
background-color: fade(@tlv-color-warning-handled-bg, 50%); |
| 84 |
color: @tlv-color-warning-handled-fg; |
| 85 |
} |
| 86 |
&.ok, &.up { |
| 87 |
background-color: @tlv-color-ok-bg; |
| 88 |
color: @tlv-color-ok-fg; |
| 89 |
} |
| 90 |
&.downtime.active { |
| 91 |
background-color: @tlv-color-downtime-bg; |
| 92 |
color: @tlv-color-downtime-fg; |
| 93 |
} |
| 94 |
&.downtime.handled { |
| 95 |
background-color: @tlv-color-downtime-handled-bg; |
| 96 |
color: @tlv-color-downtime-handled-fg; |
| 97 |
} |
| 98 |
&.pending { |
| 99 |
background-color: @tlv-color-pending-bg; |
| 100 |
color: @tlv-color-pending-fg; |
| 101 |
} |
| 102 |
&.missing { |
| 103 |
background-color: @tlv-color-missing-bg; |
| 104 |
color: @tlv-color-missing-fg; |
| 105 |
} |
| 106 |
&.total { |
| 107 |
background-color: @icinga-blue; |
| 108 |
color: @text-color-on-icinga-blue; |
| 109 |
} |
| 110 |
} |
| 111 |
|
| 112 |
.tlv-status-badge { |
| 113 |
.badges { |
| 114 |
.badge { |
| 115 |
border: 0.1em solid @white; |
| 116 |
margin-left: 0.2em; |
| 117 |
} |
| 118 |
} |
| 119 |
|
| 120 |
&.critical, &.down { |
| 121 |
background-color: @tlv-color-critical-bg; |
| 122 |
color: @tlv-color-critical-fg; |
| 123 |
} |
| 124 |
&.critical.handled, &.down.handled { |
| 125 |
background-color: @tlv-color-critical-handled-bg; |
| 126 |
color: @tlv-color-critical-handled-fg; |
| 127 |
} |
| 128 |
&.unknown, &.unreachable { |
| 129 |
background-color: @tlv-color-unknown-bg; |
| 130 |
color: @tlv-color-unknown-fg; |
| 131 |
} |
| 132 |
&.unknown.handled, &.unreachable.handled { |
| 133 |
background-color: @tlv-color-unknown-handled-bg; |
| 134 |
color: @tlv-color-unknown-handled-fg; |
| 135 |
} |
| 136 |
&.warning { |
| 137 |
background-color: @tlv-color-warning-bg; |
| 138 |
color: @tlv-color-warning-fg; |
| 139 |
} |
| 140 |
&.warning.handled { |
| 141 |
background-color: @tlv-color-warning-handled-bg; |
| 142 |
color: @tlv-color-warning-handled-fg; |
| 143 |
} |
| 144 |
&.ok, &.up { |
| 145 |
background-color: @tlv-color-ok-bg; |
| 146 |
color: @tlv-color-ok-fg; |
| 147 |
} |
| 148 |
&.downtime.active { |
| 149 |
background-color: @tlv-color-downtime-bg; |
| 150 |
color: @tlv-color-downtime-fg; |
| 151 |
} |
| 152 |
&.downtime.handled { |
| 153 |
background-color: @tlv-color-downtime-handled-bg; |
| 154 |
color: @tlv-color-downtime-handled-fg; |
| 155 |
} |
| 156 |
&.pending { |
| 157 |
background-color: @tlv-color-pending-bg; |
| 158 |
color: @tlv-color-pending-fg; |
| 159 |
} |
| 160 |
&.missing { |
| 161 |
background-color: @tlv-color-missing-bg; |
| 162 |
color: @tlv-color-missing-fg; |
| 163 |
} |
| 164 |
&.total { |
| 165 |
background-color: @icinga-blue; |
| 166 |
color: @text-color-on-icinga-blue; |
| 167 |
} |
| 168 |
} |
| 169 |
|
| 170 |
.tlv-status-section { |
| 171 |
&.critical, &.down { |
| 172 |
border-color: @tlv-color-critical-bg; |
| 173 |
} |
| 174 |
&.critical.handled, &.down.handled { |
| 175 |
border-color: @tlv-color-critical-handled-bg; |
| 176 |
} |
| 177 |
&.unknown, &.unreachable { |
| 178 |
border-color: @tlv-color-unknown-bg; |
| 179 |
} |
| 180 |
&.unknown.handled, &.unreachable.handled { |
| 181 |
border-color: @tlv-color-unknown-handled-bg; |
| 182 |
} |
| 183 |
&.warning { |
| 184 |
border-color: @tlv-color-warning-bg; |
| 185 |
} |
| 186 |
&.warning.handled { |
| 187 |
border-color: @tlv-color-warning-handled-bg; |
| 188 |
} |
| 189 |
&.ok, &.up { |
| 190 |
border-color: @tlv-color-ok-bg; |
| 191 |
} |
| 192 |
&.pending { |
| 193 |
border-color: @tlv-color-pending-bg; |
| 194 |
} |
| 195 |
&.missing { |
| 196 |
border-color: @tlv-color-missing-bg; |
| 197 |
} |
| 198 |
} |
| 199 |
|
| 200 |
.tlv-content { |
| 201 |
position: relative; |
| 202 |
width: 100%; |
| 203 |
height: 100%; |
| 204 |
padding-right: 0 !important; |
| 205 |
padding-left: 0 !important; |
| 206 |
|
| 207 |
.tlv-header { |
| 208 |
margin: 0.5em; |
| 209 |
} |
| 210 |
} |
| 211 |
|
| 212 |
/** BEGIN of header **/ |
| 213 |
.tlv-header { |
| 214 |
display: inline-block; |
| 215 |
|
| 216 |
h1 { |
| 217 |
display: inline-block; |
| 218 |
border: none; |
| 219 |
margin: 0 0.5em 0 0; |
| 220 |
} |
| 221 |
|
| 222 |
.last-refresh { |
| 223 |
display: inline-block; |
| 224 |
} |
| 225 |
|
| 226 |
.action-links { |
| 227 |
display: inline-block; |
| 228 |
margin: 0 0.5em; |
| 229 |
} |
| 230 |
|
| 231 |
.badges { |
| 232 |
.badge { |
| 233 |
margin-left: 0.2em; |
| 234 |
} |
| 235 |
} |
| 236 |
} |
| 237 |
/** END of header **/ |
| 238 |
|
| 239 |
/** BEGIN of tiles **/ |
| 240 |
.tlv-view-tiles { |
| 241 |
display: flex; |
| 242 |
flex-wrap: wrap; |
| 243 |
height: 100%; |
| 244 |
|
| 245 |
.tlv-tiles { |
| 246 |
display: flex; |
| 247 |
flex-wrap: wrap; |
| 248 |
align-content: stretch; |
| 249 |
flex-grow: 1; |
| 250 |
width: 100%; |
| 251 |
height: 100%; |
| 252 |
margin-top: -2.3em; // - padding title - margin tile |
| 253 |
padding-top: 2.3em; // + padding title + margin tile |
| 254 |
} |
| 255 |
|
| 256 |
.tlv-tile { |
| 257 |
margin: 0.1em; |
| 258 |
flex-grow: 1; |
| 259 |
overflow: hidden; |
| 260 |
|
| 261 |
.badges { |
| 262 |
display: inline-block; |
| 263 |
font-weight: normal; |
| 264 |
margin-left: 0.2em; |
| 265 |
|
| 266 |
.badge { |
| 267 |
font-size: 0.7em; |
| 268 |
border: 0.1em solid @white; |
| 269 |
margin-left: 0.2em; |
| 270 |
} |
| 271 |
} |
| 272 |
} |
| 273 |
|
| 274 |
.tlv-tile-title { |
| 275 |
display: inline-block; |
| 276 |
width: 100%; |
| 277 |
padding: 0.1em; |
| 278 |
} |
| 279 |
|
| 280 |
> .tlv-tile { // first level |
| 281 |
min-width: 40%; |
| 282 |
border-style: solid; |
| 283 |
border-width: 1px 1px 1px 4px; |
| 284 |
padding: 0.1em; |
| 285 |
margin: 0.2em 0.5em; |
| 286 |
|
| 287 |
> .tlv-tile-title { |
| 288 |
font-weight: bold; |
| 289 |
|
| 290 |
> .badges { |
| 291 |
float: right; |
| 292 |
} |
| 293 |
} |
| 294 |
|
| 295 |
> .tlv-tiles > .tlv-tile { // second level |
| 296 |
min-width: 10%; |
| 297 |
|
| 298 |
> .tlv-tile-title { |
| 299 |
height: 100%; |
| 300 |
text-align: center; |
| 301 |
|
| 302 |
&:before { |
| 303 |
content: ""; |
| 304 |
display: inline-block; |
| 305 |
height: 100%; |
| 306 |
vertical-align: middle; |
| 307 |
} |
| 308 |
} |
| 309 |
} |
| 310 |
} |
| 311 |
} |
| 312 |
/** END of tiles **/ |
| 313 |
|
| 314 |
#layout.wide-layout .tlv-view-tiles .tlv-tile-title { |
| 315 |
font-size: 1.3em; |
| 316 |
} |
| 317 |
|
| 318 |
#layout.wide-layout.twocols .tlv-view-tiles .tlv-tile-title { |
| 319 |
font-size: 1.1em; |
| 320 |
} |
| 321 |
|
| 322 |
/** BEGIN of tree **/ |
| 323 |
.tlv-view-tree { |
| 324 |
.tlv-tree-node { |
| 325 |
display: flex; |
| 326 |
flex-wrap: wrap; |
| 327 |
flex-grow: 1; |
| 328 |
width: 100%; |
| 329 |
|
| 330 |
&.tlv-collapsed { |
| 331 |
width: auto; |
| 332 |
} |
| 333 |
|
| 334 |
background: none; |
| 335 |
border-style: solid; |
| 336 |
border-width: 2px 0 0 5px; |
| 337 |
padding: 0.2em 0 0 1em; |
| 338 |
|
| 339 |
&.tlv-collapsed { |
| 340 |
> .tlv-tree-node, > .tlv-node-icinga { |
| 341 |
display: none; |
| 342 |
} |
| 343 |
} |
| 344 |
|
| 345 |
.badges { |
| 346 |
display: inline-block; |
| 347 |
font-size: 0.9em; |
| 348 |
|
| 349 |
.badge { |
| 350 |
border: 0.1em solid @white; |
| 351 |
margin-left: 0.2em; |
| 352 |
} |
| 353 |
} |
| 354 |
} |
| 355 |
|
| 356 |
> .tlv-tree-node { |
| 357 |
border-right-width: 2px; |
| 358 |
|
| 359 |
&:last-of-type { |
| 360 |
border-bottom-width: 2px; |
| 361 |
} |
| 362 |
} |
| 363 |
|
| 364 |
.tlv-tree-title { |
| 365 |
display: block; |
| 366 |
width: 100%; |
| 367 |
white-space: nowrap; |
| 368 |
margin: -0.2em 0 0 -1em; |
| 369 |
padding: 0.3em 0.3em 0.3em 0.3em; |
| 370 |
|
| 371 |
.badges { |
| 372 |
float: right; |
| 373 |
} |
| 374 |
} |
| 375 |
|
| 376 |
.tlv-node-icinga { |
| 377 |
flex-grow: 1; |
| 378 |
margin: 0.2em; |
| 379 |
padding: 0.2em 1em; |
| 380 |
white-space: nowrap; |
| 381 |
border-radius: 0.5em; |
| 382 |
font-size: 0.9em; |
| 383 |
} |
| 384 |
} |
| 385 |
/** END of tree **/ |
| 386 |
|
| 387 |
.tlv-collapsible { |
| 388 |
.icon.tlv-collapse-handle::before { |
| 389 |
font-size: 1.3em; |
| 390 |
content: '\e81d'; |
| 391 |
} |
| 392 |
} |
| 393 |
|
| 394 |
.tlv-collapsed { |
| 395 |
.icon.tlv-collapse-handle::before { |
| 396 |
content: '\e820'; |
| 397 |
} |
| 398 |
} |
| 399 |
|
| 400 |
/** BEGIN of breadcrumb **/ |
| 401 |
.breadcrumb { |
| 402 |
list-style: none; |
| 403 |
overflow: hidden; |
| 404 |
padding: 0; |
| 405 |
// breadcrumb badges |
| 406 |
.badges { |
| 407 |
display: inline-block; |
| 408 |
padding: 0 0 0 0.5em; |
| 409 |
.badge { |
| 410 |
line-height: 1.25em; |
| 411 |
font-size: 0.8em; |
| 412 |
border: 1px solid @white; |
| 413 |
margin: -0.25em 1px 0 0; |
| 414 |
} |
| 415 |
} |
| 416 |
} |
| 417 |
|
| 418 |
.breadcrumb:after { |
| 419 |
content: ''; |
| 420 |
display: block; |
| 421 |
clear: both; |
| 422 |
} |
| 423 |
|
| 424 |
.breadcrumb li { |
| 425 |
float: left; |
| 426 |
cursor: pointer; |
| 427 |
user-select: none; |
| 428 |
-webkit-user-select: none; |
| 429 |
-moz-user-select: none; |
| 430 |
-ms-user-select: none; |
| 431 |
} |
| 432 |
|
| 433 |
.breadcrumb li a { |
| 434 |
color: @text-color; |
| 435 |
margin: 0; |
| 436 |
font-size: 1.2em; |
| 437 |
text-decoration: none; |
| 438 |
padding-left: 2em; |
| 439 |
line-height: 2em; |
| 440 |
background: @gray-light; |
| 441 |
position: relative; |
| 442 |
display: block; |
| 443 |
float: left; |
| 444 |
&:focus { |
| 445 |
outline: none; |
| 446 |
} |
| 447 |
} |
| 448 |
|
| 449 |
.breadcrumb li a:before, .breadcrumb li a:after { |
| 450 |
content: " "; |
| 451 |
display: block; |
| 452 |
width: 0; |
| 453 |
height: 0; |
| 454 |
border-top: 1.3em solid transparent; |
| 455 |
border-bottom: 1.2em solid transparent; |
| 456 |
position: absolute; |
| 457 |
margin-top: -1.2em; |
| 458 |
top: 50%; |
| 459 |
left: 100%; |
| 460 |
} |
| 461 |
|
| 462 |
.breadcrumb li a:before { |
| 463 |
border-left: 1.2em solid @gray-lightest; |
| 464 |
margin-left: 1px; |
| 465 |
z-index: 1; |
| 466 |
} |
| 467 |
|
| 468 |
.breadcrumb li a:after { |
| 469 |
border-left: 1.2em solid @gray-light; |
| 470 |
z-index: 2; |
| 471 |
} |
| 472 |
|
| 473 |
.breadcrumb li:first-child a { |
| 474 |
padding-left: 1em; |
| 475 |
padding-right: 0.5em; |
| 476 |
} |
| 477 |
|
| 478 |
.breadcrumb li:not(:last-child) a:hover { |
| 479 |
background-color: @gray-lighter; |
| 480 |
} |
| 481 |
|
| 482 |
.breadcrumb li:not(:last-child) a:hover:after { |
| 483 |
border-left-color: @gray-lighter; |
| 484 |
} |
| 485 |
|
| 486 |
.breadcrumb li a:focus { |
| 487 |
text-decoration: underline; |
| 488 |
} |
| 489 |
|
| 490 |
#layout.twocols, #layout.layout-minimal, div.compact { |
| 491 |
.breadcrumb { |
| 492 |
font-size: 0.833em; |
| 493 |
} |
| 494 |
} |
| 495 |
|
| 496 |
/** END of breadcrumb **/ |
| 497 |
|
| 498 |
.action-links { |
| 499 |
.action-link { |
| 500 |
margin-right: 1em; |
| 501 |
} |
| 502 |
} |
| 503 |
|
| 504 |
.warning-note { |
| 505 |
padding: 0.5em; |
| 506 |
border-radius: 0.5em; |
| 507 |
background: fade(@tlv-color-warning-bg, 40%); |
| 508 |
color: @text-color; |
| 509 |
} |
| 510 |
|
| 511 |
.CodeMirror { |
| 512 |
min-height: 60em; |
| 513 |
width: 100%; |
| 514 |
margin-bottom: 1em; |
| 515 |
border: 1px solid @gray-light; |
| 516 |
font-family: inherit; |
| 517 |
|
| 518 |
pre { |
| 519 |
font-family: @font-family-fixed; |
| 520 |
font-size: 1.2em; |
| 521 |
} |
| 522 |
} |
| 523 |
|
| 524 |
div[href].action.active { |
| 525 |
border-left-color: @icinga-blue; |
| 526 |
} |
| 527 |
|
| 528 |
div[href].action:hover { |
| 529 |
cursor: pointer; |
| 530 |
|
| 531 |
a[href]:first-of-type { |
| 532 |
text-decoration: underline; |
| 533 |
} |
| 534 |
} |