aboutsummaryrefslogtreecommitdiff
path: root/templates/@theme-base/pm-styles/_pm-circlebar.scss
blob: 462ccd9f8b5b45782599fdbb8a5cfc545b8dfeb6 (plain)
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
$stroke-width: 3px !default; // be careful to udpate SVG if you want to update this value

.circle-chart__background {
  stroke: var(--bgcolor-aside-link, rgba($white,.2));
  stroke-width: $stroke-width;
  fill: transparent;
}
.circle-chart__background--bigger .circle-chart__background {
  stroke: var(--bgcolor-input, rgba($pm-global-grey, .2));
  opacity: .4;
}

.circle-chart__circle {
  stroke: $pm-global-success;
  stroke-width: $stroke-width;
  fill: transparent;
  animation: circle-chart-fill 2s reverse;
  transform: rotate(-90deg); 
  transform-origin: center;
}
.circle-bar--global-attention .circle-chart__circle {
   stroke: $pm-global-attention;
}
.circle-bar--global-warning .circle-chart__circle {
  stroke: $pm-global-warning;
}
.circle-chart__percent {
  fill: var(--color-standard-text, $white);
}
.circle-chart-info {
  color: var(--color-standard-text, $pm-global-light);
}


@keyframes circle-chart-fill {
  to { stroke-dasharray: 0 100; }
}