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 * http://naver.github.io/billboard.js/
7 *
8 * @version 1.7.1
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,
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: #8c8c8c; }
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-grid .bb-ygrid:last-child {
63 stroke: #e9e9e9; }
64
65.bb-xgrid-focus line {
66 stroke: #ffb6b6;
67 stroke-dasharray: 3px; }
68
69/*-- Text on Chart --*/
70.bb-text.bb-empty {
71 fill: #767676; }
72
73/*-- Line --*/
74.bb-line {
75 stroke-width: 1px; }
76
77/*-- Point --*/
78.bb-circle._expanded_ {
79 stroke-width: 2px; }
80
81rect.bb-circle._expanded_, use.bb-circle._expanded_ {
82 stroke-width: 2px; }
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/*-- Focus --*/
95.bb-target.bb-focused {
96 opacity: 1; }
97 .bb-target.bb-focused path.bb-line, .bb-target.bb-focused path.bb-step {
98 stroke-width: 2px; }
99
100.bb-target.bb-defocused {
101 opacity: 0.3 !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-hidden {
121 opacity: 0.15; }
122
123.bb-legend-background {
124 opacity: 0.75;
125 fill: white;
126 stroke: lightgray;
127 stroke-width: 1px; }
128
129.bb-legend-item line {
130 stroke-dasharray: 1px; }
131
132/*-- Title --*/
133.bb-title {
134 font-size: 14px; }
135
136/*-- Tooltip --*/
137.bb-tooltip-container {
138 z-index: 10;
139 font-family: Helvetica, "Apple SD Gothic Neo", Arial, sans-serif, "nanumgothic", "Dotum";
140 position: absolute; }
141
142.bb-tooltip {
143 -webkit-user-select: none;
144 -moz-user-select: none;
145 -ms-user-select: none;
146 user-select: none;
147 border-collapse: separate;
148 border-spacing: 0;
149 empty-cells: show;
150 border: 1px solid #999;
151 border-radius: 2px;
152 background-color: #fff;
153 text-align: left;
154 font-size: 12px;
155 box-shadow: .5px .5px 1px #999; }
156 .bb-tooltip th {
157 font-size: 12px;
158 padding: 4px 8px;
159 text-align: center;
160 border-bottom: dotted 1px #000;
161 background-color: #efefef;
162 color: #000; }
163 .bb-tooltip tr:last-child td {
164 border-bottom: none; }
165 .bb-tooltip td {
166 padding: 3px 6px;
167 background-color: #fff;
168 border-bottom: solid 1px #eee; }
169 .bb-tooltip td:first-child {
170 padding-left: 5px;
171 border-right: solid 1px #eee; }
172 .bb-tooltip td:last-child {
173 padding-right: 5px; }
174 .bb-tooltip td > span, .bb-tooltip td > svg {
175 display: inline-block;
176 width: 5px;
177 height: 12px;
178 margin-right: 6px;
179 vertical-align: middle; }
180 .bb-tooltip td.value {
181 border-left: 1px solid transparent;
182 text-align: right; }
183 .bb-tooltip .bb-tooltip-title {
184 display: inline-block;
185 color: #aaa;
186 line-height: 20px; }
187 .bb-tooltip .bb-tooltip-detail table {
188 border-collapse: collapse;
189 border-spacing: 1px;
190 font-size: 12px; }
191 .bb-tooltip .bb-tooltip-detail .bb-tooltip-name, .bb-tooltip .bb-tooltip-detail .bb-tooltip-value {
192 line-height: 13px;
193 padding: 4px 0 3px;
194 color: #444;
195 text-align: left;
196 font-weight: normal; }
197 .bb-tooltip .bb-tooltip-detail .bb-tooltip-value {
198 padding-left: 5px;
199 font-weight: 800; }
200
201/*-- Area --*/
202.bb-area {
203 stroke-width: 0;
204 opacity: 0.2; }
205
206/*-- Arc --*/
207.bb-chart-arcs-title {
208 dominant-baseline: middle;
209 font-size: 1.3em; }
210
211.bb-chart-arcs .bb-chart-arcs-background {
212 fill: #e0e0e0;
213 stroke: none; }
214
215.bb-chart-arcs .bb-chart-arcs-gauge-unit {
216 fill: #000;
217 font-size: 16px; }
218
219.bb-chart-arcs .bb-chart-arcs-gauge-min, .bb-chart-arcs .bb-chart-arcs-gauge-max {
220 fill: #777; }
221
222.bb-chart-arcs .bb-chart-arcs-title {
223 font-size: 16px !important;
224 fill: #8c8c8c;
225 font-style: italic; }
226
227.bb-chart-arcs path.empty {
228 fill: #eaeaea;
229 stroke-width: 0; }
230
231.bb-chart-arc .bb-gauge-value {
232 fill: #8c8c8c;
233 font-style: italic; }
234
235.bb-chart-arc path {
236 stroke: #fff; }
237
238.bb-chart-arc text {
239 fill: #fff;
240 font-size: 13px;
241 font-weight: bold; }
242
243/*-- Radar --*/
244.bb-chart-radars .bb-levels polygon {
245 fill: none;
246 stroke: #8c8c8c;
247 stroke-width: .5px; }
248
249.bb-chart-radars .bb-levels text {
250 fill: #8c8c8c; }
251
252.bb-chart-radars .bb-axis line {
253 stroke: #8c8c8c;
254 stroke-width: .5px; }
255
256.bb-chart-radars .bb-axis text {
257 font-size: 1.15em;
258 font-weight: bold;
259 cursor: default; }
260
261.bb-chart-radars .bb-shapes polygon {
262 fill-opacity: .2;
263 stroke-width: 1px; }
264
265/*-- Button --*/
266.bb-button {
267 position: absolute;
268 top: 10px;
269 right: 10px; }
270 .bb-button .bb-zoom-reset {
271 border: solid 1px #ccc;
272 background-color: #fff;
273 padding: 5px;
274 border-radius: 5px;
275 cursor: pointer;
276 opacity: .8;
277 box-shadow: 1px 1px 2px #ccc; }
278