Socialify

Folder ..

Viewing _pm-circlebar.scss
41 lines (36 loc) • 1.0 KB

 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
$stroke-width: 3px !default; // be careful to udpate SVG if you want to update this value

// this component is used for VPN
// and for the moment on Angular/React sidebar
.circle-chart__background {
  stroke: var(--color-main-area, $pm-global-grey);
  opacity: .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--medium .circle-chart__circle {
   stroke: $pm-global-attention;
}
.circle-bar--full .circle-chart__circle {
  stroke: $pm-global-warning;
}
.circle-chart__percent {
  fill: var(--color-main-area, rgba($pm-global-grey, .5) );
}

.circle-chart-info {
  color: var(--color-standard-text, $pm-global-light);
}


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