rickshaw.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. .rickshaw_graph .detail {
  2. pointer-events: none;
  3. position: absolute;
  4. top: 0;
  5. z-index: 2;
  6. background: rgba(0, 0, 0, 0.1);
  7. bottom: 0;
  8. width: 1px;
  9. transition: opacity 0.25s linear;
  10. -moz-transition: opacity 0.25s linear;
  11. -o-transition: opacity 0.25s linear;
  12. -webkit-transition: opacity 0.25s linear; }
  13. .rickshaw_graph .detail.inactive {
  14. opacity: 0; }
  15. .rickshaw_graph .detail .item.active {
  16. opacity: 1; }
  17. .rickshaw_graph .detail .x_label {
  18. font-family: Arial, sans-serif;
  19. border-radius: 3px;
  20. padding: 6px;
  21. opacity: 0.5;
  22. border: 1px solid #e4eaec;
  23. font-size: 12px;
  24. position: absolute;
  25. background: white;
  26. white-space: nowrap; }
  27. .rickshaw_graph .detail .x_label.left {
  28. left: 0; }
  29. .rickshaw_graph .detail .x_label.right {
  30. right: 0; }
  31. .rickshaw_graph .detail .item {
  32. position: absolute;
  33. z-index: 2;
  34. border-radius: 3px;
  35. padding: 5px;
  36. font-size: 12px;
  37. font-family: Arial, sans-serif;
  38. opacity: 0;
  39. background: rgba(0, 0, 0, 0.6);
  40. color: white;
  41. border: 1px solid rgba(0, 0, 0, 0.4);
  42. margin-left: 1em;
  43. margin-right: 1em;
  44. margin-top: -1em;
  45. white-space: nowrap; }
  46. .rickshaw_graph .detail .item.left {
  47. left: 0; }
  48. .rickshaw_graph .detail .item.right {
  49. right: 0; }
  50. .rickshaw_graph .detail .item.active {
  51. opacity: 1;
  52. background: rgba(0, 0, 0, 0.6); }
  53. .rickshaw_graph .detail .item:after {
  54. position: absolute;
  55. display: block;
  56. width: 0;
  57. height: 0;
  58. content: "";
  59. border: 5px solid transparent; }
  60. .rickshaw_graph .detail .item.left:after {
  61. top: 1em;
  62. left: -5px;
  63. margin-top: -5px;
  64. border-right-color: rgba(0, 0, 0, 0.8);
  65. border-left-width: 0; }
  66. .rickshaw_graph .detail .item.right:after {
  67. top: 1em;
  68. right: -5px;
  69. margin-top: -5px;
  70. border-left-color: rgba(0, 0, 0, 0.8);
  71. border-right-width: 0; }
  72. .rickshaw_graph .detail .dot {
  73. width: 4px;
  74. height: 4px;
  75. margin-left: -3px;
  76. margin-top: -3.5px;
  77. border-radius: 5px;
  78. position: absolute;
  79. box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  80. box-sizing: content-box;
  81. -moz-box-sizing: content-box;
  82. background: white;
  83. border-width: 2px;
  84. border-style: solid;
  85. display: none;
  86. background-clip: padding-box; }
  87. .rickshaw_graph .detail .dot.active {
  88. display: block; }
  89. /* graph */
  90. .rickshaw_graph {
  91. position: relative; }
  92. .rickshaw_graph svg {
  93. display: block;
  94. overflow: hidden; }
  95. /* ticks */
  96. .rickshaw_graph .x_tick {
  97. position: absolute;
  98. top: 0;
  99. bottom: 0;
  100. width: 0px;
  101. border-left: 1px dotted rgba(0, 0, 0, 0.2);
  102. pointer-events: none; }
  103. .rickshaw_graph .x_tick .title {
  104. position: absolute;
  105. font-size: 12px;
  106. font-family: Arial, sans-serif;
  107. opacity: 0.5;
  108. white-space: nowrap;
  109. margin-left: 3px;
  110. bottom: 1px; }
  111. /* annotations */
  112. .rickshaw_annotation_timeline {
  113. height: 1px;
  114. border-top: 1px solid #e4eaec;
  115. margin-top: 10px;
  116. position: relative; }
  117. .rickshaw_annotation_timeline .annotation {
  118. position: absolute;
  119. height: 6px;
  120. width: 6px;
  121. margin-left: -2px;
  122. top: -3px;
  123. border-radius: 5px;
  124. background-color: rgba(0, 0, 0, 0.25); }
  125. .rickshaw_graph .annotation_line {
  126. position: absolute;
  127. top: 0;
  128. bottom: -6px;
  129. width: 0px;
  130. border-left: 2px solid rgba(0, 0, 0, 0.3);
  131. display: none; }
  132. .rickshaw_graph .annotation_line.active {
  133. display: block; }
  134. .rickshaw_graph .annotation_range {
  135. background: rgba(0, 0, 0, 0.1);
  136. display: none;
  137. position: absolute;
  138. top: 0;
  139. bottom: -6px; }
  140. .rickshaw_graph .annotation_range.active {
  141. display: block; }
  142. .rickshaw_graph .annotation_range.active.offscreen {
  143. display: none; }
  144. .rickshaw_annotation_timeline .annotation .content {
  145. background: white;
  146. color: black;
  147. opacity: 0.9;
  148. padding: 5px 5px;
  149. box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
  150. border-radius: 3px;
  151. position: relative;
  152. z-index: 20;
  153. font-size: 12px;
  154. padding: 6px 8px 8px;
  155. top: 18px;
  156. left: -11px;
  157. width: 160px;
  158. display: none;
  159. cursor: pointer; }
  160. .rickshaw_annotation_timeline .annotation .content:before {
  161. content: "\25b2";
  162. position: absolute;
  163. top: -11px;
  164. color: white;
  165. text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.8); }
  166. .rickshaw_annotation_timeline .annotation.active,
  167. .rickshaw_annotation_timeline .annotation:hover {
  168. background-color: rgba(0, 0, 0, 0.8);
  169. cursor: none; }
  170. .rickshaw_annotation_timeline .annotation .content:hover {
  171. z-index: 50; }
  172. .rickshaw_annotation_timeline .annotation.active .content {
  173. display: block; }
  174. .rickshaw_annotation_timeline .annotation:hover .content {
  175. display: block;
  176. z-index: 50; }
  177. .rickshaw_graph .y_axis,
  178. .rickshaw_graph .x_axis_d3 {
  179. fill: none; }
  180. .rickshaw_graph .y_ticks .tick line,
  181. .rickshaw_graph .x_ticks_d3 .tick {
  182. stroke: rgba(0, 0, 0, 0.16);
  183. stroke-width: 2px;
  184. shape-rendering: crisp-edges;
  185. pointer-events: none; }
  186. .rickshaw_graph .y_grid .tick,
  187. .rickshaw_graph .x_grid_d3 .tick {
  188. z-index: -1;
  189. stroke: rgba(0, 0, 0, 0.2);
  190. stroke-width: 1px;
  191. stroke-dasharray: 1 1; }
  192. .rickshaw_graph .y_grid .tick[data-y-value="0"] {
  193. stroke-dasharray: 1 0; }
  194. .rickshaw_graph .y_grid path,
  195. .rickshaw_graph .x_grid_d3 path {
  196. fill: none;
  197. stroke: none; }
  198. .rickshaw_graph .y_ticks path,
  199. .rickshaw_graph .x_ticks_d3 path {
  200. fill: none;
  201. stroke: #808080; }
  202. .rickshaw_graph .y_ticks text,
  203. .rickshaw_graph .x_ticks_d3 text {
  204. opacity: 0.5;
  205. font-size: 12px;
  206. pointer-events: none; }
  207. .rickshaw_graph .x_tick.glow .title,
  208. .rickshaw_graph .y_ticks.glow text {
  209. fill: black;
  210. color: black;
  211. text-shadow: -1px 1px 0 rgba(255, 255, 255, 0.1), 1px -1px 0 rgba(255, 255, 255, 0.1), 1px 1px 0 rgba(255, 255, 255, 0.1), 0px 1px 0 rgba(255, 255, 255, 0.1), 0px -1px 0 rgba(255, 255, 255, 0.1), 1px 0px 0 rgba(255, 255, 255, 0.1), -1px 0px 0 rgba(255, 255, 255, 0.1), -1px -1px 0 rgba(255, 255, 255, 0.1); }
  212. .rickshaw_graph .x_tick.inverse .title,
  213. .rickshaw_graph .y_ticks.inverse text {
  214. fill: white;
  215. color: white;
  216. text-shadow: -1px 1px 0 rgba(0, 0, 0, 0.8), 1px -1px 0 rgba(0, 0, 0, 0.8), 1px 1px 0 rgba(0, 0, 0, 0.8), 0px 1px 0 rgba(0, 0, 0, 0.8), 0px -1px 0 rgba(0, 0, 0, 0.8), 1px 0px 0 rgba(0, 0, 0, 0.8), -1px 0px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.8); }
  217. .rickshaw_legend {
  218. font-family: Arial;
  219. font-size: 12px;
  220. color: #526069;
  221. display: inline-block;
  222. padding: 12px 5px;
  223. border-radius: 2px;
  224. position: relative; }
  225. .rickshaw_legend:hover {
  226. z-index: 10; }
  227. .rickshaw_legend .swatch {
  228. width: 10px;
  229. height: 10px;
  230. border: 1px solid rgba(0, 0, 0, 0.2); }
  231. .rickshaw_legend .line {
  232. clear: both;
  233. line-height: 140%;
  234. padding-right: 15px; }
  235. .rickshaw_legend .line .swatch {
  236. display: inline-block;
  237. margin-right: 3px;
  238. border-radius: 2px; }
  239. .rickshaw_legend .label {
  240. margin: 0;
  241. white-space: nowrap;
  242. display: inline;
  243. font-size: inherit;
  244. background-color: transparent;
  245. color: #76838f;
  246. font-weight: normal;
  247. line-height: normal;
  248. padding: 0px;
  249. text-shadow: none; }
  250. .rickshaw_legend .action {
  251. margin-right: 0.2em;
  252. font-size: 10px;
  253. color: #76838f;
  254. opacity: 0.8;
  255. cursor: pointer;
  256. font-size: 14px; }
  257. .rickshaw_legend .action:hover {
  258. opacity: 1; }
  259. .rickshaw_legend .line.disabled {
  260. opacity: 0.5; }
  261. .rickshaw_legend ul {
  262. list-style-type: none;
  263. margin: 0;
  264. padding: 0;
  265. margin: 2px;
  266. cursor: pointer; }
  267. .rickshaw_legend li {
  268. padding: 0 0 0 2px;
  269. min-width: 80px;
  270. white-space: nowrap; }
  271. .rickshaw_legend li:hover,
  272. .rickshaw_legend li:active {
  273. background: rgba(204, 213, 219, 0.2);
  274. border-radius: 3px; }
  275. .rickshaw_legend li:hover .label,
  276. .rickshaw_legend li:active .label {
  277. color: #37474f; }
  278. .rickshaw_legend li:hover .action,
  279. .rickshaw_legend li:active .action {
  280. color: #37474f; }
  281. .rickshaw-wrap {
  282. position: relative; }
  283. .rickshaw-legend-wrap {
  284. position: absolute;
  285. background-color: transparent;
  286. top: 2px;
  287. right: 2px; }
  288. .rickshaw-legend-wrap .rickshaw_legend {
  289. padding: 0; }