UNPKG

6.6 kBCSSView Raw
1/*!
2 * Copyright (c) 2017 ~ present NAVER Corp.
3 * billboard.js project is licensed under the MIT license
4 *
5 * billboard.js, JavaScript chart library
6 * https://naver.github.io/billboard.js/
7 *
8 * @version 3.14.2
9 */
10/*-- Dark Theme --*/
11/*-- Default color pattern --*/
12.bb-color-pattern {
13 background-image: url("#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;");
14}
15
16/*-- Chart --*/
17.bb svg {
18 font-size: 12px;
19 font-family: Helvetica, Arial, sans-serif, "nanumgothic", "Dotum";
20 line-height: 1;
21}
22.bb path, .bb line {
23 fill: none;
24 stroke: #8d9cab;
25}
26.bb text, .bb .bb-button {
27 -webkit-user-select: none;
28 -moz-user-select: none;
29 -ms-user-select: none;
30 user-select: none;
31 fill: #8d9cab;
32 font-size: 11px;
33}
34
35.bb-legend-item-title,
36.bb-xgrid-focus,
37.bb-ygrid-focus,
38.bb-ygrid,
39.bb-line {
40 shape-rendering: crispEdges;
41}
42
43.bb-chart-arcs .bb-needle {
44 fill: #8d9cab;
45}
46
47/*-- Funnel --*/
48.bb-chart-funnels path {
49 stroke-width: 0;
50}
51.bb-chart-funnels + .bb-chart-texts text {
52 fill: #fff;
53}
54
55/*-- Axis --*/
56.bb-axis {
57 shape-rendering: crispEdges;
58}
59.bb-axis .bb-axis-x-tooltip, .bb-axis .bb-axis-y-tooltip, .bb-axis .bb-axis-y2-tooltip {
60 font-size: 0.9em;
61 fill: #fff;
62 white-space: nowrap;
63}
64
65.bb-axis-y text, .bb-axis-y2 text {
66 fill: #8d9cab;
67}
68
69.bb-event-rects {
70 fill-opacity: 1 !important;
71}
72.bb-event-rects .bb-event-rect {
73 fill: transparent;
74}
75.bb-event-rects .bb-event-rect._active_ {
76 fill: rgba(39, 201, 3, 0.05);
77}
78
79.tick._active_ text {
80 fill: #00c83c !important;
81}
82
83/*-- Grid --*/
84.bb-grid {
85 pointer-events: none;
86}
87.bb-grid line {
88 stroke: #5c666e;
89}
90
91.bb-xgrid-focus line, .bb-ygrid-focus line {
92 stroke: #ccd9e6;
93}
94
95/*-- Text on Chart --*/
96.bb-text.bb-empty {
97 fill: #8d9cab;
98}
99
100/*-- Line --*/
101.bb-line {
102 stroke-width: 1px;
103}
104
105/*-- Point --*/
106.bb-circle._expanded_ {
107 stroke-width: 2px;
108 stroke: 8d9cab;
109}
110
111rect.bb-circle._expanded_, use.bb-circle._expanded_ {
112 stroke-width: 1px;
113}
114
115/*-- Subchart --*/
116.selection {
117 stroke: none;
118 fill: #ccd9e6;
119}
120
121.bb-selected-circle {
122 fill: #ccd9e6;
123 stroke-width: 2px;
124}
125
126/*-- Bar --*/
127.bb-bar {
128 stroke-width: 0.5px;
129}
130.bb-bar._expanded_ {
131 fill-opacity: 0.75;
132}
133
134/*-- Candlestick --*/
135.bb-candlestick {
136 stroke-width: 1px;
137}
138.bb-candlestick._expanded_ {
139 fill-opacity: 0.75;
140}
141
142/*-- Focus --*/
143.bb-target.bb-focused, .bb-circles.bb-focused {
144 opacity: 1;
145}
146.bb-target.bb-focused path.bb-line, .bb-target.bb-focused path.bb-step, .bb-circles.bb-focused path.bb-line, .bb-circles.bb-focused path.bb-step {
147 stroke-width: 2px;
148}
149.bb-target.bb-defocused, .bb-circles.bb-defocused {
150 opacity: 0.5 !important;
151}
152.bb-target.bb-defocused .text-overlapping, .bb-circles.bb-defocused .text-overlapping {
153 opacity: 0.05 !important;
154}
155
156/*-- Region --*/
157.bb-region {
158 fill: steelblue;
159}
160.bb-region rect {
161 fill-opacity: 0.5;
162}
163.bb-region.selected rect {
164 fill: rgb(39, 201, 3);
165}
166
167/*-- Zoom region --*/
168.bb-zoom-brush {
169 fill-opacity: 0.25;
170 fill: #ccd9e6;
171}
172
173/*-- Brush --*/
174.bb-brush .extent {
175 fill-opacity: 0.5;
176}
177
178/*-- Select - Drag --*/
179/*-- Legend --*/
180.bb-legend-item {
181 user-select: none;
182}
183.bb-legend-item line {
184 stroke-width: 10px;
185 stroke-dasharray: 3px;
186}
187.bb-legend-item text {
188 transform: translateY(-1px);
189}
190
191.bb-legend-item-hidden {
192 opacity: 0.5;
193}
194
195.bb-legend-background {
196 opacity: 0.75;
197 stroke: lightgray;
198 stroke-width: 1;
199}
200
201/*-- Title --*/
202.bb-title {
203 font-size: 14px;
204}
205
206/*-- Treemap --*/
207.bb-chart-treemaps rect {
208 stroke: #8d9cab;
209 stroke-width: 1px;
210}
211
212/*-- Tooltip --*/
213.bb-tooltip-container {
214 z-index: 10;
215 font-family: Helvetica, Arial, sans-serif, "nanumgothic", "Dotum";
216 user-select: none;
217}
218
219.bb-tooltip {
220 border-collapse: separate;
221 border-spacing: 0;
222 empty-cells: show;
223 border: 1px solid #828181;
224 border-radius: 5px;
225 background-color: #000;
226 text-align: left;
227 font-size: 11px;
228 color: #fff;
229 white-space: nowrap;
230}
231.bb-tooltip th {
232 font-size: 12px;
233 padding: 4px 8px;
234 text-align: left;
235 border-bottom: solid 1px #828181;
236}
237.bb-tooltip td {
238 padding: 4px 6px;
239}
240.bb-tooltip td:first-child {
241 padding-left: 8px;
242}
243.bb-tooltip td:last-child {
244 padding-right: 8px;
245}
246.bb-tooltip td > span, .bb-tooltip td > svg {
247 display: inline-block;
248 width: 7px;
249 height: 7px;
250 margin: -1px 6px 0 0;
251 vertical-align: middle;
252}
253.bb-tooltip td.value {
254 border-left: 1px solid transparent;
255 text-align: right;
256}
257.bb-tooltip .bb-tooltip-title {
258 display: inline-block;
259 color: #aaa;
260 line-height: 20px;
261}
262.bb-tooltip .bb-tooltip-detail table {
263 border-collapse: collapse;
264 border-spacing: 0;
265}
266.bb-tooltip .bb-tooltip-detail .bb-tooltip-name, .bb-tooltip .bb-tooltip-detail .bb-tooltip-value {
267 font-size: 11px;
268 line-height: 13px;
269 padding: 4px 0 3px;
270 color: #444;
271 text-align: left;
272 font-weight: normal;
273}
274.bb-tooltip .bb-tooltip-detail .bb-tooltip-value {
275 padding-left: 5px;
276 font-weight: 800;
277 font-size: 12px;
278}
279
280/*-- Area --*/
281.bb-area {
282 stroke-width: 0;
283 opacity: 0.5;
284}
285
286/*-- Arc --*/
287.bb-chart-arcs-title {
288 dominant-baseline: middle;
289 font-size: 1.3em;
290}
291
292text.bb-chart-arcs-gauge-title {
293 dominant-baseline: middle;
294 font-size: 2.7em;
295}
296
297.bb-chart-arcs {
298 /*-- Polar --*/
299}
300.bb-chart-arcs .bb-chart-arcs-background {
301 fill: #3f3f3f;
302 stroke: none;
303}
304.bb-chart-arcs .bb-chart-arcs-gauge-unit {
305 fill: #828181;
306 font-size: 16px;
307}
308.bb-chart-arcs .bb-chart-arcs-gauge-min, .bb-chart-arcs .bb-chart-arcs-gauge-max {
309 fill: #777;
310}
311.bb-chart-arcs .bb-chart-arcs-title {
312 font-size: 16px !important;
313 fill: #b6c2ce;
314 font-weight: 600;
315}
316.bb-chart-arcs path.empty {
317 fill: #eaeaea;
318 stroke-width: 0;
319}
320.bb-chart-arcs .bb-levels circle {
321 fill: none;
322 stroke: #848282;
323 stroke-width: 0.5px;
324}
325.bb-chart-arcs .bb-levels text {
326 fill: #848282;
327}
328
329.bb-chart-arc .bb-gauge-value {
330 fill: #b6c2ce;
331}
332.bb-chart-arc rect {
333 stroke: #8d9cab;
334 stroke-width: 1;
335}
336.bb-chart-arc text {
337 fill: #fff;
338 font-size: 13px;
339}
340
341/*-- Radar --*/
342.bb-chart-radars .bb-levels polygon {
343 fill: none;
344 stroke: #848282;
345 stroke-width: 0.5px;
346}
347.bb-chart-radars .bb-levels text {
348 fill: #848282;
349}
350.bb-chart-radars .bb-axis line {
351 stroke: #848282;
352 stroke-width: 0.5px;
353}
354.bb-chart-radars .bb-axis text {
355 font-size: 1.15em;
356 cursor: default;
357}
358.bb-chart-radars .bb-shapes polygon {
359 fill-opacity: 0.2;
360 stroke-width: 1px;
361}
362
363/*-- Button --*/
364.bb-button {
365 position: absolute;
366 top: 10px;
367 right: 10px;
368}
369.bb-button .bb-zoom-reset {
370 border: solid 1px #ccc;
371 background-color: #000;
372 color: #fff;
373 padding: 5px;
374 border-radius: 5px;
375 cursor: pointer;
376}