.rickshaw_legend {
  font-family: Arial;
  font-size: 12px;
  color: $gray-600;
  display: inline-block;
  padding: 12px 5px;
  border-radius: 2px;
  position: relative;
}
.rickshaw_legend:hover {
  z-index: 10;
}
.rickshaw_legend .swatch {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.rickshaw_legend .line {
  clear: both;
  line-height: 140%;
  padding-right: 15px;
}
.rickshaw_legend .line .swatch {
  display: inline-block;
  margin-right: 3px;
  border-radius: 2px;
}
.rickshaw_legend .label {
  margin: 0;
  white-space: nowrap;
  display: inline;
  font-size: inherit;
  background-color: transparent;
  color: $gray-500;
  font-weight: normal;
  line-height: normal;
  padding: 0px;
  text-shadow: none;
}
.rickshaw_legend .action {
  margin-right: 0.2em;
  font-size: 10px;
  color: $gray-500;
  opacity: 0.8;
  cursor: pointer;
  font-size: 14px;

  &:hover {
    opacity: 1;
  }
}
.rickshaw_legend .line.disabled {
  opacity: 0.5;
}
.rickshaw_legend ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin: 2px;
  cursor: pointer;
}
.rickshaw_legend li {
  padding: 0 0 0 2px;
  min-width: 80px;
  white-space: nowrap;
}
.rickshaw_legend li:hover,
.rickshaw_legend li:active {
  background: rgba($gray-300, (20/100));

  .label {
    color: $gray-700;
  }
  .action {
    color: $gray-700;
  }
  border-radius: 3px;
}
.rickshaw-wrap {
  position: relative;
}
.rickshaw-legend-wrap {
  position: absolute;
  background-color: transparent;
  top: 2px;
  right: 2px;

  .rickshaw_legend {
    padding: 0;
  }
}
