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.

119 lines
2.0 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.background {
  43. overflow: hidden;
  44. border: none;
  45. background-color: rgba(213, 221, 246, 0.4);
  46. box-sizing: border-box;
  47. padding: 0;
  48. margin: 0;
  49. top: 0;
  50. bottom: 0;
  51. }
  52. .vis.timeline .item.range .content {
  53. position: relative;
  54. display: inline-block;
  55. overflow: hidden;
  56. max-width: 100%;
  57. }
  58. .vis.timeline .item.background .content {
  59. position: absolute;
  60. display: inline-block;
  61. overflow: hidden;
  62. max-width: 100%;
  63. margin: 5px;
  64. }
  65. .vis.timeline .item.line {
  66. padding: 0;
  67. position: absolute;
  68. width: 0;
  69. border-left-width: 1px;
  70. border-left-style: solid;
  71. }
  72. .vis.timeline .item .content {
  73. white-space: nowrap;
  74. overflow: hidden;
  75. }
  76. .vis.timeline .item .delete {
  77. background: url('img/timeline/delete.png') no-repeat top center;
  78. position: absolute;
  79. width: 24px;
  80. height: 24px;
  81. top: 0;
  82. right: -24px;
  83. cursor: pointer;
  84. }
  85. .vis.timeline .item.range .drag-left {
  86. position: absolute;
  87. width: 24px;
  88. height: 100%;
  89. top: 0;
  90. left: -4px;
  91. cursor: w-resize;
  92. }
  93. .vis.timeline .item.range .drag-right {
  94. position: absolute;
  95. width: 24px;
  96. height: 100%;
  97. top: 0;
  98. right: -4px;
  99. cursor: e-resize;
  100. }