1
0

rickshaw.css 6.1 KB

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