2
0

c3.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /*-- Chart --*/
  2. .c3 svg {
  3. font: 10px sans-serif;
  4. -webkit-tap-highlight-color: transparent; }
  5. .c3 path, .c3 line {
  6. fill: none;
  7. stroke: #000; }
  8. .c3 text {
  9. -webkit-user-select: none;
  10. -moz-user-select: none;
  11. user-select: none; }
  12. .c3-legend-item-tile,
  13. .c3-xgrid-focus,
  14. .c3-ygrid,
  15. .c3-event-rect,
  16. .c3-bars path {
  17. shape-rendering: crispEdges; }
  18. .c3-chart-arc path {
  19. stroke: #fff; }
  20. .c3-chart-arc rect {
  21. stroke: white;
  22. stroke-width: 1; }
  23. .c3-chart-arc text {
  24. fill: #fff;
  25. font-size: 13px; }
  26. /*-- Axis --*/
  27. /*-- Grid --*/
  28. .c3-grid line {
  29. stroke: #aaa; }
  30. .c3-grid text {
  31. fill: #aaa; }
  32. .c3-xgrid, .c3-ygrid {
  33. stroke-dasharray: 3 3; }
  34. /*-- Text on Chart --*/
  35. .c3-text.c3-empty {
  36. fill: #808080;
  37. font-size: 2em; }
  38. /*-- Line --*/
  39. .c3-line {
  40. stroke-width: 1px; }
  41. /*-- Point --*/
  42. .c3-circle._expanded_ {
  43. stroke-width: 1px;
  44. stroke: white; }
  45. .c3-selected-circle {
  46. fill: white;
  47. stroke-width: 2px; }
  48. /*-- Bar --*/
  49. .c3-bar {
  50. stroke-width: 0; }
  51. .c3-bar._expanded_ {
  52. fill-opacity: 1;
  53. fill-opacity: 0.75; }
  54. /*-- Focus --*/
  55. .c3-target.c3-focused {
  56. opacity: 1; }
  57. .c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {
  58. stroke-width: 2px; }
  59. .c3-target.c3-defocused {
  60. opacity: 0.3 !important; }
  61. /*-- Region --*/
  62. .c3-region {
  63. fill: steelblue;
  64. fill-opacity: .1; }
  65. /*-- Brush --*/
  66. .c3-brush .extent {
  67. fill-opacity: .1; }
  68. /*-- Select - Drag --*/
  69. /*-- Legend --*/
  70. .c3-legend-item {
  71. font-size: 12px; }
  72. .c3-legend-item-hidden {
  73. opacity: 0.15; }
  74. .c3-legend-background {
  75. opacity: 0.75;
  76. fill: white;
  77. stroke: lightgray;
  78. stroke-width: 1; }
  79. /*-- Title --*/
  80. .c3-title {
  81. font: 14px sans-serif; }
  82. /*-- Tooltip --*/
  83. .c3-tooltip-container {
  84. z-index: 10; }
  85. .c3-tooltip {
  86. border-collapse: collapse;
  87. border-spacing: 0;
  88. background-color: #fff;
  89. empty-cells: show;
  90. -webkit-box-shadow: 7px 7px 12px -9px #777777;
  91. -moz-box-shadow: 7px 7px 12px -9px #777777;
  92. box-shadow: 7px 7px 12px -9px #777777;
  93. opacity: 0.9; }
  94. .c3-tooltip tr {
  95. border: 1px solid #CCC; }
  96. .c3-tooltip th {
  97. background-color: #aaa;
  98. font-size: 14px;
  99. padding: 2px 5px;
  100. text-align: left;
  101. color: #FFF; }
  102. .c3-tooltip td {
  103. font-size: 13px;
  104. padding: 3px 6px;
  105. background-color: #fff;
  106. border-left: 1px dotted #999; }
  107. .c3-tooltip td > span {
  108. display: inline-block;
  109. width: 10px;
  110. height: 10px;
  111. margin-right: 6px; }
  112. .c3-tooltip td.value {
  113. text-align: right; }
  114. /*-- Area --*/
  115. .c3-area {
  116. stroke-width: 0;
  117. opacity: 0.2; }
  118. /*-- Arc --*/
  119. .c3-chart-arcs-title {
  120. dominant-baseline: middle;
  121. font-size: 1.3em; }
  122. .c3-chart-arcs .c3-chart-arcs-background {
  123. fill: #e0e0e0;
  124. stroke: #FFF; }
  125. .c3-chart-arcs .c3-chart-arcs-gauge-unit {
  126. fill: #000;
  127. font-size: 16px; }
  128. .c3-chart-arcs .c3-chart-arcs-gauge-max {
  129. fill: #777; }
  130. .c3-chart-arcs .c3-chart-arcs-gauge-min {
  131. fill: #777; }
  132. .c3-chart-arc .c3-gauge-value {
  133. fill: #000;
  134. /* font-size: 28px !important;*/ }
  135. .c3-chart-arc.c3-target g path {
  136. opacity: 1; }
  137. .c3-chart-arc.c3-target.c3-focused g path {
  138. opacity: 1; }