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: 999;
  14. }
  15. .vis.timeline .editable .item.selected {
  16. cursor: move;
  17. }
  18. .vis.timeline .item.point.selected {
  19. background-color: #FFF785;
  20. }
  21. .vis.timeline .item.box {
  22. text-align: center;
  23. border-style: solid;
  24. border-radius: 2px;
  25. }
  26. .vis.timeline .item.point {
  27. background: none;
  28. }
  29. .vis.timeline .item.dot {
  30. position: absolute;
  31. padding: 0;
  32. border-width: 4px;
  33. border-style: solid;
  34. border-radius: 4px;
  35. }
  36. .vis.timeline .item.range {
  37. border-style: solid;
  38. border-radius: 2px;
  39. box-sizing: border-box;
  40. }
  41. .vis.timeline .item.range .content {
  42. position: relative;
  43. display: inline-block;
  44. }
  45. .vis.timeline .item.range .content {
  46. overflow: hidden;
  47. max-width: 100%;
  48. }
  49. .vis.timeline .item.line {
  50. padding: 0;
  51. position: absolute;
  52. width: 0;
  53. border-left-width: 1px;
  54. border-left-style: solid;
  55. }
  56. .vis.timeline .item .content {
  57. white-space: nowrap;
  58. overflow: hidden;
  59. }
  60. .vis.timeline .item .delete {
  61. background: url('img/timeline/delete.png') no-repeat top center;
  62. position: absolute;
  63. width: 24px;
  64. height: 24px;
  65. top: 0;
  66. right: -24px;
  67. cursor: pointer;
  68. }
  69. .vis.timeline .item.range .drag-left {
  70. position: absolute;
  71. width: 24px;
  72. height: 100%;
  73. top: 0;
  74. left: -4px;
  75. cursor: w-resize;
  76. z-index: 10000;
  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. z-index: 10001; /* a little higher z-index than .drag-left */
  86. }