index.less 1.15 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 11 12

.descriptionList {
  // offset the padding-bottom of last row
  :global {
    .ant-row {
      margin-bottom: -16px;
      overflow: hidden;
    }
  }

  .title {
nikogu's avatar
nikogu committed
13
    font-size: 14px;
14
    color: @heading-color;
ddcat1115's avatar
ddcat1115 committed
15
    font-weight: 500;
16 17 18 19
    margin-bottom: 16px;
  }

  .term {
20
    line-height: 22px;
21 22 23 24 25 26 27
    padding-bottom: 16px;
    margin-right: 8px;
    color: @heading-color;
    white-space: nowrap;
    display: table-cell;

    &:after {
jim's avatar
jim committed
28
      content: ':';
29 30
      margin: 0 8px 0 2px;
      position: relative;
jim's avatar
jim committed
31
      top: -0.5px;
32 33 34 35
    }
  }

  .detail {
36
    line-height: 22px;
ddcat1115's avatar
ddcat1115 committed
37
    width: 100%;
38 39 40 41 42
    padding-bottom: 16px;
    color: @text-color;
    display: table-cell;
  }

43 44 45 46 47 48 49 50 51 52 53
  &.small {
    // offset the padding-bottom of last row
    :global {
      .ant-row {
        margin-bottom: -8px;
      }
    }
    .title {
      margin-bottom: 12px;
      color: @text-color;
    }
jim's avatar
jim committed
54 55
    .term,
    .detail {
56 57 58
      padding-bottom: 8px;
    }
  }
59

60 61 62 63 64 65 66
  &.large {
    .title {
      font-size: 16px;
    }
  }

  &.vertical {
67 68 69 70 71 72 73 74 75 76
    .term {
      padding-bottom: 8px;
      display: block;
    }

    .detail {
      display: block;
    }
  }
}