@import "../../constants/index.scss";

.hsl {
  display: inline-flex;
  flex-direction: column;
  min-width: 120px;
  max-width: $width;
  border-radius: 8px;
  overflow: hidden;
  border-top-left-radius: 4px;
  padding: 8px;
  font-size: 14px;
  box-sizing: border-box;
  line-height: 1.2;
  text-align: left;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;

  &.darkMode {
    border: 1px solid darken($primary-color, 10);
    background-color: $primary-color;
    color: #fff;
    -webkit-font-smoothing: antialiased;
  }

  &:hover {
    .hslMeta {
      opacity: 0.5;
      height: 14px;
      margin-top: 6px;
    }
  }

  .hslMeta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    height: 0;
    opacity: 0;
    transition: 0.1s ease-out;
    > div:last-child {
      margin-left: 12px;
    }
  }
}
