index.less 1.28 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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
@import "~antd/lib/style/themes/default.less";
@import "../../../utils/utils.less";

.pie {
  .content {
    position: relative;
  }
  .legend {
    position: absolute;
    top: 50%;
    right: 0;
    min-width: 200px;
    li {
      cursor: pointer;
      margin-bottom: 16px;
      height: 22px;
      line-height: 22px;
    }
  }
  .dot {
    border-radius: 8px;
    display: inline-block;
    margin-right: 8px;
    position: relative;
    top: -1px;
    height: 8px;
    width: 8px;
  }
  .line {
    background-color: @border-color-split;
    display: inline-block;
    margin-right: 8px;
    width: 1px;
    height: 16px;
  }
  .legendTitle {
    color: @text-color;
    margin-right: 8px;
  }
  .percent {
    color: @text-color-secondary;
  }
  .value {
    position: absolute;
    right: 0;
  }
afc163's avatar
afc163 committed
47
  .title {
afc163's avatar
afc163 committed
48
    margin-bottom: 8px;
afc163's avatar
afc163 committed
49
  }
50 51 52 53 54 55 56 57 58 59 60 61 62 63
  .total {
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -34px;
    text-align: center;
    height: 62px;
    & > h4 {
      color: @text-color-secondary;
      font-size: 14px;
      line-height: 22px;
      height: 22px;
      margin-bottom: 8px;
afc163's avatar
afc163 committed
64
      font-weight: normal;
65 66 67 68
    }
    & > p {
      color: @heading-color;
      display: block;
niko's avatar
niko committed
69
      font-size: 30px;
70 71 72 73 74
      height: 32px;
      line-height: 32px;
    }
  }
}