insomnia/app/ui/css/components/tooltip.less

39 lines
707 B
Plaintext
Raw Normal View History

@import '../constants/dimensions';
.tooltip {
position: relative;
display: inline-block;
opacity: 0.8;
&:hover {
opacity: 1;
}
2017-07-21 18:59:17 +00:00
}
2017-07-21 18:59:17 +00:00
.tooltip__bubble {
position: fixed;
left: -999999px;
opacity: 0;
background: var(--color-bg);
border: 1px solid var(--hl-sm);
box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
color: var(--color-font);
padding: @padding-xs @padding-md;
2017-07-21 18:59:17 +00:00
border-radius: @radius-sm;
font-size: @font-size-sm;
max-width: 18rem;
2017-07-21 18:59:17 +00:00
text-align: center;
z-index: 10;
white-space: normal !important;
&.tooltip__bubble--visible {
opacity: 1;
2017-07-21 18:59:17 +00:00
z-index: 99999;
transition: opacity 200ms;
2017-03-29 02:21:49 +00:00
// Back to normal
height: auto;
line-height: normal;
}
}