lbry-desktop/ui/scss/component/_tooltip.scss

36 lines
695 B
SCSS
Raw Normal View History

2017-01-21 22:31:41 +01:00
@import "../global";
.tooltip {
2017-01-21 22:31:41 +01:00
position: relative;
}
.tooltip__link {
@include text-link();
}
.tooltip__body {
$tooltip-body-width: 300px;
position: absolute;
z-index: 1;
2017-01-21 22:31:41 +01:00
left: 50%;
margin-left: $tooltip-body-width * -1 / 2;
white-space: normal;
2017-01-21 22:31:41 +01:00
box-sizing: border-box;
padding: $spacing-vertical / 2;
width: $tooltip-body-width;
border: 1px solid #aaa;
color: $color-text-dark;
background-color: $color-bg;
2017-01-21 22:31:41 +01:00
font-size: $font-size * 7/8;
line-height: $font-line-height;
box-shadow: $box-shadow-layer;
}
2017-01-21 22:31:41 +01:00
.tooltip--header .tooltip__link {
@include text-link(#aaa);
font-size: $font-size * 3/4;
margin-left: $padding-button;
vertical-align: middle;
}