index.less 1.49 KB
Newer Older
jim's avatar
jim committed
1
@import '~antd/lib/style/themes/default.less';
2 3 4 5 6 7 8 9 10

.descriptionList {
  // offset the padding-bottom of last row
  :global {
    .ant-row {
      margin-bottom: -16px;
      overflow: hidden;
    }
  }
11 12 13 14 15 16 17 18
  // fix margin top error of following descriptionList
  & + & {
    :global {
      .ant-row {
        margin-top: 16px;
      }
    }
  }
19 20

  .title {
21
    margin-bottom: 16px;
22
    color: @heading-color;
ddcat1115's avatar
ddcat1115 committed
23
    font-weight: 500;
24
    font-size: 14px;
25 26 27
  }

  .term {
28
    display: table-cell;
29 30
    padding-bottom: 16px;
    color: @heading-color;
31 32
    // Line-height is 22px IE dom height will calculate error
    line-height: 20px;
33 34
    white-space: nowrap;

35
    &::after {
36
      position: relative;
jim's avatar
jim committed
37
      top: -0.5px;
38 39
      margin: 0 8px 0 2px;
      content: ':';
40 41 42 43
    }
  }

  .detail {
44
    display: table-cell;
ddcat1115's avatar
ddcat1115 committed
45
    width: 100%;
46 47
    padding-bottom: 16px;
    color: @text-color;
48
    line-height: 20px;
49 50
  }

51 52 53 54 55 56 57
  &.small {
    // offset the padding-bottom of last row
    :global {
      .ant-row {
        margin-bottom: -8px;
      }
    }
58 59 60 61 62 63 64 65
    // fix margin top error of following descriptionList
    & + .descriptionList {
      :global {
        .ant-row {
          margin-top: 8px;
        }
      }
    }
66 67 68 69
    .title {
      margin-bottom: 12px;
      color: @text-color;
    }
jim's avatar
jim committed
70 71
    .term,
    .detail {
72 73 74
      padding-bottom: 8px;
    }
  }
75

76 77 78 79 80 81 82
  &.large {
    .title {
      font-size: 16px;
    }
  }

  &.vertical {
83 84
    .term {
      display: block;
85
      padding-bottom: 8px;
86 87 88 89 90 91 92
    }

    .detail {
      display: block;
    }
  }
}