summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/pages/graph.scss
blob: c4b6cdd703d97828a391bff897055e91967ffa0e (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.project-network {
  border: 1px solid $border-color;

  .controls {
    color: $project-network-controls-color;
    font-size: 14px;
    padding: 5px;
    border-bottom: 1px solid $border-color;
    background: $gray-darker;
  }

  .network-graph {
    background: $white;
    height: 500px;
    overflow-y: scroll;
    overflow-x: hidden;
  }
}

.svg-graph-container {
  width: 100%;

  .axis-tick {
    opacity: 0.4;
  }

  .tick-text {
    fill: $gl-text-color-secondary;
  }

  .x-axis-text {
    fill: $gray-900;
  }

  .bar-rect {
    fill: rgba($blue-500, 0.1);
    stroke: $blue-500;
  }

  .bar-rect:hover {
    fill: rgba($blue-700, 0.3);
  }

  .y-axis-label {
    line {
      stroke: $gl-gray-350;
    }

    text {
      font-weight: bold;
      font-size: 12px;
      fill: $gray-700;
    }
  }
}

.svg-graph-container-with-grab {
  cursor: grab;
}

.svg-graph-container-grabbed {
  cursor: grabbing;
}

@keyframes flickerAnimation {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.animate-flicker {
  animation: flickerAnimation 1.5s infinite;
  fill: $gray-300;
}