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.

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