Debian Codegraph @

contrib/exfoliation/stylesheets/common.css

raw
1 /* exfoliation: a nagios makeover */
2 /* version: 0.7 */
3 /* Copyright 2010 Matthew Wall, all rights reserved */
4 /* */
5 /* Permission to use, copy, modify, and distribute this software for any */
6 /* purpose with or without fee is hereby granted, provided that the above */
7 /* copyright notice and this permission notice appear in all copies. */
8
9 /* thanks to jacob.laack for nagiosneat */
10 /* thanks to nagios authors for a solid base */
11
12 /* these are reference colors for the color scheme:
13
14 color dark light border
15 OK: green 88d066 cce8cc 777777
16 WARNING: yellow ffff00 feffc1 777777
17 CRITICAL: red f88888 ffdddd 777777
18 PENDING: grey acacac fefefe 777777
19 UNKNOWN: orange ffbb55 ffddaa 777777
20 UNREACHABLE: orange ffbb55 ffddaa 777777
21 INDETERMINATE: purple ddccff 777777
22 PROBLEMS: blue aaccff 777777
23
24 ACK: aaaaaa
25 CUSTOM: 778899
26
27 important: blue 99aacc 777777
28 not important: blue aaccff 777777
29
30 table header: d0d0d0
31 odd rows: e7e7e7
32 even rows: f4f2f2
33
34 titles: 12pt
35 body: 10pt
36 table headings: 9pt
37 controls: 9pt
38 data in tables: 8pt or 9pt
39 */
40 @font-face {
41 font-family: 'Geist';
42 src: url('../fonts/Geist-Regular.woff2');
43 font-weight: normal;
44 font-style: normal;
45 }
46
47
48 @font-face {
49 font-family: 'Geist';
50 src: url('../fonts/Geist-Bold.woff2');
51 font-weight: bold;
52 font-style: normal;
53 }
54
55 @font-face {
56 font-family: 'Geist';
57 src: url('../fonts/Geist-SemiBold.woff2');
58 font-weight: 600;
59 font-style: normal;
60 }
61
62 @font-face {
63 font-family: 'Geist';
64 src: url('../fonts/Geist-Black.woff2');
65 font-weight: 900;
66 font-style: normal;
67 }
68
69 @font-face {
70 font-family: 'Geist';
71 src: url('../fonts/Geist-Thin.woff2');
72 font-weight: 100;
73 font-style: normal;
74 }
75
76 @font-face {
77 font-family: 'Geist';
78 src: url('../fonts/Geist-UltraLight.woff2');
79 font-weight: 200;
80 font-style: normal;
81 }
82
83 @font-face {
84 font-family: 'Geist';
85 src: url('../fonts/Geist-UltraBlack.woff2');
86 font-weight: 950;
87 font-style: normal;
88 }
89
90 :root {
91 --background: #000000;
92 --foreground: #FFFFFF;
93 --primary: #4D89F9;
94 --primary-foreground: #FAFAFA;
95 --secondary-foreground: #D3DAE5;
96 --muted-foreground: #8A92A1;
97 --border: #28303E;
98 --input: #0D1014;
99 --radius: 0.3rem;
100
101 --info-msg-text: #89BDF1;
102 --info-msg-border: #1866B6;
103 --info-msg-bg: #041220;
104
105 --success-msg-text: #40DE7A;
106 --success-msg-border: #147538;
107 --success-msg-bg: #04160A;
108
109 --warning-msg-text: #FFF948;
110 --warning-msg-border: #706C00;
111 --warning-msg-bg: #191900;
112
113 --error-msg-text: #F9B4B5;
114 --error-msg-border: #710B09;
115 --error-msg-bg: #1C0202;
116 }
117
118 .light {
119 --background: #FFFFFF;
120 --foreground: #000000;
121 --primary: #4D89F9;
122 --secondary-foreground: #1A1A1A;
123 --muted-foreground: #3D3D3D;
124 --border: #D6D6D6;
125 --input: #FCFCFC;
126
127 --info-msg-text: #033281;
128 --info-msg-border: #0860F7;
129 --info-msg-bg: #DCE8FE;
130
131 --success-msg-text: #005C2E;
132 --success-msg-border: #47B880;
133 --success-msg-bg: #DBFFED;
134
135 --warning-msg-text: #5C5900;
136 --warning-msg-border: #E0D900;
137 --warning-msg-bg: #FFFEE5;
138
139 --error-msg-text: #710B09;
140 --error-msg-border: #DB2424;
141 --error-msg-bg: #FCD9D9;
142 }
143
144 #side {
145 border: none;
146 height: 100vh;
147 color: var(--foreground);
148 background-color: var(--background);
149 }
150
151 * {
152 scrollbar-width: thin;
153 scrollbar-color: var(--border) var(--background);
154 }
155
156 #main {
157 height: 100vh;
158 color: var(--foreground);
159 background-color: var(--background);
160 }
161
162 body {
163 margin: 0.8em 0.8em 2em 0.8em;
164 font-family: Geist;
165 font-weight: normal;
166 font-size: 10pt;
167 }
168
169 table {
170 border: none;
171 margin: 0;
172 }
173
174 th,
175 td {
176 border: none;
177 padding: 0 2px 0 2px;
178 }
179
180 form {
181 margin: 0;
182 padding: 0;
183 }
184
185
186 a img {
187 border: none;
188 }
189
190 a {
191 text-decoration: none;
192 color: #40529b;
193 }
194
195 a:hover {
196 text-decoration: underline;
197 color: var(--primary);
198 }
199
200
201 .navbar {
202 display: flex;
203 flex-direction: column;
204 gap: 4px;
205 padding: 16px;
206 margin: 0;
207 }
208
209 .navbarlogo {
210 margin-bottom: 10px;
211 }
212
213 .nagioslogo {
214 background-color: var(--foreground);
215 }
216
217 .nlogo {
218 mask: url(../images/logos/nagios-n-logo.svg) no-repeat center / contain;
219 height: 32px;
220 }
221
222 .fulllogo {
223 mask: url(../images/logos/horizontal-nagios-full-logo.svg) no-repeat center / contain;
224 height: 39px;
225 width: 140px;
226 }
227
228 div.navsection {
229 display: flex;
230 flex-direction: column;
231 gap: 4px;
232 }
233
234 div.navsectiontitle {
235 font-size: 9pt;
236 font-weight: bold;
237 border-bottom: 1px var(--border) solid;
238 padding-bottom: 6px;
239 margin-top: 4px;
240 margin-bottom: 2px;
241 }
242
243 ul.navsectionlinks {
244 margin: 0;
245 padding: 0;
246 list-style: none;
247 display: flex;
248 flex-direction: column;
249 gap: 4px;
250 }
251
252 ul.navsectionlinks li {
253 font-weight: normal;
254 font-size: 9pt;
255 text-decoration: none;
256 color: var(--foreground)
257 }
258
259 ul.navsectionlinks li a {
260 font-weight: normal;
261 font-size: 9pt;
262 text-decoration: none;
263 color: var(--foreground)
264 }
265
266 ul.navsectionlinks li a:hover {
267 color: var(--primary);
268 }
269
270 ul.navsectionlinks li ul {
271 margin: 0px;
272 padding-top: 4px;
273 padding-left: 15px;
274 list-style: none;
275 display: flex;
276 flex-direction: column;
277 gap: 4px;
278 }
279
280 ul.navsectionlinks li ul li a {
281 background: none;
282 padding: 0;
283 font-weight: normal;
284 color: var(--secondary-foreground)
285 }
286
287 ul.navsectionlinks li ul li a:hover {
288 background: none;
289 }
290
291 .navbarsearch {
292 margin-top: 4px;
293 }
294
295 .navbarsearch form {
296 border: none;
297 padding: 0;
298 margin: 0;
299 font-size: 9pt;
300 font-weight: normal;
301 display: flex;
302 flex-direction: column;
303 gap: 4px;
304 }
305
306 .navbarsearch input {
307 font-size: 9pt;
308 background-color: var(--input);
309 border: 1px var(--border) solid;
310 border-radius: var(--radius);
311 padding: 6px;
312 color: var(--foreground);
313 outline: none;
314 }
315
316
317 #splashpage {
318 text-align: center;
319 }
320
321 #maincopy {
322 margin: 0 0 15px 0;
323 }
324
325 #currentversioninfo {
326 display: flex;
327 font-size: small;
328 color: var(--secondary-foreground);
329 align-items: center;
330 border-bottom: 1px var(--border) solid;
331 padding: 16px;
332 gap: 16px;
333 margin: -0.8em -0.7em 0 -0.8em;
334 justify-content: space-between;
335 }
336
337 #currentversioninfo > div {
338 display: flex;
339 align-items: center;
340 gap: 16px;
341 }
342
343 #currentversioninfo .checkforupdates {
344 background-color: var(--background);
345 color: var(--foreground);
346 border: 1px var(--border) solid;
347 border-radius: 0.5rem;
348 padding: 6px 10px 6px 10px;
349 align-self: flex-end;
350 }
351
352 #currentversioninfo .checkforupdates:hover {
353 color: var(--foreground);
354 background-color: var(--input);
355 text-decoration: none;
356 }
357
358 #updateversioninfo {
359 margin: 15px auto 0 auto;
360 width: 400px;
361 }
362
363 #updateversioninfo div.submessage {
364 clear: left;
365 }
366
367 .updatechecksdisabled {
368 background-color: var(--error-msg-bg);
369 border: 1px solid var(--error-msg-border);
370 color: var(--error-msg-text);
371 border-radius: var(--radius);
372 padding: 10px;
373 }
374
375 .updatechecksdisabled div.warningmessage {
376 font-weight: bold;
377 }
378
379 .updateavailable {
380 background-color: var(--info-msg-bg);
381 border: 1px solid var(--info-msg-border);
382 color: var(--info-msg-text);
383 border-radius: var(--radius);
384 padding: 10px;
385 }
386
387 .updateavailable div.updatemessage {
388 font-size: 12pt;
389 font-weight: bold;
390 }
391
392 .dot-enabled {
393 color: #00EE5F;
394 }
395
396 .dot-disabled {
397 color: red;
398 }
399
400 #mainsplash {
401 display: grid;
402 max-width: 1400px;
403 margin: auto;
404 grid-template-columns: repeat(2, minmax(0, 1fr));
405 gap: 100px;
406 padding: 120px 60px 120px 60px;
407 }
408
409 @media (width <= 1200px) {
410 #mainsplash {
411 grid-template-columns: repeat(1, minmax(0, 1fr));
412 padding: 60px;
413 }
414 }
415
416 #mainsplash img {
417 max-width: 100%;
418 margin: 0;
419 }
420
421 #splashtext {
422 text-align: left;
423 color: var(--secondary-foreground);
424 font-size: large;
425 display: flex;
426 flex-direction: column;
427 gap: 32px;
428 justify-content: center;
429 }
430
431 #splashtexttitle {
432 font-size: 2.25rem; /* 36px */
433 line-height: 2.5rem;
434 font-weight: 700;
435 color: var(--foreground);
436 }
437
438 #splashbuttons {
439 display: flex;
440 gap: 32px;
441 align-items: center;
442 }
443
444 #splashlearnmore {
445 background-color: var(--primary);
446 color: var(--primary-foreground);
447 padding: 16px;
448 border-radius: var(--radius);
449 }
450
451 #splashlearnmore:hover {
452 background-color: var(--primary);
453 text-decoration: none;
454 }
455
456 #splashnewsletter {
457 text-decoration: underline;
458 color: var(--secondary-foreground);
459 }
460
461 #splashnewsletter:hover {
462 color: var(--primary);
463 }
464
465 #splashpage #mainfooter {
466 clear: both;
467 font-size: 8pt;
468 padding-top: 35px;
469 margin: auto;
470 max-width: 800px;
471 color: var(--muted-foreground);
472 }
473
474 #splashpage #mainfooter .disclaimer {
475 margin: auto;
476 }
477
478 #splashpage #mainfooter .logos {
479 margin: 15px 0 0 0;
480 }
481
482 table.infoBox {
483 width: 100%;
484 }
485
486 td.infoBox {
487 font-size: 8pt;
488 padding: 0 0 1em 0;
489 white-space: nowrap;
490 }
491
492 div.infoBoxTitle {
493 font-size: 10pt;
494 font-weight: bold;
495 }
496
497 div.infoBoxBadProcStatus {
498 font-size: 8pt;
499 font-weight: bold;
500 color: red;
501 }
502
503 .linkBox {
504 font-size: 8pt;
505 padding: 1px;
506 }
507
508 table.linkBox td {
509 white-space: nowrap;
510 }
511
512 .filter {
513 font-size: 8pt;
514 padding: 1px;
515 }
516
517 .filterTitle {
518 font-size: 9pt;
519 font-weight: bold;
520 }
521
522 .filterName {
523 font-size: 8pt;
524 text-align: right;
525 font-weight: bold;
526 }
527
528 .filterValue {
529 font-size: 8pt;
530 }
531
532 .errorDescription {
533 font-size: 10pt;
534 text-align: center;
535 font-weight: bold;
536 }
537
538 .errorMessage {
539 font-size: 10pt;
540 text-align: center;
541 font-weight: bold;
542 color: red;
543 }
544
545 .warningMessage {
546 font-size: 10pt;
547 text-align: center;
548 font-weight: bold;
549 color: red;
550 }
551
552 .statusTitle {
553 text-align: center;
554 font-weight: bold;
555 font-size: 12pt;
556 white-space: nowrap;
557 }
558
559 .statusSort {
560 font-size: 8pt;
561 }
562
563 table.data {
564 padding: 0;
565 }
566
567 th.data {
568 font-size: 9pt;
569 text-align: left;
570 padding: 0 3px 0 3px;
571 border-bottom: 1px solid #777777;
572 color: #333333;
573 }
574
575 .dataOdd {
576 font-size: 8pt;
577 background-color: #e7e7e7;
578 padding: 0px 4px 0px 4px;
579 }
580
581 .dataEven {
582 font-size: 8pt;
583 background-color: #f4f2f2;
584 padding: 0px 4px 0px 4px;
585 }
586
587 .dataTitle {
588 font-size: 12pt;
589 text-align: center;
590 font-weight: bold;
591 }
592
593 .dataSubTitle {
594 font-size: 10pt;
595 text-align: center;
596 font-weight: bold;
597 }
598
599 .optBox {
600 font-size: 9pt;
601 white-space: nowrap;
602 padding: 2px 0px 0px 0px;
603 }
604
605 .optBoxTitle {
606 font-size: 10pt;
607 font-weight: bold;
608 text-align: center;
609 }
610
611 .optBoxRequiredItem {
612 font-size: 9pt;
613 text-align: right;
614 padding: 0px 5px 0px 5px;
615 color: red;
616 }
617
618 .optBoxItem {
619 font-size: 9pt;
620 text-align: right;
621 padding: 0px 5px 0px 5px;
622 }
623
624 .optBoxValue {
625 font-size: 9pt;
626 }
627
628 .optionBoxTitle {
629 font-size: 10pt;
630 text-align: center;
631 font-weight: bold;
632 }
633
634 .optionBox {
635 font-size: 10pt;
636 padding: 2px;
637 }
638
639 .navBoxTitle {
640 font-size: 10pt;
641 font-weight: bold;
642 white-space: nowrap;
643 }
644
645 .navBoxItem {
646 font-size: 8pt;
647 }
648
649 .navBoxDate {
650 font-size: 8pt;
651 white-space: nowrap;
652 }
653
654 .navBoxFile {
655 font-size: 8pt;
656 text-align: center;
657 }
658
659 .helpfulHint {
660 font-size: 8pt;
661 font-style: italic;
662 text-align: center;
663 }
664
665 .logEntries {
666 font-size: 8pt;
667 white-space: nowrap;
668 }
669
670 .dateTimeBreak {
671 font-size: 9pt;
672 font-weight: bold;
673 }
674
675 .reportRange {
676 font-size: 10pt;
677 white-space: nowrap;
678 }
679
680 .reportDuration {
681 font-size: 8pt;
682 white-space: nowrap;
683 }
684
685 .reportTime {
686 font-size: 8pt;
687 white-space: nowrap;
688 text-align: right;
689 font-style: italic;
690 }
691
692 .reportSelectTitle {
693 font-size: 12pt;
694 text-align: center;
695 font-weight: bold;
696 }
697
698 .reportSelectSubTitle {
699 font-size: 9pt;
700 text-align: right;
701 }
702
703 .reportSelectItem {
704 font-size: 9pt;
705 }
706
707 .reportSelectTip {
708 font-size: 8pt;
709 font-style: italic;
710 }
711
712 .dateSelectTitle {
713 font-size: 12pt;
714 text-align: center;
715 font-weight: bold;
716 }
717
718 .dateSelectSubTitle {
719 font-size: 9pt;
720 text-align: right;
721 }
722
723 .dateSelectItem {
724 font-size: 9pt;
725 }
726
727 .popupText {
728 font-size: 8pt;
729 background-color: #eeeeaa;
730 border: 1px solid #777777;
731 padding: 10px 10px 10px 10px;
732 }
733
734 .hostImportantProblem {
735 font-size: 8pt;
736 background-color: #88aadd;
737 border: 1px solid #aaaaaa;
738 padding: 0px 5px 0px 5px;
739 }
740
741 .hostUnimportantProblem {
742 font-size: 8pt;
743 background-color: #aaccff;
744 border: 1px solid #888888;
745 padding: 0px 5px 0px 5px;
746 }
747
748 .serviceImportantProblem {
749 font-size: 8pt;
750 background-color: #88aadd;
751 border: 1px solid #aaaaaa;
752 padding: 0px 5px 0px 5px;
753 }
754
755 .serviceUnimportantProblem {
756 font-size: 8pt;
757 background-color: #aaccff;
758 border: 1px solid #888888;
759 padding: 0px 5px 0px 5px;
760 }
761
762 .outageImportantProblem {
763 font-size: 8pt;
764 background-color: #88aadd;
765 border: 1px solid #aaaaaa;
766 padding: 0px 5px 0px 5px;
767 }
768
769 .outageUnimportantProblem {
770 font-size: 8pt;
771 background-color: #aaccff;
772 border: 1px solid #888888;
773 padding: 0px 5px 0px 5px;
774 }
775
776
777 /* Some nagios configurations have side.html rather than side.php and define */
778 /* a slightly different set of nav elements. */
779 .NavBarTitle {
780 font-size: 9pt;
781 font-weight: bold;
782 margin: 5px 0 10px 0;
783 padding: 2px;
784 background-color: #efefef;
785 border: 1px solid #dddddd;
786 }
787
788 .NavBarItem {
789 font-size: 9pt;
790 font-weight: bold;
791 list-style: none;
792 text-decoration: none;
793 margin: 0;
794 padding: 0 0 0 0;
795 }
796
797 .NavBarSearchItem {
798 font-size: 9pt;
799 }