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.

785 lines
15 KiB

  1. .vis .overlay {
  2. position: absolute;
  3. top: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 100%;
  7. /* Must be displayed above for example selected Timeline items */
  8. z-index: 10;
  9. }
  10. .vis-active {
  11. box-shadow: 0 0 10px #86d5f8;
  12. }
  13. .vis.timeline {
  14. }
  15. .vis.timeline.root {
  16. position: relative;
  17. border: 1px solid #bfbfbf;
  18. overflow: hidden;
  19. padding: 0;
  20. margin: 0;
  21. box-sizing: border-box;
  22. }
  23. .vis.timeline .vispanel {
  24. position: absolute;
  25. padding: 0;
  26. margin: 0;
  27. box-sizing: border-box;
  28. }
  29. .vis.timeline .vispanel.center,
  30. .vis.timeline .vispanel.left,
  31. .vis.timeline .vispanel.right,
  32. .vis.timeline .vispanel.top,
  33. .vis.timeline .vispanel.bottom {
  34. border: 1px #bfbfbf;
  35. }
  36. .vis.timeline .vispanel.center,
  37. .vis.timeline .vispanel.left,
  38. .vis.timeline .vispanel.right {
  39. border-top-style: solid;
  40. border-bottom-style: solid;
  41. overflow: hidden;
  42. }
  43. .vis.timeline .vispanel.center,
  44. .vis.timeline .vispanel.top,
  45. .vis.timeline .vispanel.bottom {
  46. border-left-style: solid;
  47. border-right-style: solid;
  48. }
  49. .vis.timeline .background {
  50. overflow: hidden;
  51. }
  52. .vis.timeline .vispanel > .content {
  53. position: relative;
  54. }
  55. .vis.timeline .vispanel .shadow {
  56. position: absolute;
  57. width: 100%;
  58. height: 1px;
  59. box-shadow: 0 0 10px rgba(0,0,0,0.8);
  60. /* TODO: find a nice way to ensure shadows are drawn on top of items
  61. z-index: 1;
  62. */
  63. }
  64. .vis.timeline .vispanel .shadow.top {
  65. top: -1px;
  66. left: 0;
  67. }
  68. .vis.timeline .vispanel .shadow.bottom {
  69. bottom: -1px;
  70. left: 0;
  71. }
  72. .vis.timeline .labelset {
  73. position: relative;
  74. overflow: hidden;
  75. box-sizing: border-box;
  76. }
  77. .vis.timeline .labelset .vlabel {
  78. position: relative;
  79. left: 0;
  80. top: 0;
  81. width: 100%;
  82. color: #4d4d4d;
  83. box-sizing: border-box;
  84. }
  85. .vis.timeline .labelset .vlabel {
  86. border-bottom: 1px solid #bfbfbf;
  87. }
  88. .vis.timeline .labelset .vlabel:last-child {
  89. border-bottom: none;
  90. }
  91. .vis.timeline .labelset .vlabel .inner {
  92. display: inline-block;
  93. padding: 5px;
  94. }
  95. .vis.timeline .labelset .vlabel .inner.hidden {
  96. padding: 0;
  97. }
  98. .vis.timeline .itemset {
  99. position: relative;
  100. padding: 0;
  101. margin: 0;
  102. box-sizing: border-box;
  103. }
  104. .vis.timeline .itemset .background,
  105. .vis.timeline .itemset .foreground {
  106. position: absolute;
  107. width: 100%;
  108. height: 100%;
  109. overflow: visible;
  110. }
  111. .vis.timeline .axis {
  112. position: absolute;
  113. width: 100%;
  114. height: 0;
  115. left: 0;
  116. z-index: 1;
  117. }
  118. .vis.timeline .foreground .group {
  119. position: relative;
  120. box-sizing: border-box;
  121. border-bottom: 1px solid #bfbfbf;
  122. }
  123. .vis.timeline .foreground .group:last-child {
  124. border-bottom: none;
  125. }
  126. .vis.timeline .item {
  127. position: absolute;
  128. color: #1A1A1A;
  129. border-color: #97B0F8;
  130. border-width: 1px;
  131. background-color: #D5DDF6;
  132. display: inline-block;
  133. padding: 5px;
  134. }
  135. .vis.timeline .item.selected {
  136. border-color: #FFC200;
  137. background-color: #FFF785;
  138. /* z-index must be higher than the z-index of custom time bar and current time bar */
  139. z-index: 2;
  140. }
  141. .vis.timeline .editable .item.selected {
  142. cursor: move;
  143. }
  144. .vis.timeline .item.point.selected {
  145. background-color: #FFF785;
  146. }
  147. .vis.timeline .item.box {
  148. text-align: center;
  149. border-style: solid;
  150. border-radius: 2px;
  151. }
  152. .vis.timeline .item.point {
  153. background: none;
  154. }
  155. .vis.timeline .item.dot {
  156. position: absolute;
  157. padding: 0;
  158. border-width: 4px;
  159. border-style: solid;
  160. border-radius: 4px;
  161. }
  162. .vis.timeline .item.range {
  163. border-style: solid;
  164. border-radius: 2px;
  165. box-sizing: border-box;
  166. }
  167. .vis.timeline .item.background {
  168. overflow: hidden;
  169. border: none;
  170. background-color: rgba(213, 221, 246, 0.4);
  171. box-sizing: border-box;
  172. padding: 0;
  173. margin: 0;
  174. }
  175. .vis.timeline .item.range .content {
  176. position: relative;
  177. display: inline-block;
  178. overflow: hidden;
  179. max-width: 100%;
  180. }
  181. .vis.timeline .item.background .content {
  182. position: absolute;
  183. display: inline-block;
  184. overflow: hidden;
  185. max-width: 100%;
  186. margin: 5px;
  187. }
  188. .vis.timeline .item.line {
  189. padding: 0;
  190. position: absolute;
  191. width: 0;
  192. border-left-width: 1px;
  193. border-left-style: solid;
  194. }
  195. .vis.timeline .item .content {
  196. white-space: nowrap;
  197. overflow: hidden;
  198. }
  199. .vis.timeline .item .delete {
  200. background: url('img/timeline/delete.png') no-repeat top center;
  201. position: absolute;
  202. width: 24px;
  203. height: 24px;
  204. top: 0;
  205. right: -24px;
  206. cursor: pointer;
  207. }
  208. .vis.timeline .item.range .drag-left {
  209. position: absolute;
  210. width: 24px;
  211. height: 100%;
  212. top: 0;
  213. left: -4px;
  214. cursor: w-resize;
  215. }
  216. .vis.timeline .item.range .drag-right {
  217. position: absolute;
  218. width: 24px;
  219. height: 100%;
  220. top: 0;
  221. right: -4px;
  222. cursor: e-resize;
  223. }
  224. .vis.timeline .timeaxis {
  225. position: relative;
  226. overflow: hidden;
  227. }
  228. .vis.timeline .timeaxis.foreground {
  229. top: 0;
  230. left: 0;
  231. width: 100%;
  232. }
  233. .vis.timeline .timeaxis.background {
  234. position: absolute;
  235. top: 0;
  236. left: 0;
  237. width: 100%;
  238. height: 100%;
  239. }
  240. .vis.timeline .timeaxis .text {
  241. position: absolute;
  242. color: #4d4d4d;
  243. padding: 3px;
  244. white-space: nowrap;
  245. }
  246. .vis.timeline .timeaxis .text.measure {
  247. position: absolute;
  248. padding-left: 0;
  249. padding-right: 0;
  250. margin-left: 0;
  251. margin-right: 0;
  252. visibility: hidden;
  253. }
  254. .vis.timeline .timeaxis .grid.vertical {
  255. position: absolute;
  256. width: 0;
  257. border-right: 1px solid;
  258. }
  259. .vis.timeline .timeaxis .grid.minor {
  260. border-color: #e5e5e5;
  261. }
  262. .vis.timeline .timeaxis .grid.major {
  263. border-color: #bfbfbf;
  264. }
  265. .vis.timeline .currenttime {
  266. background-color: #FF7F6E;
  267. width: 2px;
  268. z-index: 1;
  269. }
  270. .vis.timeline .customtime {
  271. background-color: #6E94FF;
  272. width: 2px;
  273. cursor: move;
  274. z-index: 1;
  275. }
  276. .vis.timeline.root {
  277. /*
  278. -webkit-transition: height .4s ease-in-out;
  279. transition: height .4s ease-in-out;
  280. */
  281. }
  282. .vis.timeline .vispanel {
  283. /*
  284. -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
  285. transition: height .4s ease-in-out, top .4s ease-in-out;
  286. */
  287. }
  288. .vis.timeline .axis {
  289. /*
  290. -webkit-transition: top .4s ease-in-out;
  291. transition: top .4s ease-in-out;
  292. */
  293. }
  294. /* TODO: get animation working nicely
  295. .vis.timeline .item {
  296. -webkit-transition: top .4s ease-in-out;
  297. transition: top .4s ease-in-out;
  298. }
  299. .vis.timeline .item.line {
  300. -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
  301. transition: height .4s ease-in-out, top .4s ease-in-out;
  302. }
  303. /**/
  304. .vis.timeline .vispanel.background.horizontal .grid.horizontal {
  305. position: absolute;
  306. width: 100%;
  307. height: 0;
  308. border-bottom: 1px solid;
  309. }
  310. .vis.timeline .vispanel.background.horizontal .grid.minor {
  311. border-color: #e5e5e5;
  312. }
  313. .vis.timeline .vispanel.background.horizontal .grid.major {
  314. border-color: #bfbfbf;
  315. }
  316. .vis.timeline .dataaxis .yAxis.major {
  317. width: 100%;
  318. position: absolute;
  319. color: #4d4d4d;
  320. white-space: nowrap;
  321. }
  322. .vis.timeline .dataaxis .yAxis.major.measure{
  323. padding: 0px 0px 0px 0px;
  324. margin: 0px 0px 0px 0px;
  325. visibility: hidden;
  326. width: auto;
  327. }
  328. .vis.timeline .dataaxis .yAxis.minor{
  329. position: absolute;
  330. width: 100%;
  331. color: #bebebe;
  332. white-space: nowrap;
  333. }
  334. .vis.timeline .dataaxis .yAxis.minor.measure{
  335. padding: 0px 0px 0px 0px;
  336. margin: 0px 0px 0px 0px;
  337. visibility: hidden;
  338. width: auto;
  339. }
  340. .vis.timeline .dataaxis .yAxis.title{
  341. position: absolute;
  342. color: #4d4d4d;
  343. white-space: nowrap;
  344. bottom: 20px;
  345. text-align: center;
  346. }
  347. .vis.timeline .dataaxis .yAxis.title.measure{
  348. padding: 0px 0px 0px 0px;
  349. margin: 0px 0px 0px 0px;
  350. visibility: hidden;
  351. width: auto;
  352. }
  353. .vis.timeline .dataaxis .yAxis.title.left {
  354. bottom: 0px;
  355. -webkit-transform-origin: left top;
  356. -moz-transform-origin: left top;
  357. -ms-transform-origin: left top;
  358. -o-transform-origin: left top;
  359. transform-origin: left bottom;
  360. -webkit-transform: rotate(-90deg);
  361. -moz-transform: rotate(-90deg);
  362. -ms-transform: rotate(-90deg);
  363. -o-transform: rotate(-90deg);
  364. transform: rotate(-90deg);
  365. }
  366. .vis.timeline .dataaxis .yAxis.title.right {
  367. bottom: 0px;
  368. -webkit-transform-origin: right bottom;
  369. -moz-transform-origin: right bottom;
  370. -ms-transform-origin: right bottom;
  371. -o-transform-origin: right bottom;
  372. transform-origin: right bottom;
  373. -webkit-transform: rotate(90deg);
  374. -moz-transform: rotate(90deg);
  375. -ms-transform: rotate(90deg);
  376. -o-transform: rotate(90deg);
  377. transform: rotate(90deg);
  378. }
  379. .vis.timeline .legend {
  380. background-color: rgba(247, 252, 255, 0.65);
  381. padding: 5px;
  382. border-color: #b3b3b3;
  383. border-style:solid;
  384. border-width: 1px;
  385. box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);
  386. }
  387. .vis.timeline .legendText {
  388. /*font-size: 10px;*/
  389. white-space: nowrap;
  390. display: inline-block
  391. }
  392. .vis.timeline .graphGroup0 {
  393. fill:#4f81bd;
  394. fill-opacity:0;
  395. stroke-width:2px;
  396. stroke: #4f81bd;
  397. }
  398. .vis.timeline .graphGroup1 {
  399. fill:#f79646;
  400. fill-opacity:0;
  401. stroke-width:2px;
  402. stroke: #f79646;
  403. }
  404. .vis.timeline .graphGroup2 {
  405. fill: #8c51cf;
  406. fill-opacity:0;
  407. stroke-width:2px;
  408. stroke: #8c51cf;
  409. }
  410. .vis.timeline .graphGroup3 {
  411. fill: #75c841;
  412. fill-opacity:0;
  413. stroke-width:2px;
  414. stroke: #75c841;
  415. }
  416. .vis.timeline .graphGroup4 {
  417. fill: #ff0100;
  418. fill-opacity:0;
  419. stroke-width:2px;
  420. stroke: #ff0100;
  421. }
  422. .vis.timeline .graphGroup5 {
  423. fill: #37d8e6;
  424. fill-opacity:0;
  425. stroke-width:2px;
  426. stroke: #37d8e6;
  427. }
  428. .vis.timeline .graphGroup6 {
  429. fill: #042662;
  430. fill-opacity:0;
  431. stroke-width:2px;
  432. stroke: #042662;
  433. }
  434. .vis.timeline .graphGroup7 {
  435. fill:#00ff26;
  436. fill-opacity:0;
  437. stroke-width:2px;
  438. stroke: #00ff26;
  439. }
  440. .vis.timeline .graphGroup8 {
  441. fill:#ff00ff;
  442. fill-opacity:0;
  443. stroke-width:2px;
  444. stroke: #ff00ff;
  445. }
  446. .vis.timeline .graphGroup9 {
  447. fill: #8f3938;
  448. fill-opacity:0;
  449. stroke-width:2px;
  450. stroke: #8f3938;
  451. }
  452. .vis.timeline .fill {
  453. fill-opacity:0.1;
  454. stroke: none;
  455. }
  456. .vis.timeline .bar {
  457. fill-opacity:0.5;
  458. stroke-width:1px;
  459. }
  460. .vis.timeline .point {
  461. stroke-width:2px;
  462. fill-opacity:1.0;
  463. }
  464. .vis.timeline .legendBackground {
  465. stroke-width:1px;
  466. fill-opacity:0.9;
  467. fill: #ffffff;
  468. stroke: #c2c2c2;
  469. }
  470. .vis.timeline .outline {
  471. stroke-width:1px;
  472. fill-opacity:1;
  473. fill: #ffffff;
  474. stroke: #e5e5e5;
  475. }
  476. .vis.timeline .iconFill {
  477. fill-opacity:0.3;
  478. stroke: none;
  479. }
  480. div.network-manipulationDiv {
  481. border-width: 0;
  482. border-bottom: 1px;
  483. border-style:solid;
  484. border-color: #d6d9d8;
  485. background: #ffffff; /* Old browsers */
  486. background: -moz-linear-gradient(top, #ffffff 0%, #fcfcfc 48%, #fafafa 50%, #fcfcfc 100%); /* FF3.6+ */
  487. 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+ */
  488. background: -webkit-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */
  489. background: -o-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Opera 11.10+ */
  490. background: -ms-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* IE10+ */
  491. background: linear-gradient(to bottom, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* W3C */
  492. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */
  493. position: absolute;
  494. left: 0;
  495. top: 0;
  496. width: 100%;
  497. height: 30px;
  498. }
  499. div.network-manipulation-editMode {
  500. position:absolute;
  501. left: 0;
  502. top: 0;
  503. height: 30px;
  504. margin-top:20px;
  505. }
  506. div.network-manipulation-closeDiv {
  507. position:absolute;
  508. right: 0;
  509. top: 0;
  510. width: 30px;
  511. height: 30px;
  512. background-position: 20px 3px;
  513. background-repeat: no-repeat;
  514. background-image: url("img/network/cross.png");
  515. cursor: pointer;
  516. -webkit-touch-callout: none;
  517. -webkit-user-select: none;
  518. -khtml-user-select: none;
  519. -moz-user-select: none;
  520. -ms-user-select: none;
  521. user-select: none;
  522. }
  523. div.network-manipulation-closeDiv:hover {
  524. opacity: 0.6;
  525. }
  526. span.network-manipulationUI {
  527. font-family: verdana;
  528. font-size: 12px;
  529. -moz-border-radius: 15px;
  530. border-radius: 15px;
  531. display:inline-block;
  532. background-position: 0px 0px;
  533. background-repeat:no-repeat;
  534. height:24px;
  535. margin: -14px 0px 0px 10px;
  536. vertical-align:middle;
  537. cursor: pointer;
  538. padding: 0px 8px 0px 8px;
  539. -webkit-touch-callout: none;
  540. -webkit-user-select: none;
  541. -khtml-user-select: none;
  542. -moz-user-select: none;
  543. -ms-user-select: none;
  544. user-select: none;
  545. }
  546. span.network-manipulationUI:hover {
  547. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.20);
  548. }
  549. span.network-manipulationUI:active {
  550. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.50);
  551. }
  552. span.network-manipulationUI.back {
  553. background-image: url("img/network/backIcon.png");
  554. }
  555. span.network-manipulationUI.none:hover {
  556. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  557. cursor: default;
  558. }
  559. span.network-manipulationUI.none:active {
  560. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  561. }
  562. span.network-manipulationUI.none {
  563. padding: 0;
  564. }
  565. span.network-manipulationUI.notification{
  566. margin: 2px;
  567. font-weight: bold;
  568. }
  569. span.network-manipulationUI.add {
  570. background-image: url("img/network/addNodeIcon.png");
  571. }
  572. span.network-manipulationUI.edit {
  573. background-image: url("img/network/editIcon.png");
  574. }
  575. span.network-manipulationUI.edit.editmode {
  576. background-color: #fcfcfc;
  577. border-style:solid;
  578. border-width:1px;
  579. border-color: #cccccc;
  580. }
  581. span.network-manipulationUI.connect {
  582. background-image: url("img/network/connectIcon.png");
  583. }
  584. span.network-manipulationUI.delete {
  585. background-image: url("img/network/deleteIcon.png");
  586. }
  587. /* top right bottom left */
  588. span.network-manipulationLabel {
  589. margin: 0px 0px 0px 23px;
  590. line-height: 25px;
  591. }
  592. div.network-seperatorLine {
  593. display:inline-block;
  594. width:1px;
  595. height:20px;
  596. background-color: #bdbdbd;
  597. margin: 5px 7px 0px 15px;
  598. }
  599. div.network-navigation_wrapper {
  600. position: absolute;
  601. left: 0;
  602. top: 0;
  603. width: 100%;
  604. height: 100%;
  605. }
  606. div.network-navigation {
  607. width:34px;
  608. height:34px;
  609. -moz-border-radius: 17px;
  610. border-radius: 17px;
  611. position:absolute;
  612. display:inline-block;
  613. background-position: 2px 2px;
  614. background-repeat:no-repeat;
  615. cursor: pointer;
  616. -webkit-touch-callout: none;
  617. -webkit-user-select: none;
  618. -khtml-user-select: none;
  619. -moz-user-select: none;
  620. -ms-user-select: none;
  621. user-select: none;
  622. }
  623. div.network-navigation:hover {
  624. box-shadow: 0px 0px 3px 3px rgba(56, 207, 21, 0.30);
  625. }
  626. div.network-navigation:active {
  627. box-shadow: 0px 0px 1px 3px rgba(56, 207, 21, 0.95);
  628. }
  629. div.network-navigation.up {
  630. background-image: url("img/network/upArrow.png");
  631. bottom:50px;
  632. left:55px;
  633. }
  634. div.network-navigation.down {
  635. background-image: url("img/network/downArrow.png");
  636. bottom:10px;
  637. left:55px;
  638. }
  639. div.network-navigation.left {
  640. background-image: url("img/network/leftArrow.png");
  641. bottom:10px;
  642. left:15px;
  643. }
  644. div.network-navigation.right {
  645. background-image: url("img/network/rightArrow.png");
  646. bottom:10px;
  647. left:95px;
  648. }
  649. div.network-navigation.zoomIn {
  650. background-image: url("img/network/plus.png");
  651. bottom:10px;
  652. right:15px;
  653. }
  654. div.network-navigation.zoomOut {
  655. background-image: url("img/network/minus.png");
  656. bottom:10px;
  657. right:55px;
  658. }
  659. div.network-navigation.zoomExtends {
  660. background-image: url("img/network/zoomExtends.png");
  661. bottom:50px;
  662. right:15px;
  663. }