index.less 1.22 KB
Newer Older
jim's avatar
jim committed
1
@import '~antd/lib/style/themes/default.less';
2 3 4

.standardFormRow {
  display: flex;
5 6 7
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed @border-color-split;
8 9 10 11 12
  :global {
    .ant-form-item {
      margin-right: 24px;
    }
    .ant-form-item-label label {
niko's avatar
niko committed
13
      margin-right: 0;
14
      color: @text-color;
15
    }
afc163's avatar
afc163 committed
16 17
    .ant-form-item-label,
    .ant-form-item-control {
nikogu's avatar
nikogu committed
18 19 20
      padding: 0;
      line-height: 32px;
    }
21 22
  }
  .label {
23 24
    flex: 0 0 auto;
    margin-right: 24px;
25 26 27 28 29 30 31
    color: @heading-color;
    font-size: @font-size-base;
    text-align: right;
    & > span {
      display: inline-block;
      height: 32px;
      line-height: 32px;
32
      &::after {
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
        content: ':';
      }
    }
  }
  .content {
    flex: 1 1 0;
    :global {
      .ant-form-item:last-child {
        margin-right: 0;
      }
    }
  }
}

.standardFormRowLast {
  margin-bottom: 0;
49 50
  padding-bottom: 0;
  border: none;
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
}

.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;
    }
  }
}