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.

471 lines
9.8 KiB

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