blob: 0bf36090b670c8d712ff01f734d06d54a3e1ee98 (
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
|
// Styles for /lib/components/data/graph.jsx component
export const graphStyles = /* css */ `
.graph {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: flex-end;
gap: 4px;
overflow: hidden;
border-radius: inherit;
}
.graph__bars {
flex: 1 1 100%;
height: 75%;
display: flex;
align-items: flex-end;
justify-content: flex-end;
pointer-events: none;
}
.graph__bar {
min-height: 1px;
opacity: 0.75;
}
.graph__data {
position: absolute;
top: 3px;
left: 3px;
width: calc(100% - 6px);
flex: 0 0 auto;
display: flex;
justify-content: space-between;
gap: 2px;
}
.graph__data-item {
display: flex;
align-items: center;
gap: 3px;
}
.graph__data-item-icon {
flex: 0 0 10px;
width: 10px;
height: 10px;
fill: currentColor;
}
.graph__data-item-value {
font-size: calc(var(--font-size) - 2px);
}
`;
|