[GH-1111] Fix height for tooltip (#1123)

* Fix height for tooltip.

* Use unitless number for line-height.

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
This commit is contained in:
kamre 2021-10-01 01:55:24 +07:00 committed by GitHub
parent 7617d9e334
commit 384e350c13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ $tooltop-vertical-offset: 2px;
position: absolute;
content: attr(data-tooltip);
padding: 2px 4px;
line-height: 1px;
line-height: 1.2;
font-size: 1em;
text-align: center;
color: rgb(255, 255, 255);
@ -87,7 +87,6 @@ $tooltop-vertical-offset: 2px;
}
// Left tooltip body style
&.tooltip-left:hover::after {
left: undefined;
top: 50%;
right: calc(100% + 2px);
transform: translate(-#{$tooltop-vertical-offset}, -50%);