-
Notifications
You must be signed in to change notification settings - Fork 82
/
AuthorBarChart.scss
99 lines (85 loc) · 1.51 KB
/
AuthorBarChart.scss
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@import "styles/_pallete";
.author-bar-chart__container {
width: fit-content;
display: flex;
flex-direction: column;
align-items: flex-end;
}
.author-bar-chart__header {
width: 100%;
text-align: right;
padding-left: 40px;
& .select-box {
font-size: 10px;
background: transparent;
border: 1px solid $white;
border-radius: 5px;
width: fit-content;
padding: 0 10px;
height: 25px;
color: $white;
outline: none;
text-align: center;
option {
background: $gray-900;
}
}
}
.author-bar-chart {
overflow: visible;
margin: 20px 40px 40px;
.axis {
color: $white;
font-weight: bold;
&.x-axis {
.tick {
display: none;
}
}
&.x-axis {
.x-axis-label {
fill: $white;
}
}
}
.bars {
cursor: pointer;
.bar {
&:hover {
rect {
fill: transparent;
stroke: var(--primary-color);
stroke-width: 2;
}
}
rect {
fill: var(--primary-color);
}
.name {
fill: $white;
stroke: none;
font-size: 10px;
text-anchor: start;
font-weight: normal;
}
}
}
}
.author-bar-chart__tooltip {
display: none;
position: absolute;
background: $white;
padding: 8px 16px;
text-align: center;
font-size: 10px;
line-height: 1.5;
border-radius: 5px;
color: $gray-900;
.selected {
color: var(--primary-color);
font-weight: bold;
}
.name {
font-weight: bold;
}
}