mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
86 lines
1.7 KiB
SCSS
86 lines
1.7 KiB
SCSS
.popper {
|
|
position: absolute;
|
|
background: $tooltipBackground;
|
|
color: $tooltipColor;
|
|
width: 150px;
|
|
border-radius: 3px;
|
|
box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
|
|
padding: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
.popper .popper__arrow {
|
|
width: 0;
|
|
height: 0;
|
|
border-style: solid;
|
|
position: absolute;
|
|
margin: 5px;
|
|
}
|
|
|
|
.popper .popper__arrow {
|
|
border-color: $tooltipBackground;
|
|
}
|
|
|
|
.popper[data-placement^='top'] {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.popper[data-placement^='top'] .popper__arrow {
|
|
border-width: 5px 5px 0 5px;
|
|
border-left-color: transparent;
|
|
border-right-color: transparent;
|
|
border-bottom-color: transparent;
|
|
bottom: -5px;
|
|
left: calc(50% - 5px);
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.popper[data-placement^='bottom'] {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.popper[data-placement^='bottom'] .popper__arrow {
|
|
border-width: 0 5px 5px 5px;
|
|
border-left-color: transparent;
|
|
border-right-color: transparent;
|
|
border-top-color: transparent;
|
|
top: -5px;
|
|
left: calc(50% - 5px);
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
.popper[data-placement^='right'] {
|
|
margin-left: 5px;
|
|
}
|
|
.popper[data-placement^='right'] .popper__arrow {
|
|
border-width: 5px 5px 5px 0;
|
|
border-left-color: transparent;
|
|
border-top-color: transparent;
|
|
border-bottom-color: transparent;
|
|
left: -5px;
|
|
top: calc(50% - 5px);
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.popper[data-placement^='left'] {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.popper[data-placement^='left'] .popper__arrow {
|
|
border-width: 5px 0 5px 5px;
|
|
border-top-color: transparent;
|
|
border-right-color: transparent;
|
|
border-bottom-color: transparent;
|
|
right: -5px;
|
|
top: calc(50% - 5px);
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.popper__target,
|
|
.popper__manager {
|
|
display: inline-block;
|
|
}
|