UNPKG

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