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.

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