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.

175 lines
3.1 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.vis-range .vis-item-content {
  58. position: relative;
  59. display: inline-block;
  60. }
  61. .vis-item.vis-background .vis-item-content {
  62. position: absolute;
  63. display: inline-block;
  64. }
  65. .vis-item.vis-line {
  66. padding: 0;
  67. position: absolute;
  68. width: 0;
  69. border-left-width: 1px;
  70. border-left-style: solid;
  71. }
  72. .vis-item .vis-item-content {
  73. white-space: nowrap;
  74. box-sizing: border-box;
  75. padding: 5px;
  76. }
  77. .vis-item .vis-delete, .vis-item .vis-delete-rtl {
  78. position: absolute;
  79. top: 0px;
  80. width: 24px;
  81. height: 24px;
  82. box-sizing: border-box;
  83. padding: 0px 5px;
  84. cursor: pointer;
  85. -webkit-transition: background 0.2s linear;
  86. -moz-transition: background 0.2s linear;
  87. -ms-transition: background 0.2s linear;
  88. -o-transition: background 0.2s linear;
  89. transition: background 0.2s linear;
  90. }
  91. .vis-item .vis-delete {
  92. right: -24px;
  93. }
  94. .vis-item .vis-delete-rtl {
  95. left: -24px;
  96. }
  97. .vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {
  98. content: "\00D7"; /* MULTIPLICATION SIGN */
  99. color: red;
  100. font-family: arial, sans-serif;
  101. font-size: 22px;
  102. font-weight: bold;
  103. -webkit-transition: color 0.2s linear;
  104. -moz-transition: color 0.2s linear;
  105. -ms-transition: color 0.2s linear;
  106. -o-transition: color 0.2s linear;
  107. transition: color 0.2s linear;
  108. }
  109. .vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {
  110. background: red;
  111. }
  112. .vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {
  113. color: white;
  114. }
  115. .vis-item .vis-drag-center {
  116. position: absolute;
  117. width: 100%;
  118. height: 100%;
  119. top: 0;
  120. left: 0px;
  121. cursor: move;
  122. }
  123. .vis-item.vis-range .vis-drag-left {
  124. position: absolute;
  125. width: 24px;
  126. max-width: 20%;
  127. min-width: 2px;
  128. height: 100%;
  129. top: 0;
  130. left: -4px;
  131. cursor: w-resize;
  132. }
  133. .vis-item.vis-range .vis-drag-right {
  134. position: absolute;
  135. width: 24px;
  136. max-width: 20%;
  137. min-width: 2px;
  138. height: 100%;
  139. top: 0;
  140. right: -4px;
  141. cursor: e-resize;
  142. }
  143. .vis-range.vis-item.vis-readonly .vis-drag-left,
  144. .vis-range.vis-item.vis-readonly .vis-drag-right {
  145. cursor: auto;
  146. }