diff --git a/html/css/dark.css b/html/css/dark.css index 980bf42e86..d78912bea2 100644 --- a/html/css/dark.css +++ b/html/css/dark.css @@ -98,3 +98,109 @@ 0% { transform: rotate(0deg); transform: rotate(0deg); } 100% { transform: rotate(360deg); transform: rotate(360deg); } } + +.device-availability, .service-availability{ + color:#000000; + float:left; + width:166px; + height:64px; + margin:10px; + padding:8px; + border-radius:5px; + text-align:center; +} + +.device-availability.up, .service-availability.up { + border:1px solid #5CB85C; +} + +.device-availability.down, .service-availability.down { + border:1px solid #D9534F; +} + +.device-availability.warning { + border:1px solid #FFB733; +} + +.availability-label{ + float:right; + margin:-8px; +} + +.service-name-label{ + float:left; + margin:-8px; +} + +.report-up { + color:#5CB85C; +} + +.report-warning { + color:#FFB733; +} + +.report-down { + color:#D9534F; +} + +.page-availability-report-entry { + text-align:center; + width:50px; +} + +.page-availability-title-left { + width:50%; + float:left; + height:60px; +} + +.page-availability-title-right { + width:50%; + float:left; + text-align:right; +} + +.page-availability-title { + font-size:26px; + font-weight: bold; + line-height:40px; +} + +.page-availability-report-select { + border:none; + font-size:24px; + font-weight:bold; + padding-right:10px; + margin-left:10px; +} + +.page-availability-report-host { + float:right; + text-align:right; + padding-left:10px; +} + +.page-availability-report-service { + float:right; + text-align:right; +} + +.widget-availability { + float:left; + margin:2px; +} + +.widget-availability-host { + float:left; + margin-bottom: 10px; +} + +.widget-availability-service { + float:right; + margin-bottom: 10px; +} + +.label-font-border { + text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; +} \ No newline at end of file diff --git a/html/css/light.css b/html/css/light.css index ac21bcf9c4..c54a5accb1 100644 --- a/html/css/light.css +++ b/html/css/light.css @@ -87,7 +87,7 @@ 100% { -o-transform: rotate(360deg); transform: rotate(360deg); } } @-ms-keyframes pace-spinner { - 0% { -ms-transform: rotate(0deg); transform: rotate(0deg); } + 0% { -ms-transform: rotate(0deg); transform: rotate(0deg); } 100% { -ms-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes pace-spinner { @@ -95,7 +95,7 @@ 100% { transform: rotate(360deg); transform: rotate(360deg); } } -.device-availability, .service-availability { +.device-availability, .service-availability{ color:#000000; float:left; width:166px; @@ -118,12 +118,14 @@ border:1px solid #FFB733; } -.availability-label { - float:right;margin:-8px; +.availability-label{ + float:right; + margin:-8px; } -.service-name-label { - float:left;margin:-8px; +.service-name-label{ + float:left; + margin:-8px; } .report-up { @@ -157,14 +159,16 @@ .page-availability-title { font-size:26px; - font-weight:bold; + font-weight: bold; line-height:40px; } .page-availability-report-select { + border:none; font-size:24px; font-weight:bold; padding-right:10px; + margin-left:10px; } .page-availability-report-host { @@ -185,10 +189,14 @@ .widget-availability-host { float:left; - margin-bottom:10px; + margin-bottom: 10px; } .widget-availability-service { float:right; - margin-bottom:10px; + margin-bottom: 10px; } + +.label-font-border { + text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; +} \ No newline at end of file diff --git a/html/css/mono.css b/html/css/mono.css index e76425cd34..dbeb71e31a 100644 --- a/html/css/mono.css +++ b/html/css/mono.css @@ -98,3 +98,109 @@ 0% { transform: rotate(0deg); transform: rotate(0deg); } 100% { transform: rotate(360deg); transform: rotate(360deg); } } + +.device-availability, .service-availability{ + color:#000000; + float:left; + width:166px; + height:64px; + margin:10px; + padding:8px; + border-radius:5px; + text-align:center; +} + +.device-availability.up, .service-availability.up { + border:1px solid #5CB85C; +} + +.device-availability.down, .service-availability.down { + border:1px solid #D9534F; +} + +.device-availability.warning { + border:1px solid #FFB733; +} + +.availability-label{ + float:right; + margin:-8px; +} + +.service-name-label{ + float:left; + margin:-8px; +} + +.report-up { + color:#5CB85C; +} + +.report-warning { + color:#FFB733; +} + +.report-down { + color:#D9534F; +} + +.page-availability-report-entry { + text-align:center; + width:50px; +} + +.page-availability-title-left { + width:50%; + float:left; + height:60px; +} + +.page-availability-title-right { + width:50%; + float:left; + text-align:right; +} + +.page-availability-title { + font-size:26px; + font-weight: bold; + line-height:40px; +} + +.page-availability-report-select { + border:none; + font-size:24px; + font-weight:bold; + padding-right:10px; + margin-left:10px; +} + +.page-availability-report-host { + float:right; + text-align:right; + padding-left:10px; +} + +.page-availability-report-service { + float:right; + text-align:right; +} + +.widget-availability { + float:left; + margin:2px; +} + +.widget-availability-host { + float:left; + margin-bottom: 10px; +} + +.widget-availability-service { + float:right; + margin-bottom: 10px; +} + +.label-font-border { + text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; +} \ No newline at end of file diff --git a/html/includes/common/availability-map.inc.php b/html/includes/common/availability-map.inc.php index bf82cdc363..e8158c7f16 100644 --- a/html/includes/common/availability-map.inc.php +++ b/html/includes/common/availability-map.inc.php @@ -83,19 +83,19 @@ if (defined('show_settings')) { $host_down_count++; } - if($directpage == "yes") { + if ($directpage == "yes") { $deviceIcon = getImage($device); $temp_output[] = ''; $temp_output[] = '
'; - $temp_output[] = ''; + $temp_output[] = ''; $temp_output[] = '' . $deviceIcon . '
'; $temp_output[] = '' . $device["hostname"] . ''; $temp_output[] = '
'; } else { $temp_output[] = ''; - $temp_output[] = ''; + $temp_output[] = ''; $temp_output[] = ''; } @@ -115,26 +115,26 @@ if (defined('show_settings')) { $service_down_count += 1; } - if($directpage == "yes") { + if ($directpage == "yes") { $deviceIcon = getImage($service); $temp_output[] = ''; $temp_output[] = '
'; - $temp_output[] = ''; - $temp_output[] = ''; + $temp_output[] = ''; + $temp_output[] = ''; $temp_output[] = '' . $deviceIcon . '
'; $temp_output[] = '' . $service["hostname"] . ''; $temp_output[] = '
'; } else { $temp_output[] = ''; - $temp_output[] = ''; + $temp_output[] = ''; $temp_output[] = ''; } } } - if($directpage == "yes") { + if ($directpage == "yes") { $temp_header[] = '
'; $temp_header[] = 'Availability map for'; $temp_header[] = '