瀏覽代碼

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.
mammuthus 7 年之前
父節點
當前提交
0cfdd726f7
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      public/sass/components/_panel_singlestat.scss

+ 6 - 1
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 {