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.

190 lines
3.3 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-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-item.vis-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-editable.vis-selected {
  17. cursor: move;
  18. }
  19. .vis-item.vis-point.vis-selected {
  20. background-color: #FFF785;
  21. }
  22. .vis-item.vis-box {
  23. text-align: center;
  24. border-style: solid;
  25. border-radius: 2px;
  26. }
  27. .vis-item.vis-point {
  28. background: none;
  29. }
  30. .vis-item.vis-dot {
  31. position: absolute;
  32. padding: 0;
  33. border-width: 4px;
  34. border-style: solid;
  35. border-radius: 4px;
  36. }
  37. .vis-item.vis-range {
  38. border-style: solid;
  39. border-radius: 2px;
  40. box-sizing: border-box;
  41. }
  42. .vis-item.vis-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-item .vis-item-overflow {
  50. position: relative;
  51. width: 100%;
  52. height: 100%;
  53. padding: 0;
  54. margin: 0;
  55. overflow: hidden;
  56. }
  57. .vis-item-visible-frame {
  58. white-space: nowrap;
  59. }
  60. .vis-item.vis-range .vis-item-content {
  61. position: relative;
  62. display: inline-block;
  63. }
  64. .vis-item.vis-background .vis-item-content {
  65. position: absolute;
  66. display: inline-block;
  67. }
  68. .vis-item.vis-line {
  69. padding: 0;
  70. position: absolute;
  71. width: 0;
  72. border-left-width: 1px;
  73. border-left-style: solid;
  74. }
  75. .vis-item .vis-item-content {
  76. white-space: nowrap;
  77. box-sizing: border-box;
  78. padding: 5px;
  79. }
  80. .vis-item .vis-onUpdateTime-tooltip {
  81. position: absolute;
  82. background: #4f81bd;
  83. color: white;
  84. width: 200px;
  85. text-align: center;
  86. white-space: nowrap;
  87. padding: 5px;
  88. border-radius: 1px;
  89. }
  90. .vis-item .vis-delete, .vis-item .vis-delete-rtl {
  91. position: absolute;
  92. top: 0px;
  93. width: 24px;
  94. height: 24px;
  95. box-sizing: border-box;
  96. padding: 0px 5px;
  97. cursor: pointer;
  98. -webkit-transition: background 0.2s linear;
  99. -moz-transition: background 0.2s linear;
  100. -ms-transition: background 0.2s linear;
  101. -o-transition: background 0.2s linear;
  102. transition: background 0.2s linear;
  103. }
  104. .vis-item .vis-delete {
  105. right: -24px;
  106. }
  107. .vis-item .vis-delete-rtl {
  108. left: -24px;
  109. }
  110. .vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {
  111. content: "\00D7"; /* MULTIPLICATION SIGN */
  112. color: red;
  113. font-family: arial, sans-serif;
  114. font-size: 22px;
  115. font-weight: bold;
  116. -webkit-transition: color 0.2s linear;
  117. -moz-transition: color 0.2s linear;
  118. -ms-transition: color 0.2s linear;
  119. -o-transition: color 0.2s linear;
  120. transition: color 0.2s linear;
  121. }
  122. .vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {
  123. background: red;
  124. }
  125. .vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {
  126. color: white;
  127. }
  128. .vis-item .vis-drag-center {
  129. position: absolute;
  130. width: 100%;
  131. height: 100%;
  132. top: 0;
  133. left: 0px;
  134. cursor: move;
  135. }
  136. .vis-item.vis-range .vis-drag-left {
  137. position: absolute;
  138. width: 24px;
  139. max-width: 20%;
  140. min-width: 2px;
  141. height: 100%;
  142. top: 0;
  143. left: -4px;
  144. cursor: w-resize;
  145. }
  146. .vis-item.vis-range .vis-drag-right {
  147. position: absolute;
  148. width: 24px;
  149. max-width: 20%;
  150. min-width: 2px;
  151. height: 100%;
  152. top: 0;
  153. right: -4px;
  154. cursor: e-resize;
  155. }
  156. .vis-range.vis-item.vis-readonly .vis-drag-left,
  157. .vis-range.vis-item.vis-readonly .vis-drag-right {
  158. cursor: auto;
  159. }