vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

273 lines
4.6 KiB

  1. .vis.timeline {
  2. }
  3. .vis.timeline.rootpanel {
  4. position: relative;
  5. overflow: hidden;
  6. border: 1px solid #bfbfbf;
  7. -moz-box-sizing: border-box;
  8. box-sizing: border-box;
  9. }
  10. .vis.timeline .vpanel {
  11. position: absolute;
  12. overflow: hidden;
  13. }
  14. .vis.timeline .groupset {
  15. position: absolute;
  16. padding: 0;
  17. margin: 0;
  18. }
  19. .vis.timeline .labels {
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. width: 100%;
  24. height: 100%;
  25. padding: 0;
  26. margin: 0;
  27. border-right: 1px solid #bfbfbf;
  28. box-sizing: border-box;
  29. -moz-box-sizing: border-box;
  30. }
  31. .vis.timeline .labels .label-set {
  32. position: absolute;
  33. top: 0;
  34. left: 0;
  35. width: 100%;
  36. height: 100%;
  37. overflow: hidden;
  38. border-top: none;
  39. border-bottom: 1px solid #bfbfbf;
  40. }
  41. .vis.timeline .labels .label-set .vlabel {
  42. position: absolute;
  43. left: 0;
  44. top: 0;
  45. width: 100%;
  46. color: #4d4d4d;
  47. }
  48. .vis.timeline.top .labels .label-set .vlabel,
  49. .vis.timeline.top .groupset .itemset-axis {
  50. border-top: 1px solid #bfbfbf;
  51. border-bottom: none;
  52. }
  53. .vis.timeline.bottom .labels .label-set .vlabel,
  54. .vis.timeline.bottom .groupset .itemset-axis {
  55. border-top: none;
  56. border-bottom: 1px solid #bfbfbf;
  57. }
  58. .vis.timeline .labels .label-set .vlabel .inner {
  59. display: inline-block;
  60. padding: 5px;
  61. }
  62. .vis.timeline .itemset {
  63. position: absolute;
  64. padding: 0;
  65. margin: 0;
  66. overflow: hidden;
  67. }
  68. .vis.timeline .background {
  69. }
  70. .vis.timeline .foreground {
  71. }
  72. .vis.timeline .itemset-axis {
  73. position: absolute;
  74. }
  75. .vis.timeline .item {
  76. position: absolute;
  77. color: #1A1A1A;
  78. border-color: #97B0F8;
  79. background-color: #D5DDF6;
  80. display: inline-block;
  81. padding: 5px;
  82. }
  83. .vis.timeline .item.selected {
  84. border-color: #FFC200;
  85. background-color: #FFF785;
  86. z-index: 999;
  87. }
  88. .vis.timeline.editable .item.selected {
  89. cursor: move;
  90. }
  91. .vis.timeline .item.point.selected {
  92. background-color: #FFF785;
  93. z-index: 999;
  94. }
  95. .vis.timeline .item.point.selected .dot {
  96. border-color: #FFC200;
  97. }
  98. .vis.timeline .item.cluster {
  99. /* TODO: use another color or pattern? */
  100. background: #97B0F8 url('img/cluster_bg.png');
  101. color: white;
  102. }
  103. .vis.timeline .item.cluster.point {
  104. border-color: #D5DDF6;
  105. }
  106. .vis.timeline .item.box {
  107. text-align: center;
  108. border-style: solid;
  109. border-width: 1px;
  110. border-radius: 5px;
  111. -moz-border-radius: 5px; /* For Firefox 3.6 and older */
  112. }
  113. .vis.timeline .item.point {
  114. background: none;
  115. }
  116. .vis.timeline .dot {
  117. padding: 0;
  118. border: 5px solid #97B0F8;
  119. position: absolute;
  120. border-radius: 5px;
  121. -moz-border-radius: 5px; /* For Firefox 3.6 and older */
  122. }
  123. .vis.timeline .item.range,
  124. .vis.timeline .item.rangeoverflow{
  125. border-style: solid;
  126. border-width: 1px;
  127. border-radius: 2px;
  128. -moz-border-radius: 2px; /* For Firefox 3.6 and older */
  129. box-sizing: border-box;
  130. }
  131. .vis.timeline .item.range .content,
  132. .vis.timeline .item.rangeoverflow .content {
  133. position: relative;
  134. display: inline-block;
  135. }
  136. .vis.timeline .item.range .content {
  137. overflow: hidden;
  138. max-width: 100%;
  139. }
  140. .vis.timeline .item.line {
  141. padding: 0;
  142. position: absolute;
  143. width: 0;
  144. border-left-width: 1px;
  145. border-left-style: solid;
  146. }
  147. .vis.timeline .item .content {
  148. white-space: nowrap;
  149. overflow: hidden;
  150. }
  151. .vis.timeline .item .delete {
  152. background: url('img/timeline/delete.png') no-repeat top center;
  153. position: absolute;
  154. width: 24px;
  155. height: 24px;
  156. top: 0;
  157. right: -24px;
  158. cursor: pointer;
  159. }
  160. .vis.timeline .item.range .drag-left,
  161. .vis.timeline .item.rangeoverflow .drag-left {
  162. position: absolute;
  163. width: 24px;
  164. height: 100%;
  165. top: 0;
  166. left: -4px;
  167. cursor: w-resize;
  168. z-index: 10000;
  169. }
  170. .vis.timeline .item.range .drag-right,
  171. .vis.timeline .item.rangeoverflow .drag-right {
  172. position: absolute;
  173. width: 24px;
  174. height: 100%;
  175. top: 0;
  176. right: -4px;
  177. cursor: e-resize;
  178. z-index: 10001; /* a little higher z-index than .drag-left */
  179. }
  180. .vis.timeline .axis {
  181. position: relative;
  182. }
  183. .vis.timeline .axis .text {
  184. position: absolute;
  185. color: #4d4d4d;
  186. padding: 3px;
  187. white-space: nowrap;
  188. }
  189. .vis.timeline .axis .text.measure {
  190. position: absolute;
  191. padding-left: 0;
  192. padding-right: 0;
  193. margin-left: 0;
  194. margin-right: 0;
  195. visibility: hidden;
  196. }
  197. .vis.timeline .axis .grid.vertical {
  198. position: absolute;
  199. width: 0;
  200. border-right: 1px solid;
  201. }
  202. .vis.timeline .axis .grid.horizontal {
  203. position: absolute;
  204. left: 0;
  205. width: 100%;
  206. height: 0;
  207. border-bottom: 1px solid;
  208. }
  209. .vis.timeline .axis .grid.minor {
  210. border-color: #e5e5e5;
  211. }
  212. .vis.timeline .axis .grid.major {
  213. border-color: #bfbfbf;
  214. }
  215. .vis.timeline .currenttime {
  216. background-color: #FF7F6E;
  217. width: 2px;
  218. z-index: 9;
  219. }
  220. .vis.timeline .customtime {
  221. background-color: #6E94FF;
  222. width: 2px;
  223. cursor: move;
  224. z-index: 9;
  225. }