UNPKG

5.76 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/*-- 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 line {
60 stroke: #f1f1f1; }
61
62.bb-xgrid-focus line, .bb-ygrid-focus line {
63 stroke: #ddd; }
64
65/*-- Text on Chart --*/
66.bb-text.bb-empty {
67 fill: #767676; }
68
69/*-- Line --*/
70.bb-line {
71 stroke-width: 1px; }
72
73/*-- Point --*/
74.bb-circle._expanded_ {
75 fill: #fff !important;
76 stroke-width: 2px;
77 stroke: red; }
78
79rect.bb-circle._expanded_, use.bb-circle._expanded_ {
80 stroke-width: 1px; }
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: 1; }
131
132/*-- Title --*/
133.bb-title {
134 font-size: 14px; }
135
136/*-- Tooltip --*/
137.bb-tooltip-container {
138 z-index: 10;
139 font-family: sans-serif, Arial, "nanumgothic", "Dotum";
140 user-select: none; }
141
142.bb-tooltip {
143 border-collapse: separate;
144 border-spacing: 0;
145 empty-cells: show;
146 border: 1px solid #999;
147 background-color: #fff;
148 text-align: left;
149 font-size: 11px; }
150 .bb-tooltip th {
151 font-size: 12px;
152 padding: 4px 8px;
153 text-align: left;
154 border-bottom: solid 1px #eee; }
155 .bb-tooltip td {
156 padding: 4px 6px;
157 background-color: #fff; }
158 .bb-tooltip td:first-child {
159 padding-left: 8px; }
160 .bb-tooltip td:last-child {
161 padding-right: 8px; }
162 .bb-tooltip td > span, .bb-tooltip td > svg {
163 display: inline-block;
164 width: 10px;
165 height: 10px;
166 margin-right: 6px;
167 border-radius: 5px;
168 vertical-align: middle; }
169 .bb-tooltip td.value {
170 border-left: 1px solid transparent; }
171 .bb-tooltip .bb-tooltip-title {
172 display: inline-block;
173 color: #aaa;
174 line-height: 20px; }
175 .bb-tooltip .bb-tooltip-detail table {
176 border-collapse: collapse;
177 border-spacing: 0; }
178 .bb-tooltip .bb-tooltip-detail .bb-tooltip-name, .bb-tooltip .bb-tooltip-detail .bb-tooltip-value {
179 font-size: 11px;
180 line-height: 13px;
181 padding: 4px 0 3px;
182 color: #444;
183 text-align: left;
184 font-weight: normal; }
185 .bb-tooltip .bb-tooltip-detail .bb-tooltip-value {
186 padding-left: 5px;
187 font-weight: 800;
188 font-size: 12px; }
189
190/*-- Area --*/
191.bb-area {
192 stroke-width: 0;
193 opacity: 0.2; }
194
195/*-- Arc --*/
196.bb-chart-arcs-title {
197 dominant-baseline: middle;
198 font-size: 1.3em; }
199
200.bb-chart-arcs-gauge-title {
201 dominant-baseline: middle;
202 font-size: 2.7em; }
203
204.bb-chart-arcs .bb-chart-arcs-background {
205 fill: #e0e0e0;
206 stroke: none; }
207
208.bb-chart-arcs .bb-chart-arcs-gauge-unit {
209 fill: #000;
210 font-size: 16px; }
211
212.bb-chart-arcs .bb-chart-arcs-gauge-min, .bb-chart-arcs .bb-chart-arcs-gauge-max {
213 fill: #777; }
214
215.bb-chart-arcs .bb-chart-arcs-title {
216 font-size: 16px !important;
217 fill: #000;
218 font-weight: 600; }
219
220.bb-chart-arcs path.empty {
221 fill: #eaeaea;
222 stroke-width: 0; }
223
224.bb-chart-arc .bb-gauge-value {
225 fill: #000; }
226
227.bb-chart-arc path {
228 stroke: #fff; }
229
230.bb-chart-arc rect {
231 stroke: #fff;
232 stroke-width: 1; }
233
234.bb-chart-arc text {
235 fill: #fff;
236 font-size: 13px; }
237
238/*-- Radar --*/
239.bb-chart-radars .bb-levels polygon {
240 fill: none;
241 stroke: #848282;
242 stroke-width: .5px; }
243
244.bb-chart-radars .bb-levels text {
245 fill: #848282; }
246
247.bb-chart-radars .bb-axis line {
248 stroke: #848282;
249 stroke-width: .5px; }
250
251.bb-chart-radars .bb-axis text {
252 font-size: 1.15em;
253 cursor: default; }
254
255.bb-chart-radars .bb-shapes polygon {
256 fill-opacity: .2;
257 stroke-width: 1px; }
258
259/*-- Button --*/
260.bb-button {
261 position: absolute;
262 top: 10px;
263 right: 10px; }
264 .bb-button .bb-zoom-reset {
265 border: solid 1px #ccc;
266 background-color: #fff;
267 padding: 5px;
268 border-radius: 5px;
269 cursor: pointer; }
270