.chart-annotation { position: absolute; height: 100%; &.is-staggered { height: calc(100% + 15px); } .indicator { color: $grey; display: block; width: 20px; height: 20px; padding: 0; border: none; background: transparent; margin-left: -10px; margin-top: -10px; cursor: pointer; pointer-events: auto; .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; } }