2021-02-26 01:50:35 +00:00
|
|
|
.chart-vertical-annotation {
|
2020-07-31 22:46:01 +00:00
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
|
2020-08-04 02:48:36 +00:00
|
|
|
&.is-staggered {
|
|
|
|
height: calc(100% + 15px);
|
|
|
|
}
|
|
|
|
|
2020-07-31 22:46:01 +00:00
|
|
|
.indicator {
|
|
|
|
color: $grey;
|
|
|
|
display: block;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
2020-08-05 03:14:42 +00:00
|
|
|
border-radius: 100%;
|
2020-07-31 22:46:01 +00:00
|
|
|
background: transparent;
|
|
|
|
margin-left: -10px;
|
|
|
|
margin-top: -10px;
|
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: auto;
|
|
|
|
|
2020-08-05 03:14:42 +00:00
|
|
|
&.is-active {
|
|
|
|
box-shadow: inset 0 0 0 2px $blue;
|
|
|
|
}
|
|
|
|
|
2020-07-31 22:46:01 +00:00
|
|
|
.icon {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $name, $pair in $colors {
|
|
|
|
$color: nth($pair, 1);
|
|
|
|
|
|
|
|
&.is-#{$name} .indicator {
|
|
|
|
color: $color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&.is-hovered {
|
|
|
|
color: darken($color, 2.5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.line {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 8px;
|
|
|
|
width: 1px;
|
|
|
|
height: calc(100% - 8px);
|
|
|
|
background: $grey;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
}
|
2021-02-26 01:50:35 +00:00
|
|
|
|
|
|
|
.chart-horizontal-annotation {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.indicator {
|
|
|
|
transform: translateY(-50%);
|
|
|
|
display: block;
|
|
|
|
border: none;
|
|
|
|
border-radius: 100px;
|
|
|
|
background: $red;
|
|
|
|
color: $white;
|
|
|
|
font-weight: $weight-semibold;
|
|
|
|
font-size: $size-7;
|
|
|
|
margin-left: 10px;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
background: $red;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
}
|