2 +------------------------------------------------------------------+
3 | ____ _ _ __ __ _ __ |
4 | / ___| |__ ___ ___| | __ | \/ | |/ / |
5 | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
6 | | |___| | | | __/ (__| < | | | | . \ |
7 | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
9 | Copyright Mathias Kettner 2012 mk@mathias-kettner.de |
10 +------------------------------------------------------------------+
12 This file is part of Check_MK.
13 The official homepage is at http://mathias-kettner.de/check_mk.
15 check_mk is free software; you can redistribute it and/or modify it
16 under the terms of the GNU General Public License as published by
17 the Free Software Foundation in version 2. check_mk is distributed
18 in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
19 out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
20 PARTICULAR PURPOSE. See the GNU General Public License for more de-
21 ails. You should have received a copy of the GNU General Public
22 License along with GNU Make; see the file COPYING. If not, write
23 to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
24 Boston, MA 02110-1301 USA.
28 /* Global style used by all HTML pages, even by sidebar and
31 /*-------------------------------------------------------------------------.
33 | | _ \ ___ / _| __ _ _ _| | |_ ___ |
34 | | | | |/ _ \ |_ / _` | | | | | __/ __| |
35 | | |_| | __/ _| (_| | |_| | | |_\__ \ |
36 | |____/ \___|_| \__,_|\__,_|_|\__|___/ |
38 +--------------------------------------------------------------------------+
39 | Default values for general styles used in all parts of Multisite. These |
40 | styles are used in the Status-GUI, WATO and other modules based on the |
41 | basic Multisite layout. They are not used by the Mobile GUI. |
42 '-------------------------------------------------------------------------*/
44 /* Change some general defaults of HTML that we do not like */
66 body a, body a:link, body a:visited {
72 background-color: rgba(0, 0, 0, .5);
81 /* Default font size for the complete Multisite GUI */
82 button, input, td, th, select, textarea {
90 /* Styling for input elements */
91 input, select, textarea {
93 border: 1px #73767A solid;
95 outline-width: medium;
96 background-color: #fff;
97 font-family: arial, helvetica, sans-serif;
98 vertical-align: middle;
102 /* consistent dropdown field styling for all browsers */
103 select:not([multiple]) {
104 -webkit-appearance: none; /* Removes default chrome and safari style */
105 -moz-appearance: none; /* Removes default style Firefox */
106 background: url(images/select_arrow.png) no-repeat right #fff;
107 background-size: 20px 11px;
123 input:hover, select:hover, textarea:hover,
124 input[type="checkbox"]:hover + label:before {
125 background-color: #EDECEB;
128 td.checkbox input[type="checkbox"] + label:before {
132 /* checkbox styling */
133 input[type="checkbox"] {
137 input[type="checkbox"][disabled] + label:before {
141 input[type="checkbox"] + label:before {
142 box-shadow: 0.1px 1.0px 1.2px 0 #888 inset;
143 border: 1px #73767A solid;
144 background-color: #fff;
146 display: inline-block;
151 vertical-align: middle;
155 input[type="checkbox"]:checked + label:before {
158 background-color: #ddd;
162 input[type="checkbox"]:checked + label:after {
166 /* Select element with icons */
168 background-repeat: no-repeat;
169 background-position: bottom left;
170 background-size: 18px;
176 table.vs_duallist a.control,
177 .wato div.mainmenu a {
178 border-color: #86A9B8 #22404D #22414D #86A9B8;
179 border-radius: 5px 5px 5px 5px;
182 box-shadow: 0 0 1.5px #000000;
185 background-color: #497E95;
191 table.vs_duallist a.control:hover,
192 .wato div.mainmenu a:hover {
193 background-color: #6da1b8;
194 text-decoration: none;
197 table.vs_duallist a.control:active,
198 .wato div.mainmenu a:active {
199 border-color: #22414d #86a9b8 #86a9b8 #22404d;
200 background-color: #3b6678;
201 box-shadow: inset 0 0 0.5px #444444;
204 input.button[disabled="disabled"]:hover,
205 input.button:disabled:hover {
206 background-color: #497E95;
209 input.button[disabled="disabled"]:active,
210 input.button:disabled:active {
211 border-color: #86A9B8 #22404D #22414D #86A9B8;
212 background-color: #497E95;
213 box-shadow: 0 0 1.5px #000000;
217 border-color: #d4a466 #633e0d #633e0d #d4a466;
218 background-color: #c37d19;
221 input.button.hot:hover {
222 background-color: #deb548;
225 input.button.hot:active {
226 background-color: #c37d19;
227 border-color: #6d5723 #d9bf81 #d9bf81 #6d5723;
230 /* on/off toggle button */
233 border-color: #1b333d #264c18 #1b333d #274141;
237 box-shadow: 0 0 1px rgba(255, 255, 255, 0.8),
238 1px 1px 0px 0px rgba(0, 0, 0, 0.4) inset;
240 background-color: #427b94;
247 .wato div.globalvars .toggle_switch a {
250 border-color: #1b333d #264c18 #1b333d #274141;
253 box-shadow: 1px 1px 1px 0px rgba(255, 255, 255, 0.4) inset;
259 text-decoration: none;
267 .toggle_switch.on a {
269 background-color: #54a626;
270 border-width: 0 0 0 1px;
273 .toggle_switch.off a {
274 background-color: #f60000;
275 border-width: 0 1px 0 0;
278 .toggle_switch a:hover {
279 /* TODO: create a better hover effect */
280 text-decoration: none !important;
282 filter: alpha(opacity=50); /* For IE8 and earlier */
285 table.data .toggle_switch a {
289 table.data .toggle_switch {
290 background-color: #999;
294 /* pattern / regex input styling */
297 /* font-family: monospace; */
301 background-color: #cca;
303 text-decoration: none;
307 border-color: #ddd #888 #333 #ddd;
310 -webkit-border-radius: 4px;
317 input[type="submit"]:focus {
321 input:hover, select:hover, textarea:hover {
322 background-color: #EDECEB;
325 /* Images have a native size of 48x48 and are scaled down by the
326 browser. That way if you select a zoom level in the browser,
327 the quality of the images are better */
335 img.icon.inline, div.icon {
336 vertical-align: middle;
349 div.livestatus.message {
358 /*-------------------------------------------------------------------------.
360 | | ___|__ | | __| | __ _| |__ | | ___ |
361 | | |_ / _ \| |/ _` |/ _` | '_ \| |/ _ \ |
362 | | _| (_) | | (_| | (_| | |_) | | __/ |
363 | |_| \___/|_|\__,_|\__,_|_.__/|_|\___| |
365 +--------------------------------------------------------------------------+
366 | These styles are used by the {begin,end}_foldable_container() functions. |
367 '-------------------------------------------------------------------------*/
376 -webkit-transition: -webkit-transform .2s ease-in-out;
377 -moz-transition: -moz-transform .2s ease-in-out;
378 transition: transform .2s ease-in-out;
379 vertical-align: middle;
383 -webkit-transform: rotate(90deg);
384 -moz-transform: rotate(90deg);
385 transform: rotate(90deg);
388 img.treeangle.nform {
392 img.treeangle.title {
395 vertical-align: middle;
405 table.data b.treeangle.title {
409 img.treeangle+.treeangle.title {
410 display: inline-block;
416 position: relative; /* In order for placement of invtablelink */
431 /*-------------------------------------------------------------------------.
433 | | \/ | ___ ___ ___ __ _ __ _ ___ ___ |
434 | | |\/| |/ _ \/ __/ __|/ _` |/ _` |/ _ \/ __| |
435 | | | | | __/\__ \__ \ (_| | (_| | __/\__ \ |
436 | |_| |_|\___||___/___/\__,_|\__, |\___||___/ |
438 +--------------------------------------------------------------------------+
439 | Styles for messages-boxes in various situations (called by htmllib.py) |
440 '-------------------------------------------------------------------------*/
442 div.really, div.success, div.error, div.message, div.warning {
446 box-shadow: 0 0 3px #444;
453 background-color: #fdc400;
458 background-color: #9dbecd;
463 background-color: #9dbecd;
468 background-color: #e70000;
477 background-color: #ff4;
485 /* Warnings embedded in tables without margins and padding, those are
486 just needed for body */
488 td div.warning, td > div.error {
494 td div.warning ul, td > div.error ul {
499 /*-ValueSpec---------------------------------------------------------------.
501 | \ \ / /_ _| |_ _ ___/ ___| _ __ ___ ___ |
502 | \ \ / / _` | | | | |/ _ \___ \| '_ \ / _ \/ __| |
503 | \ V / (_| | | |_| | __/___) | |_) | __/ (__ |
504 | \_/ \__,_|_|\__,_|\___|____/| .__/ \___|\___| |
506 +--------------------------------------------------------------------------+
507 | Styles needed for HTML code produced by valuespec.py. |
508 '-------------------------------------------------------------------------*/
514 table.dictionary b.header {
519 table.dictionary td.dictright {
526 table.dictionary td.dictleft {
531 table.dictionary td.dictleft div.popup_menu {
535 table.dictionary td.dictleft div.help {
539 td.dictleft div.dictelement * {
542 td.dictleft div.dictelement {
549 td.dictleft div.dictelement.indent {
551 border-left: 2px solid #ccc;
558 border-collapse: collapse;
560 table.vs_dict_text td,
561 table.data tr td table.vs_dict_text > tbody > tr > td {
567 table.valuespec_tuple {
571 table.valuespec_tuple td {
575 table.valuespec_tuple td.tuple_left {
576 vertical-align: middle;
579 table.valuespec_tuple span.title {
585 display: inline-block;
586 vertical-align: middle;
600 table.valuespec_listof {
604 div.valuespec_listof.floating > table > tbody > tr > td:first-child {
608 div.valuespec_listof_floating_container > table {
612 table.valuespec_listof.regular > tbody > tr > td:first-child {
615 table.valuespec_listof.regular > tbody > tr > td {
616 padding: 3px 0px 5px 0px;
617 border-bottom: 1px solid #9bc;
619 table.valuespec_listof.regular > tbody > tr:last-child > td {
621 border-bottom-style: none;
624 table.valuespec_listof.regular td.vlof_buttons {
627 vertical-align: middle;
630 table.valuespec_listof.regular td.vlof_content {
632 table.valuespec_listof option[selected] {
636 table.valuespec_listof .unused {
639 table.vs_duallist td {
642 table.vs_duallist td select {
647 table.vs_duallist td.head {
651 table.vs_duallist a.control {
652 display: inline-block;
654 text-decoration: none;
659 table.vs_duallist a.control.add {
663 table.vs_duallist a.control.del {
667 div.vs_autocomplete {
670 background-color: #DFDFDF;
672 border-color: #fff #000 #000 #fff;
674 box-shadow: 0 0 1.5px #000000;
679 div.vs_autocomplete ul {
681 list-style-type:none;
687 div.vs_autocomplete li {
691 div.vs_autocomplete li:hover {
692 background-color: #2c5766;
698 font-family: monospace;
701 div.listofstrings.horizontal {
705 div.listofstrings > div {
709 div.listofstrings.horizontal > div {
715 border-collapse: collapse;
717 table.listchoice td span.checkbox {
720 table.listchoice td {
725 table.listchoice td input[type=checkbox] {
730 div.floatfilter.double > div.content > table.listchoice {
737 div.popup_container {
743 background-color: #45829D;
750 width: -moz-max-content;
753 -webkit-border-radius: 5px;
756 border: 1px solid #fff;
770 /* The hover menu needs to have a higher z-index than the highest element
771 on the pages. In this case it was the perfometer which had 30. */
776 div#hover_menu div.error,
777 div#hover_menu div.message {
782 /* Color picker styling */
784 div.popup_trigger.colorpicker div.popup_menu {
791 border: 1px solid #000;
792 box-shadow: 1px 1px 2px inset;
795 table.data td .cp-preview {
810 pointer-events: none;
825 background-color: white;
831 .cp-small .slide-wrapper {
834 .cp-small .picker-indicator {
837 border: 1px solid black;
838 background-color: white;
840 .cp-small .slide-indicator {
844 background-color: black;
857 div.popup_trigger.colorpicker .popup_menu {
862 /*--Werks------------------------------------------------------------------.
864 | \ \ / /__ _ __| | _____ |
865 | \ \ /\ / / _ \ '__| |/ / __| |
866 | \ V V / __/ | | <\__ \ |
867 | \_/\_/ \___|_| |_|\_\___/ |
869 +--------------------------------------------------------------------------+
870 | Pages showing the Check_MK change log (werks.py) |
871 '-------------------------------------------------------------------------*/
873 tr.data td.werklevel, tr.data td.werkclass, tr.data td.werkcomp {
879 table.data.werks tr:nth-child(odd) td.werklevel2 {
880 background-color: #00bbff;
882 table.data.werks tr:nth-child(even) td.werklevel2 {
883 background-color: #44ccff;
885 table.data.werks td.werklevel3 {
888 table.data.werks tr:nth-child(odd) td.werklevel3 {
889 background-color: #6cffff;
891 table.data.werks tr:nth-child(even) td.werklevel3 {
892 background-color: #66ffff;
895 table.data.werks tr:nth-child(odd) td.werkclassfeature {
896 background-color: #a8f0a8;
898 table.data.werks tr:nth-child(even) td.werkclassfeature {
899 background-color: #afa;
901 table.data.werks tr:nth-child(even) td.werkclassfix {
902 background-color: #ff9;
904 table.data.werks tr:nth-child(odd) td.werkclassfix {
905 background-color: #f8f877;
907 table.data.werks td.werkclasssecurity {
911 table.data.werks tr:nth-child(odd) td.werkclasssecurity {
912 background-color: #ff0000;
914 table.data.werks tr:nth-child(even) td.werkclasssecurity {
915 background-color: #ff3030;
918 table.data.headerleft.werks td {
924 text-decoration: underline;
927 table.data.werks td.werkcompincomp_unack {
931 table.data.werks tr:nth-child(odd) td.werkcompincomp_unack {
932 background-color: #ff7777;
934 table.data.werks tr:nth-child(even) td.werkcompincomp_unack {
935 background-color: #ff8888;
938 table.data.werks tr:nth-child(odd) td.werkcompincomp_ack {
939 background-color: #ffbb99;
941 table.data.werks tr:nth-child(even) td.werkcompincomp_ack {
942 background-color: #ffbfaa;
945 /* NOWIKI formatting in Werks */
957 background-color: white;
960 background-color: #fff0b5;
963 td.nowiki div.filename {
964 margin-bottom: -12px;
965 background-color: #E6D8A3;
967 font-family: Hack, courier;
973 border: 1px solid black;
974 border-collapse: collapse;
977 td.nowiki table td, td.nowiki table th {
978 border: 1px solid #888;
981 /* Command for modifying existing downtimes */
982 table.modifydowntimes > tbody > tr > td:nth-child(1) {
983 vertical-align: middle;
986 table.modifydowntimes > tbody > tr:nth-child(1) > td:nth-child(1) {
990 .select2-container--default .select2-results {