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.

464 lines
9.5 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. .vis.timeline .item.dot {
  118. padding: 0;
  119. border: 5px solid #97B0F8;
  120. position: absolute;
  121. border-radius: 5px;
  122. -moz-border-radius: 5px; /* For Firefox 3.6 and older */
  123. }
  124. .vis.timeline .item.range,
  125. .vis.timeline .item.rangeoverflow{
  126. border-style: solid;
  127. border-width: 1px;
  128. border-radius: 2px;
  129. -moz-border-radius: 2px; /* For Firefox 3.6 and older */
  130. box-sizing: border-box;
  131. }
  132. .vis.timeline .item.range .content,
  133. .vis.timeline .item.rangeoverflow .content {
  134. position: relative;
  135. display: inline-block;
  136. }
  137. .vis.timeline .item.range .content {
  138. overflow: hidden;
  139. max-width: 100%;
  140. }
  141. .vis.timeline .item.line {
  142. padding: 0;
  143. position: absolute;
  144. width: 0;
  145. border-left-width: 1px;
  146. border-left-style: solid;
  147. }
  148. .vis.timeline .item .content {
  149. white-space: nowrap;
  150. overflow: hidden;
  151. }
  152. .vis.timeline .item .delete {
  153. background: url('img/timeline/delete.png') no-repeat top center;
  154. position: absolute;
  155. width: 24px;
  156. height: 24px;
  157. top: 0;
  158. right: -24px;
  159. cursor: pointer;
  160. }
  161. .vis.timeline .item.range .drag-left,
  162. .vis.timeline .item.rangeoverflow .drag-left {
  163. position: absolute;
  164. width: 24px;
  165. height: 100%;
  166. top: 0;
  167. left: -4px;
  168. cursor: w-resize;
  169. z-index: 10000;
  170. }
  171. .vis.timeline .item.range .drag-right,
  172. .vis.timeline .item.rangeoverflow .drag-right {
  173. position: absolute;
  174. width: 24px;
  175. height: 100%;
  176. top: 0;
  177. right: -4px;
  178. cursor: e-resize;
  179. z-index: 10001; /* a little higher z-index than .drag-left */
  180. }
  181. .vis.timeline .axis {
  182. position: relative;
  183. }
  184. .vis.timeline .axis .text {
  185. position: absolute;
  186. color: #4d4d4d;
  187. padding: 3px;
  188. white-space: nowrap;
  189. }
  190. .vis.timeline .axis .text.measure {
  191. position: absolute;
  192. padding-left: 0;
  193. padding-right: 0;
  194. margin-left: 0;
  195. margin-right: 0;
  196. visibility: hidden;
  197. }
  198. .vis.timeline .axis .grid.vertical {
  199. position: absolute;
  200. width: 0;
  201. border-right: 1px solid;
  202. }
  203. .vis.timeline .axis .grid.horizontal {
  204. position: absolute;
  205. left: 0;
  206. width: 100%;
  207. height: 0;
  208. border-bottom: 1px solid;
  209. }
  210. .vis.timeline .axis .grid.minor {
  211. border-color: #e5e5e5;
  212. }
  213. .vis.timeline .axis .grid.major {
  214. border-color: #bfbfbf;
  215. }
  216. .vis.timeline .currenttime {
  217. background-color: #FF7F6E;
  218. width: 2px;
  219. z-index: 9;
  220. }
  221. .vis.timeline .customtime {
  222. background-color: #6E94FF;
  223. width: 2px;
  224. cursor: move;
  225. z-index: 9;
  226. }
  227. div.graph-manipulationDiv {
  228. border-width:0px;
  229. border-bottom: 1px;
  230. border-style:solid;
  231. border-color: #d6d9d8;
  232. background: #ffffff; /* Old browsers */
  233. background: -moz-linear-gradient(top, #ffffff 0%, #fcfcfc 48%, #fafafa 50%, #fcfcfc 100%); /* FF3.6+ */
  234. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(48%,#fcfcfc), color-stop(50%,#fafafa), color-stop(100%,#fcfcfc)); /* Chrome,Safari4+ */
  235. background: -webkit-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */
  236. background: -o-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Opera 11.10+ */
  237. background: -ms-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* IE10+ */
  238. background: linear-gradient(to bottom, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* W3C */
  239. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */
  240. width: 600px;
  241. height:30px;
  242. z-index:10;
  243. position:absolute;
  244. }
  245. div.graph-manipulation-editMode {
  246. height:30px;
  247. z-index:10;
  248. position:absolute;
  249. margin-top:20px;
  250. }
  251. div.graph-manipulation-closeDiv {
  252. height:30px;
  253. width:30px;
  254. z-index:11;
  255. position:absolute;
  256. margin-top:3px;
  257. margin-left:590px;
  258. background-position: 0px 0px;
  259. background-repeat:no-repeat;
  260. background-image: url("img/graph/cross.png");
  261. cursor: pointer;
  262. -webkit-touch-callout: none;
  263. -webkit-user-select: none;
  264. -khtml-user-select: none;
  265. -moz-user-select: none;
  266. -ms-user-select: none;
  267. user-select: none;
  268. }
  269. span.graph-manipulationUI {
  270. font-family: verdana;
  271. font-size: 12px;
  272. -moz-border-radius: 15px;
  273. border-radius: 15px;
  274. display:inline-block;
  275. background-position: 0px 0px;
  276. background-repeat:no-repeat;
  277. height:24px;
  278. margin: -14px 0px 0px 10px;
  279. vertical-align:middle;
  280. cursor: pointer;
  281. padding: 0px 8px 0px 8px;
  282. -webkit-touch-callout: none;
  283. -webkit-user-select: none;
  284. -khtml-user-select: none;
  285. -moz-user-select: none;
  286. -ms-user-select: none;
  287. user-select: none;
  288. }
  289. span.graph-manipulationUI:hover {
  290. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.20);
  291. }
  292. span.graph-manipulationUI:active {
  293. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.50);
  294. }
  295. span.graph-manipulationUI.back {
  296. background-image: url("img/graph/backIcon.png");
  297. }
  298. span.graph-manipulationUI.none:hover {
  299. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  300. cursor: default;
  301. }
  302. span.graph-manipulationUI.none:active {
  303. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  304. }
  305. span.graph-manipulationUI.none {
  306. padding: 0px 0px 0px 0px;
  307. }
  308. span.graph-manipulationUI.notification{
  309. margin: 2px;
  310. font-weight: bold;
  311. }
  312. span.graph-manipulationUI.add {
  313. background-image: url("img/graph/addNodeIcon.png");
  314. }
  315. span.graph-manipulationUI.edit {
  316. background-image: url("img/graph/editIcon.png");
  317. }
  318. span.graph-manipulationUI.edit.editmode {
  319. background-color: #fcfcfc;
  320. border-style:solid;
  321. border-width:1px;
  322. border-color: #cccccc;
  323. }
  324. span.graph-manipulationUI.connect {
  325. background-image: url("img/graph/connectIcon.png");
  326. }
  327. span.graph-manipulationUI.delete {
  328. background-image: url("img/graph/deleteIcon.png");
  329. }
  330. /* top right bottom left */
  331. span.graph-manipulationLabel {
  332. margin: 0px 0px 0px 23px;
  333. line-height: 25px;
  334. }
  335. div.graph-seperatorLine {
  336. display:inline-block;
  337. width:1px;
  338. height:20px;
  339. background-color: #bdbdbd;
  340. margin: 5px 7px 0px 15px;
  341. }
  342. div.graph-navigation {
  343. width:34px;
  344. height:34px;
  345. z-index:10;
  346. -moz-border-radius: 17px;
  347. border-radius: 17px;
  348. position:absolute;
  349. display:inline-block;
  350. background-position: 2px 2px;
  351. background-repeat:no-repeat;
  352. cursor: pointer;
  353. -webkit-touch-callout: none;
  354. -webkit-user-select: none;
  355. -khtml-user-select: none;
  356. -moz-user-select: none;
  357. -ms-user-select: none;
  358. user-select: none;
  359. }
  360. div.graph-navigation:hover {
  361. box-shadow: 0px 0px 3px 3px rgba(56, 207, 21, 0.30);
  362. }
  363. div.graph-navigation:active {
  364. box-shadow: 0px 0px 1px 3px rgba(56, 207, 21, 0.95);
  365. }
  366. div.graph-navigation.up {
  367. background-image: url("img/graph/upArrow.png");
  368. bottom:50px;
  369. left:55px;
  370. }
  371. div.graph-navigation.down {
  372. background-image: url("img/graph/downArrow.png");
  373. bottom:10px;
  374. left:55px;
  375. }
  376. div.graph-navigation.left {
  377. background-image: url("img/graph/leftArrow.png");
  378. bottom:10px;
  379. left:15px;
  380. }
  381. div.graph-navigation.right {
  382. background-image: url("img/graph/rightArrow.png");
  383. bottom:10px;
  384. left:95px;
  385. }
  386. div.graph-navigation.zoomIn {
  387. background-image: url("img/graph/plus.png");
  388. bottom:10px;
  389. right:15px;
  390. }
  391. div.graph-navigation.zoomOut {
  392. background-image: url("img/graph/minus.png");
  393. bottom:10px;
  394. right:55px;
  395. }
  396. div.graph-navigation.zoomExtends {
  397. background-image: url("img/graph/zoomExtends.png");
  398. bottom:50px;
  399. right:15px;
  400. }