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.

gantt.css 13 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. body{
  2. /*overflow: hidden;*/
  3. }
  4. /* -------------------------------------- GRIDIFY -----------------------------------*/
  5. .gdfTable {
  6. table-layout: fixed;
  7. border-collapse: separate;
  8. border-spacing: 0;
  9. background-color: #fff;
  10. }
  11. .gdfTable td, .gdfTable th {
  12. vertical-align: middle;
  13. overflow: hidden;
  14. text-overflow: clip;
  15. white-space: nowrap;
  16. font-size: 14px
  17. }
  18. .gdfCell {
  19. overflow: hidden;
  20. padding:1px 2px;/*2017.10.4????4px 2px??1px 2px???????*/
  21. border-bottom: 1px solid #eee;
  22. border-right: 1px solid #eee;
  23. font-family: arial, helvetica, sans-serif;
  24. }
  25. .gdfCell.noClip{
  26. overflow: visible;
  27. }
  28. .gdfColHeader {
  29. min-width: 5px;
  30. height: 30px;
  31. /*background-color: #fff;*/
  32. border-bottom:2px solid #bbb;
  33. border-right: 1px solid #bbb;
  34. }
  35. .gdfColHeader:last-of-type {
  36. border-right: none;
  37. }
  38. .gdfCell:last-of-type {
  39. border-right: none;
  40. }
  41. .gdfCellInput {
  42. border: 0 none;
  43. font-size: 12px;
  44. height: 20px;
  45. margin: 0;
  46. padding: 0;
  47. width: 100%;
  48. background-color: #d4fbe8;
  49. }
  50. .gdfCellWrap {
  51. border: 0 none;
  52. font-size: 12px;
  53. height: 17px;
  54. margin: 0;
  55. padding: 0;
  56. width: 100%;
  57. overflow: hidden;
  58. background-color: #ffcccc;
  59. }
  60. .gdfHResizing {
  61. cursor: w-resize;
  62. }
  63. /* -------------------------------------- SPLITTER -----------------------------------*/
  64. .splitterContainer {
  65. width: 100%;
  66. height: 100%;
  67. }
  68. .splitBox1{
  69. overflow-x: scroll;
  70. overflow-y: hidden;
  71. }
  72. .splitBox2 {
  73. overflow-x: scroll;
  74. overflow-y: auto;
  75. }
  76. .splitElement {
  77. outline-style: none;
  78. position: absolute;
  79. height: 100%;
  80. background-color: #f3f3f3;
  81. }
  82. .vSplitBar {
  83. position: relative;
  84. width: 5px;
  85. /*background-color: rgba(170, 170, 170, .2);*/
  86. cursor: ew-resize;
  87. text-align: center;
  88. color: white;
  89. box-shadow: 0 0 3px rgba(0, 0, 0, .4);
  90. background: rgba(170, 170, 170, .2) url("../res/ganttSplitterGrip.png") no-repeat center center;
  91. z-index: 5;
  92. }
  93. .unselectable .vSplitBar, .vSplitBar:hover {
  94. background-color: rgba(170, 170, 170, .5);
  95. box-shadow: 0 0 5px rgba(0, 0, 0, .5);
  96. }
  97. .vSplitBar .toLeft,.vSplitBar .toRight,.vSplitBar .toCenter{
  98. font-family: icons,TeamworkRegular;
  99. cursor: pointer;
  100. position: absolute;
  101. top: 0;
  102. margin-top: 0;
  103. /*background-color: rgba(170, 170, 170, .2);*/
  104. /*background-color: rgba(0, 126, 221, 0.3);*/
  105. background-color: rgba(47, 170, 201, 0.3);
  106. z-index: 2;
  107. font-size: 10px;
  108. width: 15px;
  109. /*box-shadow: 0 0 1px rgba(0, 0, 0, .5);*/
  110. }
  111. .unselectable .vSplitBar .toLeft,.unselectable .vSplitBar .toCenter,.unselectable .vSplitBar .toRight, .vSplitBar:hover .toLeft, .vSplitBar:hover .toRight, .vSplitBar:hover .toCenter{
  112. /*background-color: rgba(170, 170, 170, 1);*/
  113. /*background-color: rgba(0, 126, 221, 1);*/
  114. background-color: rgba(47, 170, 201, 1);
  115. box-shadow: 0 0 1px rgba(0, 0, 0, .4);
  116. }
  117. .vSplitBar .toLeft {
  118. left: -19px;
  119. text-align: left;
  120. }
  121. .vSplitBar .toCenter{
  122. left:-4px;
  123. text-align: center;
  124. }
  125. .vSplitBar .toRight{
  126. left:10px;
  127. text-align: right;
  128. }
  129. .ganttFixHead{
  130. position: absolute;
  131. z-index: 2;
  132. top:0;
  133. background: #EEEEEE;
  134. height: 42px;
  135. }
  136. /* -------------------------------------- GANTT -----------------------------------*/
  137. .ganttTable{
  138. table-layout:fixed;
  139. background-color: #ffffff;
  140. }
  141. .ganttTable td,.ganttTable th{
  142. overflow: hidden;
  143. text-overflow: clip;
  144. white-space: nowrap;
  145. }
  146. .ganttHead1,.ganttHead2{
  147. height:20px;
  148. }
  149. .ganttHead1 th{
  150. border-left:1px solid #b0b0b0;
  151. padding: 0;
  152. margin: 0;
  153. /*border-right: 1px solid #bbb;*/
  154. border-bottom:1px solid #bbb;
  155. background: #EEEEEE;
  156. white-space: pre-line;
  157. word-break: break-all;
  158. }
  159. .ganttHead1 th,
  160. .ganttHead2 th{
  161. white-space: nowrap;
  162. overflow: hidden;
  163. }
  164. .ganttHead2 th{
  165. padding: 0;
  166. margin: 0;
  167. border-left:1px solid #b0b0b0;
  168. /*border-right: 1px solid #bbb;*/
  169. border-bottom:2px solid #bbb;
  170. background: #EEEEEE;
  171. }
  172. .ganttHead1 th.headSmall,.ganttHead2 th.headSmall{
  173. font-size: 10px;
  174. }
  175. .ganttToday{
  176. position:absolute;
  177. top:0;
  178. width:1px;
  179. height:100%;
  180. border-left:2px dotted #13AFA5;
  181. }
  182. .ganttTitle img {
  183. max-width: 250px;
  184. }
  185. .ganttButtonBar{
  186. position:relative;
  187. z-index: 2;
  188. /*background-color: #fff;*/
  189. border-bottom: 1px solid #959595;
  190. padding: 5px 0 5px 10px;
  191. }
  192. .dataTable .ganttButtonBar{
  193. border-bottom: none;
  194. }
  195. .ganttButtonBar .buttons {
  196. position: relative;
  197. display:inline-block;
  198. width: 100%;
  199. margin-top: 0;
  200. height: 45px;
  201. }
  202. .dataTable .ganttButtonBar .buttons {
  203. display:inline-block;
  204. width: 100%;
  205. }
  206. .ganttButtonBar .buttons button{
  207. vertical-align: middle;
  208. margin:0;
  209. outline: none;
  210. }
  211. .ganttButtonBar .buttons .button.textual.icon {
  212. height: 45px;
  213. }
  214. .button span.teamworkIcon {
  215. text-indent: -10px;
  216. }
  217. .button.textual span.teamworkIcon {
  218. font-size: 140%
  219. }
  220. #saveGanttButton {
  221. margin-left:20px;
  222. padding: 5px 12px;
  223. margin-bottom: 0;
  224. vertical-align: middle;
  225. }
  226. .ganttButtonSeparator{
  227. border-left:1px solid #dadada;
  228. margin:0 10px;
  229. font-size: 130%;
  230. vertical-align: middle;
  231. }
  232. .ganttLines{
  233. position:absolute;
  234. width:100%;
  235. height:1px;
  236. border-top:1px solid #eee;
  237. z-index:1;
  238. }
  239. .ganttLinks{
  240. z-index:10;
  241. }
  242. .ganttTable td.end{
  243. border-right: 2px dotted #ddd;
  244. }
  245. .ganttHead2 th.holyH{
  246. background-color: rgba(236, 195, 176, 0.40);
  247. }
  248. .ganttBodyCell.holy{
  249. background-color: rgba(255, 245, 230, 0.51);
  250. }
  251. /* -------------------------------------- TASK -----------------------------------*/
  252. .taskBoxDiv{
  253. position:absolute;
  254. height:25px;
  255. margin-top:3px;
  256. z-index:100;
  257. }
  258. .taskBoxDiv .layout {
  259. height:100%;
  260. color:#DB2727;
  261. border-radius:2px;
  262. background: #eee; /* Old browsers */
  263. border:1px solid #bbb;
  264. }
  265. .taskBoxDiv .taskStatus {
  266. left:5px;
  267. top:10px;
  268. position:absolute;
  269. width:10px;
  270. height:10px;
  271. }
  272. .taskBoxDiv .layout .milestone{
  273. top:0;
  274. position:absolute;
  275. width:18px;
  276. background: url(../res/milestone.png) no-repeat;
  277. height:18px;
  278. display:none;
  279. }
  280. .taskBoxDiv .layout .milestone.end{
  281. right:0;
  282. }
  283. .taskBoxDiv .layout .milestone.active{
  284. display:block;
  285. }
  286. .taskBoxDiv.hasChild .layout{
  287. border-top:2px solid black;
  288. }
  289. .taskBoxDiv .taskProgress{
  290. height:5px;
  291. position:absolute;
  292. }
  293. .taskBoxDiv .layout.extDep{
  294. background-image:url(../res/hasExternalDeps.png);
  295. }
  296. .taskLabel{
  297. position:absolute;
  298. height:28px;
  299. color:black;
  300. text-align:right;
  301. padding-right:5px;
  302. overflow:hidden;
  303. left:-200px;
  304. width:195px;
  305. white-space:nowrap;
  306. }
  307. .taskDepLine {
  308. border: 1px solid #9999ff;
  309. overflow: hidden;
  310. position: absolute;
  311. }
  312. .taskEditRow,.emptyRow {
  313. height:30px;
  314. }
  315. .taskEditRow input, .columnWidthTest{
  316. border: 0 none;
  317. font-size: 14px;
  318. height: 20px;
  319. margin: 0;
  320. padding:0;
  321. outline: 0;
  322. width: 100%;
  323. border-radius: 0;
  324. vertical-align: text-bottom;
  325. }
  326. .taskEditRow input[type=checkbox]{
  327. width:15px;
  328. }
  329. .columnWidthTest{
  330. width: auto;
  331. }
  332. .taskEditRow input:focus{
  333. font-weight: bold;
  334. }
  335. .taskEditRow input{
  336. background-color: transparent;
  337. }
  338. .taskEditRow.rowSelected td{
  339. background-color:rgb(234, 248, 255);
  340. }
  341. .isGanttList .taskEditRow:nth-child(odd), .assigEditRow:nth-child(odd){
  342. background-color: #ffffff;
  343. }
  344. .isGanttList .taskEditRow:nth-child(even), .assigEditRow:nth-child(even){
  345. background-color: #ffffff;
  346. }
  347. input[readonly]{
  348. color: #c0c0c0;
  349. }
  350. .taskStatusBox{
  351. position:absolute;
  352. /*width:100px;*/
  353. height:26px;
  354. border:1px solid #a0a0a0;
  355. background-color:#fff;
  356. margin-top:-21px;
  357. margin-left:-2px;
  358. padding: 4px;
  359. z-index: 100;
  360. }
  361. .taskStatus{
  362. width:15px;
  363. height:15px;
  364. display:inline-block;
  365. text-indent: 0;
  366. position:relative;
  367. box-shadow: none;
  368. border-radius: 50%;
  369. border:0;
  370. cursor: pointer;
  371. }
  372. .taskStatus[status=STATUS_ACTIVE]{
  373. background-color: #3BBF67;
  374. color: #fff;
  375. }
  376. .taskStatus[status=STATUS_DONE]{
  377. background-color: #6EBEF4;
  378. color:#000;
  379. }
  380. .taskStatus[status=STATUS_FAILED]{
  381. background-color: #763A96;
  382. color: #fff;
  383. }
  384. .taskStatus[status=STATUS_SUSPENDED]{
  385. background-color: #F9C154;
  386. color:#000;
  387. }
  388. .taskStatus[status=STATUS_UNDEFINED]{
  389. background-color: #dededf;
  390. color:#000;
  391. }
  392. .taskStatus.selected{
  393. border:#666 2px solid;
  394. }
  395. select.taskStatus{
  396. width: auto;
  397. height: auto;
  398. border-radius: 2px;
  399. }
  400. .assigsTableWrapper{
  401. position: relative;
  402. height: 150px;
  403. overflow: auto;
  404. margin-top: -20px;
  405. }
  406. .unselectable {
  407. -webkit-user-select: none;
  408. -khtml-user-select: none;
  409. -moz-user-select: none;
  410. -o-user-select: none;
  411. user-select: none;
  412. }
  413. .exp-controller{
  414. display:inline-block;
  415. width:16px;
  416. height:16px;
  417. position: relative;
  418. top: 2px;
  419. margin-left: -18px;
  420. }
  421. .isParent .exp-controller{
  422. background-image: url(../res/toggle_collapse.png);
  423. }
  424. .isParent.collapsed .exp-controller{
  425. cursor: pointer;
  426. background-image: url(../res/toggle-expand.png);
  427. }
  428. .ui-resizable-helper { border: 1px dotted #00F; }
  429. .ui-resizable-e, .ui-resizable-w {width: 5px;}
  430. .ui-draggable{
  431. cursor:move;
  432. }
  433. /*--------------------------------------------------- SVG --------------------------------------------------*/
  434. .ganttSVGBox{
  435. position: absolute;
  436. top:0;
  437. left: 0;
  438. height: 100%;
  439. background-color: transparent;
  440. width: 100%;
  441. }
  442. .taskBoxSVG{
  443. overflow: visible;
  444. }
  445. .taskBoxSVG .taskLayout{
  446. stroke-width:0;
  447. stroke:#999;
  448. }
  449. .taskLinkPathSVG{
  450. stroke: rgba(47, 151, 198, 1);
  451. /*stroke:#9999ff;*/
  452. stroke-width:2.5px;
  453. fill:none;
  454. cursor:pointer;
  455. }
  456. .ganttLinesSVG{
  457. fill:transparent;
  458. stroke-width:1;
  459. stroke:#eee;
  460. }
  461. .isGanttList .ganttLinesSVG:nth-child(even){
  462. fill:transparent;
  463. stroke-width:1;
  464. stroke:#fff;
  465. }
  466. .isGanttList .ganttLinesSVG:nth-child(odd){
  467. fill:transparent;
  468. stroke-width:1;
  469. stroke:#eee;
  470. }
  471. .ganttLinesSVG.rowSelected{
  472. fill: rgb(234, 248, 255) !important;
  473. /*fill: rgba(255, 255, 153, 0.50) !important;*/
  474. }
  475. .ganttTodaySVG{
  476. stroke-width:2px;
  477. stroke:#e06671;
  478. stroke-linecap:"round";
  479. stroke-dasharray:2,2;
  480. }
  481. .taskStatusSVG[status=STATUS_ACTIVE]{
  482. fill: #3BBF67;
  483. }
  484. .taskStatusSVG[status=STATUS_DONE]{
  485. fill: #6EBEF4;
  486. }
  487. .taskStatusSVG[status=STATUS_FAILED]{
  488. fill: #763A96;
  489. }
  490. .taskStatusSVG[status=STATUS_SUSPENDED]{
  491. fill: #f9c154;
  492. }
  493. .taskStatusSVG[status=STATUS_UNDEFINED]{
  494. fill: #dededf;
  495. }
  496. .taskStatusSVG[status=STATUS_UNDEFINED] .taskLayout{
  497. stroke: #ccc;
  498. stroke-width:1;
  499. }
  500. .taskStatusSVG[status=STATUS_DONE] .textPerc,
  501. .taskStatusSVG[status=STATUS_ACTIVE] .textPerc,
  502. .taskStatusSVG[status=STATUS_FAILED] .textPerc{
  503. fill: #fff;
  504. }
  505. .deSVG.deSVGdrag {
  506. cursor: move;
  507. }
  508. .deSVG.deSVGhand {
  509. cursor: ew-resize;
  510. }
  511. .linkHandleSVG{
  512. display:none;
  513. stroke:transparent;
  514. stroke-width:5;
  515. fill: rgba(47, 151, 198, 0.7);
  516. cursor: pointer;
  517. }
  518. .linkLineSVG{
  519. stroke-width:5px;
  520. stroke: rgba(47, 151, 198, 0.7);
  521. stroke-linecap:"round";
  522. opacity: .5;
  523. }
  524. .linkOnProgress .deSVG.taskBoxSVG {
  525. cursor:cell;
  526. }
  527. .taskBoxSVG.linkOver .taskLayout{
  528. stroke-width:1px;
  529. stroke:rgba(47, 151, 198, 0.7);
  530. opacity: 1;
  531. }
  532. .taskLabelSVG {
  533. stroke: none;
  534. fill:#999;
  535. font-size: 12px;
  536. }
  537. .critical .taskLinkPathSVG{
  538. stroke:red;
  539. }
  540. .taskBoxSVG.critical .taskLayout{
  541. stroke:red;
  542. }
  543. .focused .taskLinkPathSVG{
  544. stroke-width:5px;
  545. stroke: rgba(47, 151, 198, 0.7);
  546. }
  547. .taskBoxSVG.focused .taskLayout{
  548. stroke-width:3px;
  549. stroke: rgba(47, 151, 198, 0.7);
  550. }
  551. .taskBoxSVG.critical .taskLayout{
  552. stroke-width:3px;
  553. stroke: rgba(255, 0, 0, 0.7);
  554. }
  555. /*--------------------------------------------------- RESOURCE ADD --------------------------------------------------*/
  556. .ganttAddResource{
  557. position: absolute;
  558. width: 660px;
  559. height: 300px;
  560. border: 1px solid red;
  561. background-color: white;
  562. box-shadow: 0 0 5px rgba(0,0,0,0.3);
  563. top:120px;
  564. left:70px;
  565. z-index: 200;
  566. padding: 10px;
  567. }
  568. .ganttAddResource tr.isCompany{
  569. display:none;
  570. }
  571. .ganttAddResource.isCompany tr.isCompany{
  572. display:table-row;
  573. }
  574. .ganttAddResource.isCompany tr.isPerson{
  575. display:none;
  576. }
  577. .ganttAddResourceBG {
  578. position: absolute;
  579. width: 100%;
  580. height: 100%;
  581. top: 0;
  582. left: 0;
  583. background-color: rgba(0, 0, 0, .3);
  584. z-index: 200;
  585. }
  586. /*---------------------------------#LOG_CHANGES_CONTAINER --------------------------------------------*/
  587. #LOG_CHANGES_CONTAINER{
  588. display: none;
  589. width: 300px;
  590. top:-130px;
  591. margin-left: -35px
  592. }
  593. .userProfile {
  594. font-size: 16px;
  595. vertical-align: middle;
  596. text-align: right;
  597. margin: 0 5px 0 0;
  598. padding: 5px;
  599. float: right;
  600. position: relative;
  601. z-index: 50;
  602. line-height: 40px;
  603. vertical-align: middle;
  604. position: absolute;
  605. right: 0;
  606. }
  607. .userLine {
  608. max-width: 150px;
  609. display: inline-block;
  610. text-overflow: ellipsis;
  611. overflow: hidden;
  612. white-space: nowrap;
  613. margin: 0;padding: 0;
  614. vertical-align: middle;
  615. }
  616. .avatar {
  617. vertical-align: middle;
  618. padding: 1px;
  619. width: 27px;
  620. height: 27px;
  621. border: 1px solid #dedede
  622. }
  623. /*--------------------------------------------------- Media queries --------------------------------------------------*/
  624. /* Large screens */
  625. @media only screen and (max-width : 1260px) {
  626. .ganttButtonBar .button span.teamworkIcon {
  627. font-size: 130%;
  628. }
  629. }
  630. @media only screen and (max-width : 1155px) {
  631. .ganttButtonBar .button span.teamworkIcon {
  632. font-size: 130%;
  633. }
  634. .button {
  635. font-size: 100%;
  636. padding: 3px 9px 6px;
  637. margin-right: 5px;
  638. margin-bottom: 5px
  639. }
  640. .userLine {
  641. display: none;
  642. }
  643. }
  644. /* Ipad */
  645. @media only screen and (max-width: 989px) and (min-width: 768px){
  646. .ganttButtonSeparator {
  647. margin-left: 2px;
  648. padding-right: 6px;
  649. font-size: 100%;
  650. }
  651. }
  652. /* Mobile TODO */
  653. @media only screen and (max-width: 767px) {
  654. .button {
  655. font-size: 50%;
  656. }
  657. }