insomnia/packages/insomnia-app/app/ui/css/components/tooltip.less
Opender Singh 497a708cc7 Request url tooltip overflow (#1441)
* Fixed test for win32

* Allow for a wide tag + styling to allow breaking of an otherwise unbreakable string

* reverted test

* added package-lock.json files
2019-04-22 12:26:57 -07:00

39 lines
738 B
Plaintext

@import '../constants/dimensions';
.tooltip {
position: relative;
display: inline-block;
}
.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-sm @padding-md;
border-radius: @radius-sm;
font-size: @font-size-sm;
max-width: 20rem;
text-align: center;
z-index: 10;
white-space: normal !important;
word-wrap: break-word;
&.tooltip__bubble--visible {
opacity: 1;
z-index: 99999;
transition: opacity 200ms;
// Back to normal
height: auto;
line-height: normal;
}
&.tooltip__bubble--wide {
max-width: 30rem;
}
}