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.

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