Fix empty text display in firefox. (#1347)

pull/1356/head
FuryBean 2016-11-25 08:54:05 +08:00 committed by cinwell.li
parent 4617526367
commit 090f91d057
2 changed files with 10 additions and 6 deletions

View File

@ -52,7 +52,7 @@
} }
@e empty-block { @e empty-block {
display: table; position: relative;
min-height: 60px; min-height: 60px;
text-align: center; text-align: center;
width: 100%; width: 100%;
@ -60,8 +60,10 @@
} }
@e empty-text { @e empty-text {
display: table-cell; position: absolute;
vertical-align: middle; left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: #5e6d82; color: #5e6d82;
} }

View File

@ -8,7 +8,7 @@
border: 1px solid #d3dce6; border: 1px solid #d3dce6;
@e empty-block { @e empty-block {
display: table; position: relative;
min-height: 60px; min-height: 60px;
text-align: center; text-align: center;
width: 100%; width: 100%;
@ -16,8 +16,10 @@
} }
@e empty-text { @e empty-text {
display: table-cell; position: absolute;
vertical-align: middle; left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: #5e6d82; color: #5e6d82;
} }
} }