@import '../../style/themes/default';

.m-colorPicker {
  width: 100%;

  > .chooseColor {
    width: 100%;
  }

  position: relative;
  text-align: left;
  font-size: 14px;
  display: inline-block;

  ul, li, ol {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  input[type='color'] {
    display: none;
  }

  .colorBtn {
    width: 15px;
    height: 15px;
  }

  .colorBtn.disabled {
    cursor: no-drop;
  }

  .box {
    z-index: 9999;
    position: absolute;
    width: 226px;
    background: #fff;
    visibility: hidden;
    border-radius: 2px;
    margin-top: 2px;
    padding: 10px;
    padding-bottom: 5px;
    box-shadow: @box-shadow-base;
    opacity: 0;
    transition: all .3s ease;

    h3 {
      margin: 0;
      font-size: @font-size-base;
      font-weight: normal;
      margin-top: 10px;
      margin-bottom: 5px;
      line-height: 1;
    }
  }

  .box.open {
    visibility: visible;
    opacity: 1;
  }

  .hd {
    overflow: hidden;
    line-height: 29px;

    .colorView {
      width: 100px;
      height: 30px;
      float: left;
      transition: background-color .3s ease;
    }

    .defaultColor {
      width: 80px;
      float: right;
      text-align: center;
      border: 1px solid @border-color-base;
      cursor: pointer;
      border-radius: @border-radius-base;
    }
  }

  .tColor {
    li {
      width: 15px;
      height: 15px;
      display: inline-block;
      margin: 0 2px;
      transition: all .3s ease;
    }

    li:hover {
      box-shadow: 0 0 5px rgba(0, 0, 0, .4);
      transform: scale(1.3);
    }
  }

  .bColor {
    li {
      width: 15px;
      display: inline-block;
      margin: 0 2px;

      li {
        display: block;
        width: 15px;
        height: 15px;
        transition: all .3s ease;
        margin: 0;
      }

      li:hover {
        box-shadow: 0 0 5px rgba(0, 0, 0, .4);
        transform: scale(1.3);
      }
    }
  }
}

