-
Notifications
You must be signed in to change notification settings - Fork 7
/
BarGraph.css
87 lines (76 loc) · 1.36 KB
/
BarGraph.css
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
.bar-graph {
background: #1a1a1a;
padding: 1rem;
border-radius: 4px;
margin: 1rem 0;
font-family: monospace;
}
.bar-row {
display: flex;
align-items: center;
height: 30px;
margin: 4px 0;
}
.negative-space {
flex: 1;
display: flex;
justify-content: flex-end;
position: relative;
}
.positive-space {
flex: 1;
position: relative;
}
.feature-name {
padding: 0 1rem;
color: #fff;
width: 180px;
text-align: center;
font-size: 0.9rem;
background: #333;
margin: 0 2px;
border-radius: 2px;
}
.bar {
position: absolute;
height: 16px;
top: 50%;
transform: translateY(-50%);
}
.bar.positive {
left: 0;
background: #4caf50;
border-radius: 0 2px 2px 0;
}
.bar.negative {
right: 0;
background: #f44336;
border-radius: 2px 0 0 2px;
}
.value {
width: 60px;
padding-left: 1rem;
color: #fff;
font-size: 0.9rem;
}
.filter-controls {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
padding: 0.5rem;
background: #333;
border-radius: 4px;
}
.filter-controls select {
padding: 0.5rem;
background: #1a1a1a;
color: #fff;
border: 1px solid #444;
border-radius: 2px;
font-family: monospace;
font-size: 0.9rem;
}
.filter-controls select:focus {
outline: none;
border-color: var(--color-nebula-purple);
}