gantt.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /* Gantt View Styles */
  2. .gantt-view {
  3. width: 100%;
  4. height: auto;
  5. overflow: visible;
  6. background-color: #fff;
  7. }
  8. .gantt-view.swimlane {
  9. background-color: #fff;
  10. padding: 10px;
  11. }
  12. .gantt-container {
  13. overflow-x: auto;
  14. overflow-y: visible;
  15. background-color: #fff;
  16. display: block;
  17. width: 100%;
  18. }
  19. .gantt-container table,
  20. .gantt-table {
  21. border-collapse: collapse;
  22. width: 100%;
  23. min-width: 800px;
  24. border: 2px solid #666;
  25. font-family: sans-serif;
  26. font-size: 13px;
  27. background-color: #fff;
  28. }
  29. .gantt-container thead {
  30. background-color: #e8e8e8;
  31. border-bottom: 2px solid #666;
  32. font-weight: bold;
  33. position: sticky;
  34. top: 0;
  35. z-index: 10;
  36. }
  37. .gantt-container thead th,
  38. .gantt-container thead tr > td:first-child {
  39. border-right: 2px solid #666;
  40. padding: 4px; /* half of 8px */
  41. width: 100px; /* half of 200px */
  42. text-align: left;
  43. font-weight: bold;
  44. background-color: #e8e8e8;
  45. min-width: 100px; /* half of 200px */
  46. }
  47. .gantt-container thead td {
  48. border-right: 1px solid #999;
  49. padding: 2px 1px; /* half */
  50. text-align: center;
  51. background-color: #f5f5f5;
  52. font-size: 11px;
  53. min-width: 15px; /* half of 30px */
  54. font-weight: bold;
  55. height: auto;
  56. line-height: 1.2;
  57. white-space: normal;
  58. word-break: break-word;
  59. }
  60. .gantt-container tbody tr {
  61. border-bottom: 1px solid #999;
  62. height: 32px;
  63. }
  64. .gantt-container tbody tr:hover {
  65. background-color: #f9f9f9;
  66. }
  67. .gantt-container tbody tr:hover td {
  68. background-color: #f9f9f9 !important;
  69. }
  70. .gantt-container tbody td {
  71. border-right: 1px solid #ccc;
  72. padding: 1px; /* half */
  73. text-align: center;
  74. min-width: 15px; /* half of 30px */
  75. height: 32px;
  76. vertical-align: middle;
  77. line-height: 28px;
  78. background-color: #ffffff;
  79. font-size: 18px;
  80. font-weight: bold;
  81. }
  82. .gantt-container tbody td:nth-child(even) {
  83. background-color: #fafafa;
  84. }
  85. .gantt-container tbody td:first-child {
  86. border-right: 2px solid #666;
  87. padding: 4px; /* half of 8px */
  88. font-weight: 500;
  89. cursor: pointer;
  90. background-color: #fafafa !important;
  91. text-align: left;
  92. width: 100px; /* half of 200px */
  93. min-width: 100px; /* half of 200px */
  94. white-space: nowrap;
  95. overflow: hidden;
  96. text-overflow: ellipsis;
  97. height: auto;
  98. line-height: normal;
  99. }
  100. .gantt-container tbody td:first-child:hover {
  101. background-color: #f0f0f0 !important;
  102. text-decoration: underline;
  103. }
  104. .js-gantt-task-cell {
  105. cursor: pointer;
  106. }
  107. .js-gantt-date-icon {
  108. cursor: pointer;
  109. }
  110. .gantt-container .ganttview-weekend {
  111. background-color: #efefef;
  112. }
  113. .gantt-container .ganttview-today {
  114. background-color: #fcf8e3;
  115. border-right: 2px solid #ffb347;
  116. }
  117. /* Task bar styling - VERY VISIBLE */
  118. .gantt-container tbody td.ganttview-block {
  119. background-color: #4CAF50 !important;
  120. color: #fff !important;
  121. font-size: 18px !important;
  122. font-weight: bold !important;
  123. padding: 2px !important;
  124. border-radius: 2px;
  125. }
  126. /* Responsive adjustments */
  127. @media (max-width: 768px) {
  128. .gantt-container table {
  129. font-size: 11px;
  130. }
  131. .gantt-container thead td {
  132. min-width: 20px;
  133. padding: 2px;
  134. }
  135. .gantt-container tbody td {
  136. min-width: 20px;
  137. padding: 1px;
  138. height: 20px;
  139. }
  140. .gantt-container tbody td:first-child {
  141. width: 100px;
  142. font-size: 12px;
  143. }
  144. }
  145. /* Print styles */
  146. @media print {
  147. .gantt-container {
  148. overflow: visible;
  149. }
  150. .gantt-container table {
  151. page-break-inside: avoid;
  152. }
  153. }