vis.js is a dynamic, browser-based visualization library

115 lines
1.9 KiB

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