@import './index';

// ================================================================
// =                      Children Component                      =
// ================================================================
.@{form-item-prefix-cls} {
  .@{mk-prefix}-mentions,
  textarea.@{mk-prefix}-input {
    height: auto;
  }

  // input[type=file]
  .@{mk-prefix}-upload {
    background: transparent;
  }
  .@{mk-prefix}-upload.@{mk-prefix}-upload-drag {
    background: @background-color-light;
  }

  input[type='radio'],
  input[type='checkbox'] {
    width: 14px;
    height: 14px;
  }

  // Radios and checkboxes on same line
  .@{mk-prefix}-radio-inline,
  .@{mk-prefix}-checkbox-inline {
    display: inline-block;
    margin-left: 8px;
    font-weight: normal;
    vertical-align: middle;
    cursor: pointer;

    &:first-child {
      margin-left: 0;
    }
  }

  .@{mk-prefix}-checkbox-vertical,
  .@{mk-prefix}-radio-vertical {
    display: block;
  }

  .@{mk-prefix}-checkbox-vertical + .@{mk-prefix}-checkbox-vertical,
  .@{mk-prefix}-radio-vertical + .@{mk-prefix}-radio-vertical {
    margin-left: 0;
  }

  .@{mk-prefix}-input-number {
    + .@{form-prefix-cls}-text {
      margin-left: 8px;
    }
    &-handler-wrap {
      z-index: 2; // https://github.com/ant-design/ant-design/issues/6289
    }
  }

  .@{mk-prefix}-select,
  .@{mk-prefix}-cascader-picker {
    width: 100%;
  }

  // Don't impact select inside input group
  .@{mk-prefix}-input-group .@{mk-prefix}-select,
  .@{mk-prefix}-input-group .@{mk-prefix}-cascader-picker {
    width: auto;
  }
}
