mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
104 lines
1.5 KiB
SCSS
104 lines
1.5 KiB
SCSS
|
|
.Tooltip {
|
|
--tooltip-bgc: #{$contentColor};
|
|
--tooltip-color: #{$textColorSecondary};
|
|
--tooltip-margin: #{$padding / 2 $padding / 3};
|
|
|
|
position: absolute;
|
|
background: var(--tooltip-bgc);
|
|
font-size: small;
|
|
font-weight: normal;
|
|
border: 1px solid $borderColor;
|
|
border-radius: $radius;
|
|
color: var(--tooltip-color);
|
|
margin: var(--tooltip-margin);
|
|
white-space: normal;
|
|
padding: .5em;
|
|
text-align: center;
|
|
transition-delay: 100ms; // delay for .Animate
|
|
pointer-events: none;
|
|
z-index: 1000;
|
|
|
|
* {
|
|
white-space: normal;
|
|
}
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
|
|
&.following {
|
|
position: fixed;
|
|
}
|
|
|
|
&:not(.following) {
|
|
&.left {
|
|
left: 0;
|
|
}
|
|
|
|
&.right {
|
|
right: 0;
|
|
}
|
|
|
|
&.top {
|
|
bottom: 100%;
|
|
}
|
|
|
|
&.bottom {
|
|
top: 100%;
|
|
}
|
|
|
|
&.center {
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
}
|
|
}
|
|
|
|
.TooltipContent {
|
|
&.nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&.narrow {
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: normal;
|
|
word-wrap: break-word;
|
|
text-align: left;
|
|
}
|
|
|
|
&.small {
|
|
font-size: $font-size-small;
|
|
}
|
|
|
|
&.warning {
|
|
color: $colorError;
|
|
}
|
|
|
|
&.tableView {
|
|
min-width: 200px;
|
|
|
|
> :not(:last-child) {
|
|
margin-bottom: var(--flex-gap);
|
|
}
|
|
|
|
.title {
|
|
color: $textColorAccent;
|
|
text-align: center;
|
|
}
|
|
|
|
.name {
|
|
color: $textColorAccent;
|
|
text-align: right;
|
|
flex: 0 0 35%;
|
|
}
|
|
|
|
.value {
|
|
text-align: left;
|
|
max-width: 300px;
|
|
word-break: break-word;
|
|
}
|
|
}
|
|
} |