UNPKG

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