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.

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