personal-site/sass/chartist/_custom_charts.scss -rw-r--r-- 745 bytes View raw
                                                                                
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
#chart_wrapper {
  // works but not really
  /*position: absolute;
  right: 0px;
  left: 0px;*/
  
  position: relative;
  width: 98vw;
  //height: 100vw;
  margin: 0 auto;
  left: calc(-49vw + 50%);
}

g.axis .tick line {
  opacity: .2;
}

.x-label {
  font-size: 1.5em;
  font: sans-serif;
}

.line {
  fill: none;
  stroke-width: 1.5px;
}

.axis--y {
  path.domain {
    opacity: .8;
  }
}

svg g:hover {
  line,path {
    opacity: .1;
  }
  line:hover, path:hover {
    opacity: 1;
  }
}

.city {
  pointer-events: all;
  path {
    opacity: 1;
    stroke-width: 4px;
  }
  &:hover {
    color: red;
    .line {
      opacity: 1;
    }
    text {
      font-weight: bold;
      font-size: 20px;
      text-decoration: underline;
    }
  }
}