UNPKG

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