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.

544 lines
11 KiB

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