index.less 1.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";

.standardFormRow {
  border-bottom: 1px dashed @border-color-split;
  padding-bottom: 16px;
  margin-bottom: 16px;
  display: flex;
  :global {
    .ant-form-item {
      margin-right: 24px;
    }
    .ant-form-item-label label {
      color: @text-color;
niko's avatar
niko committed
15
      margin-right: 0;
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
    }
  }
  .label {
    color: @heading-color;
    font-size: @font-size-base;
    margin-right: 24px;
    flex: 0 0 auto;
    text-align: right;
    & > span {
      display: inline-block;
      height: 32px;
      line-height: 32px;
      &:after {
        content: ':';
      }
    }
  }
  .content {
    flex: 1 1 0;
    :global {
      .ant-form-item:last-child {
        margin-right: 0;
      }
    }
  }
}

.standardFormRowLast {
  border: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.standardFormRowBlock {
  :global {
    .ant-form-item,
    div.ant-form-item-control-wrapper {
      display: block;
    }
  }
}

.standardFormRowGrid {
  :global {
    .ant-form-item,
    div.ant-form-item-control-wrapper {
      display: block;
    }
    .ant-form-item-label {
      float: left;
    }
  }
}