1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/dashboard/client/components/tooltip/tooltip.scss
Jari Kolehmainen 1d0815abd2
Lens app source code (#119)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-03-15 09:52:02 +02:00

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;
}
}
}