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.

552 lines
11 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. .vis.timeline {
  2. }
  3. .vis.timeline.root {
  4. position: relative;
  5. border: 1px solid #bfbfbf;
  6. overflow: hidden;
  7. padding: 0;
  8. margin: 0;
  9. box-sizing: border-box;
  10. }
  11. .vis.timeline .vispanel {
  12. position: absolute;
  13. padding: 0;
  14. margin: 0;
  15. box-sizing: border-box;
  16. }
  17. .vis.timeline .vispanel.center,
  18. .vis.timeline .vispanel.left,
  19. .vis.timeline .vispanel.right,
  20. .vis.timeline .vispanel.top,
  21. .vis.timeline .vispanel.bottom {
  22. border: 1px #bfbfbf;
  23. }
  24. .vis.timeline .vispanel.center,
  25. .vis.timeline .vispanel.left,
  26. .vis.timeline .vispanel.right {
  27. border-top-style: solid;
  28. border-bottom-style: solid;
  29. overflow: hidden;
  30. }
  31. .vis.timeline .vispanel.center,
  32. .vis.timeline .vispanel.top,
  33. .vis.timeline .vispanel.bottom {
  34. border-left-style: solid;
  35. border-right-style: solid;
  36. }
  37. .vis.timeline .background {
  38. overflow: hidden;
  39. }
  40. .vis.timeline .vispanel > .content {
  41. position: relative;
  42. }
  43. .vis.timeline .labelset {
  44. position: relative;
  45. width: 100%;
  46. overflow: hidden;
  47. box-sizing: border-box;
  48. }
  49. .vis.timeline .labelset .vlabel {
  50. position: relative;
  51. left: 0;
  52. top: 0;
  53. width: 100%;
  54. color: #4d4d4d;
  55. box-sizing: border-box;
  56. }
  57. .vis.timeline .labelset .vlabel {
  58. border-bottom: 1px solid #bfbfbf;
  59. }
  60. .vis.timeline .labelset .vlabel:last-child {
  61. border-bottom: none;
  62. }
  63. .vis.timeline .labelset .vlabel .inner {
  64. display: inline-block;
  65. padding: 5px;
  66. }
  67. .vis.timeline .labelset .vlabel .inner.hidden {
  68. padding: 0;
  69. }
  70. .vis.timeline .itemset {
  71. position: relative;
  72. padding: 0;
  73. margin: 0;
  74. box-sizing: border-box;
  75. /* FIXME: get transition working for rootpanel and itemset
  76. -webkit-transition: height 4s ease-in-out;
  77. transition: height 4s ease-in-out;
  78. /**/
  79. }
  80. .vis.timeline .itemset .background,
  81. .vis.timeline .itemset .foreground {
  82. position: absolute;
  83. width: 100%;
  84. height: 100%;
  85. }
  86. .vis.timeline .itemset.foreground {
  87. overflow: hidden;
  88. }
  89. .vis.timeline .axis {
  90. position: absolute;
  91. width: 100%;
  92. height: 0;
  93. left: 1px;
  94. z-index: 1;
  95. }
  96. .vis.timeline .group {
  97. position: relative;
  98. box-sizing: border-box;
  99. border-bottom: 1px solid #bfbfbf;
  100. }
  101. .vis.timeline .group:last-child {
  102. border-bottom: none;
  103. }
  104. /*
  105. .vis.timeline.top .group {
  106. border-top: 1px solid #bfbfbf;
  107. border-bottom: none;
  108. }
  109. .vis.timeline.bottom .group {
  110. border-top: none;
  111. border-bottom: 1px solid #bfbfbf;
  112. }
  113. */
  114. .vis.timeline .item {
  115. position: absolute;
  116. color: #1A1A1A;
  117. border-color: #97B0F8;
  118. border-width: 1px;
  119. background-color: #D5DDF6;
  120. display: inline-block;
  121. padding: 5px;
  122. /* TODO: enable css transitions
  123. -webkit-transition: top .4s ease-in-out, bottom .4s ease-in-out;
  124. transition: top .4s ease-in-out, bottom .4s ease-in-out;
  125. /**/
  126. }
  127. .vis.timeline .item.selected {
  128. border-color: #FFC200;
  129. background-color: #FFF785;
  130. z-index: 999;
  131. }
  132. .vis.timeline .editable .item.selected {
  133. cursor: move;
  134. }
  135. .vis.timeline .item.point.selected {
  136. background-color: #FFF785;
  137. }
  138. .vis.timeline .item.box {
  139. text-align: center;
  140. border-style: solid;
  141. border-radius: 2px;
  142. }
  143. .vis.timeline .item.point {
  144. background: none;
  145. }
  146. .vis.timeline .item.dot {
  147. position: absolute;
  148. padding: 0;
  149. border-width: 4px;
  150. border-style: solid;
  151. border-radius: 4px;
  152. }
  153. .vis.timeline .item.range,
  154. .vis.timeline .item.rangeoverflow{
  155. border-style: solid;
  156. border-radius: 2px;
  157. box-sizing: border-box;
  158. }
  159. .vis.timeline .item.range .content,
  160. .vis.timeline .item.rangeoverflow .content {
  161. position: relative;
  162. display: inline-block;
  163. }
  164. .vis.timeline .item.range .content {
  165. overflow: hidden;
  166. max-width: 100%;
  167. }
  168. .vis.timeline .item.line {
  169. padding: 0;
  170. position: absolute;
  171. width: 0;
  172. border-left-width: 1px;
  173. border-left-style: solid;
  174. /* TODO: enable css transitions
  175. -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
  176. transition: height .4s ease-in-out, top .4s ease-in-out;
  177. /**/
  178. }
  179. .vis.timeline .item .content {
  180. white-space: nowrap;
  181. overflow: hidden;
  182. }
  183. .vis.timeline .item .delete {
  184. background: url('img/timeline/delete.png') no-repeat top center;
  185. position: absolute;
  186. width: 24px;
  187. height: 24px;
  188. top: 0;
  189. right: -24px;
  190. cursor: pointer;
  191. }
  192. .vis.timeline .item.range .drag-left,
  193. .vis.timeline .item.rangeoverflow .drag-left {
  194. position: absolute;
  195. width: 24px;
  196. height: 100%;
  197. top: 0;
  198. left: -4px;
  199. cursor: w-resize;
  200. z-index: 10000;
  201. }
  202. .vis.timeline .item.range .drag-right,
  203. .vis.timeline .item.rangeoverflow .drag-right {
  204. position: absolute;
  205. width: 24px;
  206. height: 100%;
  207. top: 0;
  208. right: -4px;
  209. cursor: e-resize;
  210. z-index: 10001; /* a little higher z-index than .drag-left */
  211. }
  212. .vis.timeline .timeaxis {
  213. position: relative;
  214. overflow: hidden;
  215. }
  216. .vis.timeline .timeaxis.foreground {
  217. top: 0;
  218. left: 0;
  219. width: 100%;
  220. }
  221. .vis.timeline .timeaxis.background {
  222. position: absolute;
  223. top: 0;
  224. left: 0;
  225. width: 100%;
  226. height: 100%;
  227. }
  228. .vis.timeline .timeaxis .text {
  229. position: absolute;
  230. color: #4d4d4d;
  231. padding: 3px;
  232. white-space: nowrap;
  233. }
  234. .vis.timeline .timeaxis .text.measure {
  235. position: absolute;
  236. padding-left: 0;
  237. padding-right: 0;
  238. margin-left: 0;
  239. margin-right: 0;
  240. visibility: hidden;
  241. }
  242. .vis.timeline .timeaxis .grid.vertical {
  243. position: absolute;
  244. width: 0;
  245. border-right: 1px solid;
  246. }
  247. .vis.timeline .timeaxis .grid.minor {
  248. border-color: #e5e5e5;
  249. }
  250. .vis.timeline .timeaxis .grid.major {
  251. border-color: #bfbfbf;
  252. }
  253. .vis.timeline .currenttime {
  254. background-color: #FF7F6E;
  255. width: 2px;
  256. z-index: 1;
  257. }
  258. .vis.timeline .customtime {
  259. background-color: #6E94FF;
  260. width: 2px;
  261. cursor: move;
  262. z-index: 1;
  263. }
  264. .vis.timeline .vispanel.background.horizontal .grid.horizontal {
  265. position: absolute;
  266. left: 0;
  267. width: 100%;
  268. height: 0;
  269. border-bottom: 1px solid;
  270. }
  271. .vis.timeline .vispanel.background.horizontal .grid.minor {
  272. border-color: #e5e5e5;
  273. }
  274. .vis.timeline .vispanel.background.horizontal .grid.major {
  275. border-color: #bfbfbf;
  276. }
  277. .vis.timeline .dataaxis .yAxis.major {
  278. font-size:12px;
  279. width: 100%;
  280. position: absolute;
  281. color: #4d4d4d;
  282. white-space: nowrap;
  283. }
  284. .vis.timeline .dataaxis .yAxis.minor{
  285. font-size:9px;
  286. position: absolute;
  287. width: 100%;
  288. color: #4d4d4d;
  289. white-space: nowrap;
  290. }
  291. div.graph-manipulationDiv {
  292. border-width:0px;
  293. border-bottom: 1px;
  294. border-style:solid;
  295. border-color: #d6d9d8;
  296. background: #ffffff; /* Old browsers */
  297. background: -moz-linear-gradient(top, #ffffff 0%, #fcfcfc 48%, #fafafa 50%, #fcfcfc 100%); /* FF3.6+ */
  298. 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+ */
  299. background: -webkit-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */
  300. background: -o-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Opera 11.10+ */
  301. background: -ms-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* IE10+ */
  302. background: linear-gradient(to bottom, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* W3C */
  303. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */
  304. width: 600px;
  305. height:30px;
  306. z-index:10;
  307. position:absolute;
  308. }
  309. div.graph-manipulation-editMode {
  310. height:30px;
  311. z-index:10;
  312. position:absolute;
  313. margin-top:20px;
  314. }
  315. div.graph-manipulation-closeDiv {
  316. height:30px;
  317. width:30px;
  318. z-index:11;
  319. position:absolute;
  320. margin-top:3px;
  321. margin-left:590px;
  322. background-position: 0px 0px;
  323. background-repeat:no-repeat;
  324. background-image: url("img/graph/cross.png");
  325. cursor: pointer;
  326. -webkit-touch-callout: none;
  327. -webkit-user-select: none;
  328. -khtml-user-select: none;
  329. -moz-user-select: none;
  330. -ms-user-select: none;
  331. user-select: none;
  332. }
  333. span.graph-manipulationUI {
  334. font-family: verdana;
  335. font-size: 12px;
  336. -moz-border-radius: 15px;
  337. border-radius: 15px;
  338. display:inline-block;
  339. background-position: 0px 0px;
  340. background-repeat:no-repeat;
  341. height:24px;
  342. margin: -14px 0px 0px 10px;
  343. vertical-align:middle;
  344. cursor: pointer;
  345. padding: 0px 8px 0px 8px;
  346. -webkit-touch-callout: none;
  347. -webkit-user-select: none;
  348. -khtml-user-select: none;
  349. -moz-user-select: none;
  350. -ms-user-select: none;
  351. user-select: none;
  352. }
  353. span.graph-manipulationUI:hover {
  354. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.20);
  355. }
  356. span.graph-manipulationUI:active {
  357. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.50);
  358. }
  359. span.graph-manipulationUI.back {
  360. background-image: url("img/graph/backIcon.png");
  361. }
  362. span.graph-manipulationUI.none:hover {
  363. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  364. cursor: default;
  365. }
  366. span.graph-manipulationUI.none:active {
  367. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  368. }
  369. span.graph-manipulationUI.none {
  370. padding: 0px 0px 0px 0px;
  371. }
  372. span.graph-manipulationUI.notification{
  373. margin: 2px;
  374. font-weight: bold;
  375. }
  376. span.graph-manipulationUI.add {
  377. background-image: url("img/graph/addNodeIcon.png");
  378. }
  379. span.graph-manipulationUI.edit {
  380. background-image: url("img/graph/editIcon.png");
  381. }
  382. span.graph-manipulationUI.edit.editmode {
  383. background-color: #fcfcfc;
  384. border-style:solid;
  385. border-width:1px;
  386. border-color: #cccccc;
  387. }
  388. span.graph-manipulationUI.connect {
  389. background-image: url("img/graph/connectIcon.png");
  390. }
  391. span.graph-manipulationUI.delete {
  392. background-image: url("img/graph/deleteIcon.png");
  393. }
  394. /* top right bottom left */
  395. span.graph-manipulationLabel {
  396. margin: 0px 0px 0px 23px;
  397. line-height: 25px;
  398. }
  399. div.graph-seperatorLine {
  400. display:inline-block;
  401. width:1px;
  402. height:20px;
  403. background-color: #bdbdbd;
  404. margin: 5px 7px 0px 15px;
  405. }
  406. div.graph-navigation {
  407. width:34px;
  408. height:34px;
  409. z-index:10;
  410. -moz-border-radius: 17px;
  411. border-radius: 17px;
  412. position:absolute;
  413. display:inline-block;
  414. background-position: 2px 2px;
  415. background-repeat:no-repeat;
  416. cursor: pointer;
  417. -webkit-touch-callout: none;
  418. -webkit-user-select: none;
  419. -khtml-user-select: none;
  420. -moz-user-select: none;
  421. -ms-user-select: none;
  422. user-select: none;
  423. }
  424. div.graph-navigation:hover {
  425. box-shadow: 0px 0px 3px 3px rgba(56, 207, 21, 0.30);
  426. }
  427. div.graph-navigation:active {
  428. box-shadow: 0px 0px 1px 3px rgba(56, 207, 21, 0.95);
  429. }
  430. div.graph-navigation.active {
  431. box-shadow: 0px 0px 1px 3px rgba(56, 207, 21, 0.95);
  432. }
  433. div.graph-navigation.up {
  434. background-image: url("img/graph/upArrow.png");
  435. bottom:50px;
  436. left:55px;
  437. }
  438. div.graph-navigation.down {
  439. background-image: url("img/graph/downArrow.png");
  440. bottom:10px;
  441. left:55px;
  442. }
  443. div.graph-navigation.left {
  444. background-image: url("img/graph/leftArrow.png");
  445. bottom:10px;
  446. left:15px;
  447. }
  448. div.graph-navigation.right {
  449. background-image: url("img/graph/rightArrow.png");
  450. bottom:10px;
  451. left:95px;
  452. }
  453. div.graph-navigation.zoomIn {
  454. background-image: url("img/graph/plus.png");
  455. bottom:10px;
  456. right:15px;
  457. }
  458. div.graph-navigation.zoomOut {
  459. background-image: url("img/graph/minus.png");
  460. bottom:10px;
  461. right:55px;
  462. }
  463. div.graph-navigation.zoomExtends {
  464. background-image: url("img/graph/zoomExtends.png");
  465. bottom:50px;
  466. right:15px;
  467. }