UNPKG

4.92 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/*-- Chart --*/
11.bb svg {
12 font: 10px sans-serif;
13 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
14}
15.bb path, .bb line {
16 fill: none;
17 stroke: #000;
18}
19.bb text, .bb .bb-button {
20 -webkit-user-select: none;
21 -moz-user-select: none;
22 user-select: none;
23}
24
25.bb-legend-item-tile,
26.bb-xgrid-focus,
27.bb-ygrid-focus,
28.bb-ygrid {
29 shape-rendering: crispEdges;
30}
31
32.bb-chart-arcs .bb-needle {
33 fill: #000;
34}
35
36.bb-chart-arc .bb-gauge-value {
37 fill: #000;
38}
39.bb-chart-arc path {
40 stroke: #fff;
41}
42.bb-chart-arc rect {
43 stroke: #fff;
44 stroke-width: 1;
45}
46.bb-chart-arc text {
47 fill: #fff;
48 font-size: 13px;
49}
50
51/*-- Funnel --*/
52.bb-chart-funnels path {
53 stroke-width: 0;
54}
55.bb-chart-funnels + .bb-chart-texts text {
56 font-size: 13px;
57 fill: #fff;
58}
59
60/*-- Axis --*/
61.bb-axis {
62 shape-rendering: crispEdges;
63}
64.bb-axis .bb-axis-x-tooltip, .bb-axis .bb-axis-y-tooltip, .bb-axis .bb-axis-y2-tooltip {
65 font-size: 1em;
66 fill: #fff;
67 white-space: nowrap;
68}
69
70/*-- Grid --*/
71.bb-grid {
72 pointer-events: none;
73}
74.bb-grid line {
75 stroke: #aaa;
76}
77.bb-grid text {
78 fill: #aaa;
79}
80
81.bb-xgrid, .bb-ygrid {
82 stroke-dasharray: 3 3;
83}
84
85/*-- Text on Chart --*/
86.bb-text.bb-empty {
87 fill: #808080;
88 font-size: 2em;
89}
90
91/*-- Line --*/
92.bb-line {
93 stroke-width: 1px;
94}
95
96/*-- Point --*/
97.bb-circle._expanded_ {
98 stroke-width: 1px;
99 stroke: white;
100}
101
102.bb-selected-circle {
103 fill: white;
104 stroke-width: 2px;
105}
106
107/*-- Bar --*/
108.bb-bar {
109 stroke-width: 0;
110}
111.bb-bar._expanded_ {
112 fill-opacity: 0.75;
113}
114
115/*-- Candlestick --*/
116.bb-candlestick {
117 stroke-width: 1px;
118}
119.bb-candlestick._expanded_ {
120 fill-opacity: 0.75;
121}
122
123/*-- Focus --*/
124.bb-target.bb-focused, .bb-circles.bb-focused {
125 opacity: 1;
126}
127.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 {
128 stroke-width: 2px;
129}
130.bb-target.bb-defocused, .bb-circles.bb-defocused {
131 opacity: 0.3 !important;
132}
133.bb-target.bb-defocused .text-overlapping, .bb-circles.bb-defocused .text-overlapping {
134 opacity: 0.05 !important;
135}
136
137/*-- Region --*/
138.bb-region {
139 fill: steelblue;
140}
141.bb-region rect {
142 fill-opacity: 0.1;
143}
144
145/*-- Zoom region --*/
146.bb-zoom-brush {
147 fill-opacity: 0.1;
148}
149
150/*-- Brush --*/
151.bb-brush .extent {
152 fill-opacity: 0.1;
153}
154
155/*-- Legend --*/
156.bb-legend-item {
157 font-size: 12px;
158 user-select: none;
159}
160
161.bb-legend-item-hidden {
162 opacity: 0.15;
163}
164
165.bb-legend-background {
166 opacity: 0.75;
167 fill: white;
168 stroke: lightgray;
169 stroke-width: 1;
170}
171
172/*-- Title --*/
173.bb-title {
174 font: 14px sans-serif;
175}
176
177/*-- Treemap --*/
178.bb-chart-treemaps rect {
179 stroke: #fff;
180 stroke-width: 1px;
181}
182
183/*-- Tooltip --*/
184.bb-tooltip-container {
185 z-index: 10;
186 user-select: none;
187}
188
189.bb-tooltip {
190 border-collapse: collapse;
191 border-spacing: 0;
192 background-color: #fff;
193 empty-cells: show;
194 opacity: 0.9;
195 box-shadow: 7px 7px 12px -9px rgb(119, 119, 119);
196 white-space: nowrap;
197}
198.bb-tooltip tr {
199 border: 1px solid #CCC;
200}
201.bb-tooltip th {
202 background-color: #aaa;
203 font-size: 14px;
204 padding: 2px 5px;
205 text-align: left;
206 color: #FFF;
207}
208.bb-tooltip td {
209 font-size: 13px;
210 padding: 3px 6px;
211 background-color: #fff;
212 border-left: 1px dotted #999;
213}
214.bb-tooltip td > span, .bb-tooltip td > svg {
215 display: inline-block;
216 width: 10px;
217 height: 10px;
218 margin-right: 6px;
219}
220.bb-tooltip.value {
221 text-align: right;
222}
223
224/*-- Area --*/
225.bb-area {
226 stroke-width: 0;
227 opacity: 0.2;
228}
229
230/*-- Arc --*/
231.bb-chart-arcs-title {
232 dominant-baseline: middle;
233 font-size: 1.3em;
234}
235
236text.bb-chart-arcs-gauge-title {
237 dominant-baseline: middle;
238 font-size: 2.7em;
239}
240
241.bb-chart-arcs {
242 /*-- Polar --*/
243}
244.bb-chart-arcs .bb-chart-arcs-background {
245 fill: #e0e0e0;
246 stroke: #fff;
247}
248.bb-chart-arcs .bb-chart-arcs-gauge-unit {
249 fill: #000;
250 font-size: 16px;
251}
252.bb-chart-arcs .bb-chart-arcs-gauge-max {
253 fill: #777;
254}
255.bb-chart-arcs .bb-chart-arcs-gauge-min {
256 fill: #777;
257}
258.bb-chart-arcs .bb-levels circle {
259 fill: none;
260 stroke: #848282;
261 stroke-width: 0.5px;
262}
263.bb-chart-arcs .bb-levels text {
264 fill: #848282;
265}
266
267/*-- Radar --*/
268.bb-chart-radars .bb-levels polygon {
269 fill: none;
270 stroke: #848282;
271 stroke-width: 0.5px;
272}
273.bb-chart-radars .bb-levels text {
274 fill: #848282;
275}
276.bb-chart-radars .bb-axis line {
277 stroke: #848282;
278 stroke-width: 0.5px;
279}
280.bb-chart-radars .bb-axis text {
281 font-size: 1.15em;
282 cursor: default;
283}
284.bb-chart-radars .bb-shapes polygon {
285 fill-opacity: 0.2;
286 stroke-width: 1px;
287}
288
289/*-- Button --*/
290.bb-button {
291 position: absolute;
292 top: 10px;
293 right: 10px;
294}
295.bb-button .bb-zoom-reset {
296 font-size: 11px;
297 border: solid 1px #ccc;
298 background-color: #fff;
299 padding: 5px;
300 border-radius: 5px;
301 cursor: pointer;
302}