UNPKG

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