_charts.scss 731 字节
Newer Older
C
chomik 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
.chart {
  display: block;
  min-height: 10rem !important;

  text {
    font-family: inherit;
  }
}

.chart-placeholder {
  background-image: linear-gradient(135deg, $border-color 25%, transparent 25%, transparent 50%, $border-color 50%, $border-color 75%, transparent 75%, transparent 100%);
  background-size: 14.14px 14.14px;
}

.sparkline {
  position: relative;
  width: 4rem;
  height: 2.5rem;
C
chomik 已提交
19
  line-height: 1;
C
chomik 已提交
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
}

.sparkline-square {
  width: 2.5rem;
}

.sparkline-wide {
  width: 6rem;
}

.sparkline-label {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: px2rem(11px);

  .icon {
    width: 1rem;
    height: 1rem;
  }
}