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.

103 lines
1.7 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. .vis.timeline .item {
  2. position: absolute;
  3. color: #1A1A1A;
  4. border-color: #97B0F8;
  5. border-width: 1px;
  6. background-color: #D5DDF6;
  7. display: inline-block;
  8. padding: 5px;
  9. }
  10. .vis.timeline .item.selected {
  11. border-color: #FFC200;
  12. background-color: #FFF785;
  13. /* z-index must be higher than the z-index of custom time bar and current time bar */
  14. z-index: 2;
  15. }
  16. .vis.timeline .editable .item.selected {
  17. cursor: move;
  18. }
  19. .vis.timeline .item.point.selected {
  20. background-color: #FFF785;
  21. }
  22. .vis.timeline .item.box {
  23. text-align: center;
  24. border-style: solid;
  25. border-radius: 2px;
  26. }
  27. .vis.timeline .item.point {
  28. background: none;
  29. }
  30. .vis.timeline .item.dot {
  31. position: absolute;
  32. padding: 0;
  33. border-width: 4px;
  34. border-style: solid;
  35. border-radius: 4px;
  36. }
  37. .vis.timeline .item.range {
  38. border-style: solid;
  39. border-radius: 2px;
  40. box-sizing: border-box;
  41. }
  42. .vis.timeline .item.range .content {
  43. position: relative;
  44. display: inline-block;
  45. }
  46. .vis.timeline .item.range .content {
  47. overflow: hidden;
  48. max-width: 100%;
  49. }
  50. .vis.timeline .item.line {
  51. padding: 0;
  52. position: absolute;
  53. width: 0;
  54. border-left-width: 1px;
  55. border-left-style: solid;
  56. }
  57. .vis.timeline .item .content {
  58. white-space: nowrap;
  59. overflow: hidden;
  60. }
  61. .vis.timeline .item .delete {
  62. background: url('img/timeline/delete.png') no-repeat top center;
  63. position: absolute;
  64. width: 24px;
  65. height: 24px;
  66. top: 0;
  67. right: -24px;
  68. cursor: pointer;
  69. }
  70. .vis.timeline .item.range .drag-left {
  71. position: absolute;
  72. width: 24px;
  73. height: 100%;
  74. top: 0;
  75. left: -4px;
  76. cursor: w-resize;
  77. }
  78. .vis.timeline .item.range .drag-right {
  79. position: absolute;
  80. width: 24px;
  81. height: 100%;
  82. top: 0;
  83. right: -4px;
  84. cursor: e-resize;
  85. }