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.

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