From c94cd40b923999f39d6b35735f02e54762f05f86 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 31 Mar 2014 10:39:01 +0200 Subject: [PATCH] Center timeframe elements vertically refs #4190 --- .../application/views/scripts/timeline/index.phtml | 14 ++++++++++---- public/css/icinga/monitoring-colors.less | 12 ++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/modules/monitoring/application/views/scripts/timeline/index.phtml b/modules/monitoring/application/views/scripts/timeline/index.phtml index a63a0cfe7..c5e93a590 100644 --- a/modules/monitoring/application/views/scripts/timeline/index.phtml +++ b/modules/monitoring/application/views/scripts/timeline/index.phtml @@ -33,7 +33,6 @@ $firstRow = true; end->format($intervalFormat); ?> -
$labelAndColor): ?> calculateCircleWidth($timeInfo[1][$groupName], 2); $extrapolatedCircleWidth = $timeline->getExtrapolatedCircleWidth($timeInfo[1][$groupName], 2); ?> +
-
+
+
+
-
diff --git a/public/css/icinga/monitoring-colors.less b/public/css/icinga/monitoring-colors.less index 2243b3e6c..a4c8c9e6a 100644 --- a/public/css/icinga/monitoring-colors.less +++ b/public/css/icinga/monitoring-colors.less @@ -687,15 +687,19 @@ div.timeline { } } - div.circles { + div.circle-box { + // width: inline-style; + height: 100%; + margin-right: 0.5em; + position: relative; float: left; div.outer-circle { // width: inline-style; // height: inline-style; - margin: 0.5em; - position: relative; - float: left; + position: absolute; + top: 50%; + // margin-top: inline-style; &.extrapolated { border-width: 2px;