From 01fe0ca38158efa3200dbc34577f20b27746df78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sat, 20 Dec 2014 17:55:42 +0100 Subject: [PATCH] Optimized category score bubble position --- front/src/css/dashboard.css | 7 +++++-- front/src/less/dashboard.less | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/front/src/css/dashboard.css b/front/src/css/dashboard.css index 112110f..9690c0b 100644 --- a/front/src/css/dashboard.css +++ b/front/src/css/dashboard.css @@ -94,8 +94,7 @@ h4 { height: 1em; font-size: 1em; color: transparent; - position: relative; - top: 0.15em; + margin: 0 auto; } .notations .A { /* green */ @@ -134,6 +133,9 @@ h4 { } .notations .criteria .grade { width: 10%; + padding-left: 0.5em; + padding-right: 0.5em; + vertical-align: middle; } .notations .criteria .label { width: 70%; @@ -143,6 +145,7 @@ h4 { font-weight: bold; white-space: nowrap; text-align: center; + vertical-align: middle; } .notations .warning .label, .notations .warning .result { diff --git a/front/src/less/dashboard.less b/front/src/less/dashboard.less index 0f9d068..f5b1a05 100644 --- a/front/src/less/dashboard.less +++ b/front/src/less/dashboard.less @@ -99,8 +99,7 @@ h4 { height: 1em; font-size: 1em; color: transparent; - position: relative; - top: 0.15em; + margin: 0 auto; } } .notations .A { @@ -141,6 +140,9 @@ h4 { } .notations .criteria .grade { width: 10%; + padding-left: 0.5em; + padding-right: 0.5em; + vertical-align: middle; } .notations .criteria .label { width: 70%; @@ -150,6 +152,7 @@ h4 { font-weight: bold; white-space: nowrap; text-align: center; + vertical-align: middle; } .notations .warning .label, .notations .warning .result { color: #FF1919;