-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcharts.css
More file actions
182 lines (158 loc) · 3.87 KB
/
Copy pathcharts.css
File metadata and controls
182 lines (158 loc) · 3.87 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/*!
* charts.css — sibling stylesheet for charts.html.
* Sized to run under `style-src 'self'` with no 'unsafe-inline'.
*
* Coordinated tokens with charts.html:
* - `.no-js #loading { display: none; }` cooperates with the parser-
* blocking inline script in <head>, which strips the `no-js` class
* before <body> paints so JS-enabled users immediately see the
* "Loading…" placeholder. JS-disabled users keep the class and the
* <noscript> block carries the "JavaScript is required" messaging.
* - `.hidden { display: none; }` is the class-based replacement for
* `style="display: none"` attributes on #error and #content; the JS
* path toggles via `classList`/`style.display` (DOM mutation, which
* CSP does not gate).
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
line-height: 1.6;
color: #333;
background: #f5f5f5;
padding: 20px;
}
.container {
max-width: 1400px;
margin: 0 auto;
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1 {
color: #2c3e50;
margin-bottom: 10px;
font-size: 2em;
}
.metadata {
background: #f8f9fa;
padding: 15px;
border-radius: 4px;
margin-bottom: 30px;
font-size: 0.9em;
}
.metadata-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 10px;
}
.metadata-item {
display: flex;
gap: 5px;
}
.metadata-label {
font-weight: 600;
color: #555;
}
.chart-section {
margin-bottom: 40px;
}
.chart-section h2 {
color: #34495e;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid #3498db;
}
.chart-container {
position: relative;
height: 400px;
margin-bottom: 20px;
}
.chart-description {
color: #666;
font-size: 0.9em;
margin-bottom: 15px;
font-style: italic;
}
.links {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #ddd;
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.links a {
color: #3498db;
text-decoration: none;
padding: 8px 16px;
border: 1px solid #3498db;
border-radius: 4px;
transition: all 0.3s;
}
.links a:hover {
background: #3498db;
color: white;
}
.error {
background: #fee;
color: #c33;
padding: 20px;
border-radius: 4px;
border-left: 4px solid #c33;
white-space: pre-line;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.error code {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
background: rgba(0, 0, 0, 0.05);
padding: 1px 4px;
border-radius: 3px;
}
.loading {
text-align: center;
padding: 40px;
color: #666;
}
.chart-empty {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: #888;
font-style: italic;
background: #fafafa;
border: 1px dashed #ddd;
border-radius: 4px;
padding: 20px;
text-align: center;
}
/* Class-based hiding for elements that start invisible (#error, #content);
pairs with `style-src 'self'` since `style="display: none"` would require
'unsafe-inline'. JS toggles via element.style.display (a DOM property
mutation, which CSP does not gate). */
.hidden {
display: none;
}
/* When scripting is disabled, hide the misleading "Loading..." placeholder
and let the <noscript> error block carry the message. The parser-blocking
inline script in charts.html's <head> removes `no-js` from <html> before
<body> paints, so JS-enabled users never see this rule applied. */
.no-js #loading {
display: none;
}
@media (max-width: 768px) {
.container {
padding: 15px;
}
h1 {
font-size: 1.5em;
}
.chart-container {
height: 300px;
}
}