@import '../../style/themes/index';

.@{rux-prefix}-uploadSize {
  div:first-child {
    width: 200px;
    height: 200px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    padding: 8px;
  }
}

.@{rux-prefix}-imageCrop-delete {
  font-size: 18px;
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 2px;
  cursor: pointer;
  background: rgba(0, 0, 0, .4);
  color: #fff;
}

@pkg: antd-img-crop;

.@{pkg}-modal {
  .ant-modal-body {
    padding-bottom: 16px;
  }

  .@{pkg}-container {
    position: relative;
    width: 100%;
    height: 40vh;
    margin-bottom: 16px;
  }

  .@{pkg}-control {
    display: flex;
    align-items: center;
    width: 60%;
    margin-left: auto;
    margin-right: auto;

    button {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 34px;
      height: 34px;
      padding: 0;
      font-style: normal;
      background: transparent;
      border: 0;
      outline: 0;
      cursor: pointer;

      &[disabled] {
        cursor: default;
      }
    }

    &.zoom button {
      font-size: 18px;
    }

    &.rotate button {
      font-size: 16px;

      &:first-of-type {
        transform: rotate(-20deg);
      }

      &:last-of-type {
        transform: rotate(20deg);
      }
    }

    .ant-slider {
      flex: 1;
      margin: 0 8px;
    }
  }
}


