mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
75fbf60274
* Use Curl constants for info * Extra timeline info and cookie url encoding setting * Add warning to environment selector * Title attribute on the autocomplete types * Added test
58 lines
1.1 KiB
Plaintext
58 lines
1.1 KiB
Plaintext
@import '../constants/dimensions';
|
|
|
|
.tooltip {
|
|
position: relative;
|
|
display: inline-block;
|
|
opacity: 0.8;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tooltip__bubble {
|
|
position: absolute;
|
|
left: -999999px;
|
|
opacity: 0;
|
|
background: var(--color-bg);
|
|
border: 1px solid var(--color-bg);
|
|
box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
|
|
color: var(--color-font);
|
|
padding: @padding-xs @padding-sm;
|
|
border-radius: @radius-sm;
|
|
font-size: @font-size-sm;
|
|
width: 18rem;
|
|
text-align: center;
|
|
z-index: 10;
|
|
white-space: normal !important;
|
|
|
|
// If this isn't like this, weird things happen like making the parent scroll
|
|
height: 0;
|
|
line-height: 0;
|
|
}
|
|
|
|
&.tooltip--visible .tooltip__bubble {
|
|
opacity: 1;
|
|
transition: opacity 200ms;
|
|
|
|
// Back to normal
|
|
height: auto;
|
|
line-height: normal;
|
|
}
|
|
|
|
&.tooltip--left .tooltip__bubble {
|
|
margin-right: @padding-xs;
|
|
}
|
|
|
|
&.tooltip--right .tooltip__bubble {
|
|
margin-left: @padding-xs;
|
|
}
|
|
|
|
&.tooltip--top .tooltip__bubble {
|
|
margin-bottom: @padding-xs;
|
|
}
|
|
|
|
.tooltip--bottom .tooltip__bubble {
|
|
margin-top: @padding-xs;
|
|
}
|
|
}
|