UNPKG

5.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.2.2
9 */
10/*-- Insight Theme --*/
11/*-- Default color pattern --*/
12.bb-color-pattern {
13 background-image: url("#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;"); }
14
15/*-- Chart --*/
16.bb svg {
17 font-size: 12px;
18 font-family: sans-serif, Arial, "nanumgothic", "Dotum";
19 line-height: 1; }
20
21.bb path, .bb line {
22 fill: none;
23 stroke: #c4c4c4; }
24
25.bb text, .bb .bb-button {
26 -webkit-user-select: none;
27 -moz-user-select: none;
28 -ms-user-select: none;
29 user-select: none;
30 fill: #555;
31 font-size: 11px; }
32
33.bb-legend-item-title,
34.bb-xgrid-focus,
35.bb-ygrid-focus,
36.bb-ygrid,
37.bb-event-rect,
38.bb-bars path {
39 shape-rendering: crispEdges; }
40
41/*-- Axis --*/
42.bb-axis {
43 shape-rendering: crispEdges; }
44
45.bb-axis-y text, .bb-axis-y2 text {
46 fill: #737373; }
47
48.bb-event-rects {
49 fill-opacity: 1 !important; }
50 .bb-event-rects .bb-event-rect {
51 fill: transparent; }
52 .bb-event-rects .bb-event-rect._active_ {
53 fill: rgba(39, 201, 3, 0.05); }
54
55.tick._active_ text {
56 fill: #00c83c !important; }
57
58/*-- Grid --*/
59.bb-grid {
60 pointer-events: none; }
61 .bb-grid line {
62 stroke: #f1f1f1; }
63
64.bb-xgrid-focus line, .bb-ygrid-focus line {
65 stroke: #ddd; }
66
67/*-- Text on Chart --*/
68.bb-text.bb-empty {
69 fill: #767676; }
70
71/*-- Line --*/
72.bb-line {
73 stroke-width: 1px; }
74
75/*-- Point --*/
76.bb-circle._expanded_ {
77 fill: #fff !important;
78 stroke-width: 2px;
79 stroke: red; }
80
81rect.bb-circle._expanded_, use.bb-circle._expanded_ {
82 stroke-width: 1px; }
83
84.bb-selected-circle {
85 fill: white;
86 stroke-width: 2px; }
87
88/*-- Bar --*/
89.bb-bar {
90 stroke-width: 0; }
91 .bb-bar._expanded_ {
92 fill-opacity: 0.75; }
93
94/*-- Candlestick --*/
95.bb-candlestick {
96 stroke-width: 1px; }
97 .bb-candlestick._expanded_ {
98 fill-opacity: 0.75; }
99
100/*-- Focus --*/
101.bb-target.bb-focused, .bb-circles.bb-focused {
102 opacity: 1; }
103 .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 {
104 stroke-width: 2px; }
105
106.bb-target.bb-defocused, .bb-circles.bb-defocused {
107 opacity: 0.3 !important; }
108 .bb-target.bb-defocused .text-overlapping, .bb-circles.bb-defocused .text-overlapping {
109 opacity: .05 !important; }
110
111/*-- Region --*/
112.bb-region {
113 fill: steelblue;
114 fill-opacity: 0.1; }
115 .bb-region.selected rect {
116 fill: #27c903; }
117
118/*-- Zoom region --*/
119.bb-zoom-brush {
120 fill-opacity: .1; }
121
122/*-- Brush --*/
123.bb-brush .extent {
124 fill-opacity: 0.1; }
125
126/*-- Select - Drag --*/
127/*-- Legend --*/
128.bb-legend-item {
129 user-select: none; }
130
131.bb-legend-item-hidden {
132 opacity: 0.15; }
133
134.bb-legend-background {
135 opacity: 0.75;
136 fill: white;
137 stroke: lightgray;
138 stroke-width: 1; }
139
140/*-- Title --*/
141.bb-title {
142 font-size: 14px; }
143
144/*-- Tooltip --*/
145.bb-tooltip-container {
146 z-index: 10;
147 font-family: sans-serif, Arial, "nanumgothic", "Dotum";
148 user-select: none; }
149
150.bb-tooltip {
151 border-collapse: separate;
152 border-spacing: 0;
153 empty-cells: show;
154 border: 1px solid #999;
155 background-color: #fff;
156 text-align: left;
157 font-size: 11px; }
158 .bb-tooltip th {
159 font-size: 12px;
160 padding: 4px 8px;
161 text-align: left;
162 border-bottom: solid 1px #eee; }
163 .bb-tooltip td {
164 padding: 4px 6px;
165 background-color: #fff; }
166 .bb-tooltip td:first-child {
167 padding-left: 8px; }
168 .bb-tooltip td:last-child {
169 padding-right: 8px; }
170 .bb-tooltip td > span, .bb-tooltip td > svg {
171 display: inline-block;
172 width: 10px;
173 height: 10px;
174 margin-right: 6px;
175 border-radius: 5px;
176 vertical-align: middle; }
177 .bb-tooltip td.value {
178 border-left: 1px solid transparent; }
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: 12px; }
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: 16px; }
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: 16px !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: #000; }
234
235.bb-chart-arc path {
236 stroke: #fff; }
237
238.bb-chart-arc rect {
239 stroke: #fff;
240 stroke-width: 1; }
241
242.bb-chart-arc text {
243 fill: #fff;
244 font-size: 13px; }
245
246/*-- Radar --*/
247.bb-chart-radars .bb-levels polygon {
248 fill: none;
249 stroke: #848282;
250 stroke-width: .5px; }
251
252.bb-chart-radars .bb-levels text {
253 fill: #848282; }
254
255.bb-chart-radars .bb-axis line {
256 stroke: #848282;
257 stroke-width: .5px; }
258
259.bb-chart-radars .bb-axis text {
260 font-size: 1.15em;
261 cursor: default; }
262
263.bb-chart-radars .bb-shapes polygon {
264 fill-opacity: .2;
265 stroke-width: 1px; }
266
267/*-- Button --*/
268.bb-button {
269 position: absolute;
270 top: 10px;
271 right: 10px; }
272 .bb-button .bb-zoom-reset {
273 border: solid 1px #ccc;
274 background-color: #fff;
275 padding: 5px;
276 border-radius: 5px;
277 cursor: pointer; }
278