$radio-prefix-cls: $prefix-name + "color-picker";

@import "./mixin.scss";


.#{$radio-prefix-cls} {

    * {
        user-select: none;
    }

    &-trigger {
        $triggerHeight: 32px;
        height: $triggerHeight;
        width: 32px;
        $triggerPadding: 4px;
        padding: $triggerPadding;
        position: relative;
        box-shadow: 0 0px 1px 0;
      border-radius:$borderRadius;
        background: white;


        &::before {
            @include alphaImg(10px);
            content: '';
            display: block;
            width: 100%;
            height: 100%;


        }

        &-inner {
            width: calc(100% - $triggerPadding - $triggerPadding);
            height: calc(100% - $triggerPadding - $triggerPadding);
            position: absolute;
            z-index: 1;
            top: 4px;
          border-radius:$borderRadius;

        }
    }

    &-panel {
        padding: 5px;
        box-shadow: 0 1px 5px rgba($color: #000000, $alpha: .3);
        background: white;
        z-index: 2;

        &-inner {
            position: relative;
        }

        &-point {
            position: absolute;
            width: 6px;
            height: 6px;
            left: 10px;
            top: 0;
            box-shadow: 0 0 0 1px #fff, inset 0 0 0px 1px rgba($color: #000000, $alpha: .3), 0 0 0px 2px rgba($color: #000000, $alpha: .4);
            border-radius: 50%;
            transform: translate(-3px,-3px);

        }
    }

    &-hue {
        width: 100%;
        height: 10px;
        background: linear-gradient(90deg, #f00 0, #ff0 calc(100% / 6), #0f0 calc(200% / 6), #0ff calc(300% / 6), #00f calc(400% / 6), #f0f calc(500% / 6), #f00);
        position: relative;

        &-thumb {
            width: 4px;
            height: 100%;
            box-shadow: 0 0 2px 0;
            background: white;
            cursor: pointer;
            position: absolute;
        }
    }

    &-alpha {
        $height: 10px;
        width: 100%;
        height: $height;
        margin-top: 6px;
        position: relative;

        &::before {
            content: '';
            display: block;
            height: 100%;
            @include alphaImg($height );
            width: 100%;
            position: absolute;
            z-index: -1;
        }

    }
}