forked from Definehack/Define25
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathanalytics.css
More file actions
141 lines (121 loc) · 3.01 KB
/
analytics.css
File metadata and controls
141 lines (121 loc) · 3.01 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
.analytics-container {
background: rgba(18, 18, 18, 0.95);
padding: 1.5rem;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
max-width: 100%;
overflow-x: hidden;
position: relative;
min-height: 400px;
max-height: 100%;
font-family: Arial, Helvetica, sans-serif;
}
.year-select {
background: rgba(18, 18, 18, 0.95);
color: rgba(255, 255, 255, 0.87);
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 8px 16px;
border-radius: 4px;
margin-bottom: 20px;
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
}
.year-select:hover {
border-color: #774EBD;
}
.year-select:focus {
outline: none;
border-color: #774EBD;
}
@media screen and (max-width: 900px) {
.analytics-container {
overflow-x: auto;
padding: 1rem;
min-height: 450px;
}
.chart-container {
height: calc(100% - 70px);
}
.recharts-wrapper {
width: 90% !important;
height: 85% !important;
transform: scale(0.9);
}
}
.chart-container {
position: relative;
width: 100%;
height: calc(100% - 50px);
padding: 0.5rem;
display: flex;
flex-direction: column;
align-items: center;
}
.recharts-wrapper {
position: relative !important;
width: 100% !important;
height: 90% !important;
margin: 0 auto;
transform-origin: top center;
transform: scale(0.85);
}
.recharts-responsive-container {
width: 100% !important;
height: 100% !important;
max-height: 250px !important;
}
.chart-container h3 {
color: rgba(255, 255, 255, 0.87);
margin-bottom: 1.5rem;
font-size: 1.2rem;
font-family: Arial, Helvetica, sans-serif;
}
/* Tooltip customization */
.recharts-tooltip-wrapper .recharts-default-tooltip {
background-color: rgba(18, 18, 18, 0.95) !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
border-radius: 4px;
padding: 0.5rem;
}
.recharts-tooltip-item-list {
color: rgba(255, 255, 255, 0.87);
}
/* Legend customization */
.recharts-default-legend {
margin-top: 1rem !important;
}
.recharts-legend-item-text {
color: rgba(255, 255, 255, 0.87) !important;
}
/* Reset any transformations on the surface */
.recharts-surface {
overflow: visible;
transform: none;
}
/* Remove scaling from bars to fix alignment */
.recharts-bar-rectangle {
transform: none;
}
/* Adjust text positioning */
.recharts-text {
font-size: 11px;
}
.recharts-cartesian-axis-tick-value {
transform: translateY(3px);
}
/* Ensure bars align with grid lines */
.recharts-bar {
transform-origin: center;
shape-rendering: crispEdges;
}
@media screen and (max-width: 768px) {
.analytics-container {
padding: 1rem;
min-height: 350px;
}
}