@mixin text {
  border: none;
  outline: none;
  background: none;
  font-size: 12px;
  color: rgb(51, 51, 51);
  height: 16px;
}

@mixin dot {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border-radius: 50%;
  opacity: 1;
}

& {
  padding-top: 5px;
  padding-left: 5px;
  box-sizing: initial;
  width: 240px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 2px 10px, rgba(0, 0, 0, 0.16) 0 2px 5px;
  border-radius: 2px;
  background: rgb(255, 255, 255);

  &__swatch {
    height: 15px !important;
    width: 15px !important;
    position: relative;
    outline: none;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
  }

  &__color-text-container {
    display: flex;
    padding-bottom: 6px;
    padding-right: 5px;
    position: relative;
  }

  &__selected-color {
    position: absolute !important;
    top: 6px;
    left: 5px;
    height: 9px !important;
    width: 9px !important;
  }

  &__hex-text-container {
    position: relative;
    flex: 6 1 0;
  }

  &__rgb-text-container {
    position: relative;
    flex: 3 1 0;
  }

  &__hex-text {
    @include text;
    width: 80%;
    padding: 0 0 0 20%;
  }

  &__rgb-text {
    @include text;
    width: 70%;
    padding: 0 0 0 30%;
  }

  &__rbg-label {
    position: absolute;
    top: 3px;
    left: 0;
    line-height: 16px;
    text-transform: uppercase;
    font-size: 12px;
    color: rgb(153, 153, 153);
  }

  &__dot--white {
    @include dot;
    background: rgb(255, 255, 255);
  }

  &__dot--black {
    @include dot;
    background: rgb(0, 0, 0);
  }
}
