-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchart.css
More file actions
164 lines (142 loc) · 2.66 KB
/
Copy pathchart.css
File metadata and controls
164 lines (142 loc) · 2.66 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/* General page styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: #fafafa;
min-height: 100vh;
padding: 40px 20px;
} /* Container styling */
.container {
max-width: 1100px;
margin: 0 auto;
background: white;
border-radius: 0;
padding: 50px 40px 40px 40px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
h1 {
color: #222;
font-size: 26px;
font-weight: 600;
margin-bottom: 8px;
text-align: left;
letter-spacing: -0.3px;
line-height: 1.3;
}
.subtitle {
color: #666;
text-align: left;
margin-bottom: 35px;
font-size: 15px;
font-weight: 400;
line-height: 1.5;
}
/* Chart styling */
#chart {
margin-top: 30px;
}
/* Header section with button */
.header-section {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
margin-bottom: 20px;
}
/* Button styling */
.view-all-btn {
background-color: #1f77b4;
color: white;
border: none;
padding: 10px 20px;
font-size: 14px;
font-weight: 500;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s ease;
white-space: nowrap;
margin-top: 8px;
}
.view-all-btn:hover {
background-color: #154b9e;
}
.view-all-btn:active {
transform: scale(0.98);
}
/* D3.js bar styling */
.bar {
fill: #1f77b4;
transition: fill 0.2s ease;
cursor: pointer;
}
.bar:hover {
fill: #154b9e;
}
/* Axis styling */
.x-axis, .y-axis {
font-size: 12px;
}
.x-axis line, .y-axis line,
.x-axis path, .y-axis path {
stroke: #e0e0e0;
stroke-width: 1;
}
.y-axis text {
font-size: 12px;
font-weight: 400;
color: #555;
}
.x-axis text {
color: #555;
font-size: 12px;
}
/* Grid lines */
.grid-line {
stroke: #f0f0f0;
stroke-width: 1;
stroke-dasharray: 0;
}
.axis-label {
font-size: 12px;
font-weight: 400;
fill: #888;
letter-spacing: 0.3px;
}
/* Label styling */
.bar-label {
font-size: 11px;
font-weight: 600;
fill: white;
pointer-events: none;
}
/* Tooltip styling */
.tooltip {
position: absolute;
background-color: #333;
color: white;
padding: 6px 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
z-index: 1000;
white-space: nowrap;
}
/* Responsive design */
@media (max-width: 600px) {
.container {
padding: 20px;
}
h1 {
font-size: 22px;
}
.subtitle {
font-size: 12px;
}
}