From 0cfdd726f777a6e913e1f2d8fbe8f4ece1dbf584 Mon Sep 17 00:00:00 2001 From: mammuthus Date: Sun, 20 May 2018 21:28:53 +0300 Subject: [PATCH 1/2] Singlestat value: vertical alignment fix There is a problem with vertical alignment of Singlestat value - it's a bit lower then it has to be. This hack fix it. --- public/sass/components/_panel_singlestat.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/sass/components/_panel_singlestat.scss b/public/sass/components/_panel_singlestat.scss index 33a956a0244..c84234bde9f 100644 --- a/public/sass/components/_panel_singlestat.scss +++ b/public/sass/components/_panel_singlestat.scss @@ -10,10 +10,15 @@ display: table-cell; vertical-align: middle; text-align: center; - position: relative; z-index: 1; font-size: 3em; font-weight: bold; + margin: 0; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + padding-bottom: 10px; } .singlestat-panel-prefix { From fac0333f472920237acc9ced610b7a870a2dfaca Mon Sep 17 00:00:00 2001 From: balyn Date: Thu, 24 May 2018 19:35:04 +0300 Subject: [PATCH 2/2] The old code for centering removed Old code removed --- public/sass/components/_panel_singlestat.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/sass/components/_panel_singlestat.scss b/public/sass/components/_panel_singlestat.scss index c84234bde9f..faaa6fc2447 100644 --- a/public/sass/components/_panel_singlestat.scss +++ b/public/sass/components/_panel_singlestat.scss @@ -8,13 +8,11 @@ .singlestat-panel-value-container { line-height: 1; display: table-cell; - vertical-align: middle; - text-align: center; + position: absolute; z-index: 1; font-size: 3em; font-weight: bold; margin: 0; - position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);