.#{$color-picker-prefix-cls} {
  position: relative;
  display: flex;
  width: 64px;
  padding: 1px;

  .color-view {
    width: 40px;
    height: 22px;
    background-color: #FFF;
    border-radius: 4px 0 0 4px;
    border: 1px solid rgba(0, 0, 0, 45);
    border-right: none;
  }

  .color-button {
    width: 22px;
    text-align: center;
    line-height: 22px;
    color: rgba(255, 255, 255, .8);
    font-size: 24px;
    transition: color .3s;
    cursor: pointer;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 45);
    border-radius: 0 4px 4px 0;
  }

  &-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
  }

  &-modal {
    position: absolute;
    top: 30px;
    width: 225px;
    z-index: 100;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.35);
    background-color: #FFF;

    .color-area {
      height: 125px;
      border-radius: 2px 2px 0px 0px;
      overflow: hidden;
    }

    .color-area,
    .color-handle {
      position: relative;
      z-index: 1000;
    }

    .saturation-white {
      background: linear-gradient(to right, #fff, rgba(255,255,255,0));
    }
    .saturation-black {
      background: linear-gradient(to top, #000, rgba(0,0,0,0));
    }

    .color-pancel,
    .saturation-white,
    .saturation-black {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
    }

    .picker-btn {
      position: absolute;
      top: 0;
      left: 100%;
      width: 12px;
      height: 12px;
      transform: translate(-6px, -6px);
      border-radius: 6px; box-shadow: rgb(255, 255, 255) 0px 0px 0px 1px inset;
    }

    .color-handle {
      padding: 0 16px 20px;

      &-bar-container {
        width: 160px;
      }

      .color-change-container {
        display: flex;
        align-items: center;
        height: 60px;
        justify-content: space-between;

        .color-preview {
          position: relative;
          width: 24px;
          height: 24px;
          & > div {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            border-radius: 12px;
          }
        }
        .color-preview-bg {
          z-index: 2;
        }
        .color-preview-border {
          z-index: 1;
          border: 1px solid #ccc;
        }
        .color-bar,
        .opacity-bar {
          position: relative;
          height: 10px;
          padding: 0px 2px;
          background: linear-gradient(to right, #f00 0%, #f0f 17%, #00f 33%, #0ff 50%, #0f0 67%, #ff0 83%, #f00 100%);
        }

        .color-bar-btn,
        .opacity-bar-btn {
          position: absolute;
          left: 0%;
          width: 16px;
          height: 16px;
          border-radius: 8px;
          transform: translate(-8px, -3px);
          background-color: rgb(255, 255, 255);
          box-shadow: rgba(0, 0, 0, 0.37) 0px 1px 4px 0px;
          cursor: pointer;
        }

        .opacity-bar {
          margin-top: 12px;
          background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKCAYAAAHKue4KAAAAAXNSR0IArs4c6QAAAFpJREFUKBWlT0EOACAIqj7m231ZzTaaYRuHvKiIiM3dZ0Ps5o0UNAMDAsgdBVgdBQZmdkiBXU0AvCAViolQySEJ0oNWYNf5ftT8Ns/lBV7gvvzABOXw28G3wAJlTDMugytNXQAAAABJRU5ErkJggg==);
        }

        .opacity-bar-preview {
          position: absolute;
          width: 100%;
          height: 100%;
          z-index: 1;
        }

        .opacity-bar-btn {
          left: 100%;
          z-index: 2;
        }
      }
      .color-picker-input {
        flex: 1;
        margin-left: -6px;

        .confirm {
          .color-tips {
            margin-right: -30px;
          }
        }

        .ml-6 {
          margin-left: 6px;
          flex: 1;
        }

        .color-value {
          display: block;
          line-height: 22px;
          font-size: 12px;
          color: rgb(51, 51, 51);
          border-radius: 2px;
          border: none;
          box-shadow: rgb(218, 218, 218) 0px 0px 0px 1px inset;
          text-align: center;
          min-width: 40px;
          .input {
            padding: 0 4px;
          }
        }

        .color-tips {
          text-transform: uppercase;
          font-size: 12px;
          line-height: 12px;
          color: rgb(150, 150, 150);
          text-align: center;
          display: block;
          margin-top: 12px;
        }
      }
      .color-type-btn {
        width: 24px;
        text-align: right;
        cursor: pointer;
        margin-left: 8px;
        margin-right: -4px;

        svg {
          width: 24px;
          height: 24px;
          user-select: none;
        }
      }
    }
  }
}
