style.css 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. body,
  2. html {
  3. width: 100%;
  4. height: 100%;
  5. }
  6. .gantt {
  7. position: relative;
  8. box-sizing: border-box;
  9. box-sizing: border-box;
  10. box-sizing: border-box;
  11. width: 95%;
  12. height: 100%;
  13. margin: auto;
  14. border: 1px solid #ddd;
  15. border-radius: 6px;
  16. border-radius: 6px;
  17. border-radius: 6px;
  18. }
  19. .gantt::after {
  20. display: block;
  21. height: 0;
  22. clear: both;
  23. visibility: hidden;
  24. content: '.';
  25. }
  26. .fn-gantt {
  27. width: 100%;
  28. height: 100%;
  29. }
  30. .fn-gantt *,
  31. .fn-gantt *::after,
  32. .fn-gantt *::before {
  33. box-sizing: border-box;
  34. box-sizing: border-box;
  35. box-sizing: border-box;
  36. }
  37. .fn-gantt .fn-content {
  38. position: relative;
  39. width: 100%;
  40. overflow: hidden;
  41. }
  42. .fn-gantt .row {
  43. float: left;
  44. height: 24px;
  45. margin: 0;
  46. line-height: 24px;
  47. }
  48. .fn-gantt .leftPanel {
  49. position: relative;
  50. z-index: 20;
  51. float: left;
  52. width: 400px;
  53. /* height: 655px; */
  54. overflow: hidden;
  55. border-right: 1px solid #ddd;
  56. }
  57. .fn-gantt .leftPanel .fn-label {
  58. display: inline-block;
  59. width: 250px;
  60. overflow: hidden;
  61. color: #484a4d;
  62. text-align: center;
  63. text-overflow: ellipsis;
  64. white-space: nowrap;
  65. }
  66. .desc .fn-label {
  67. width: 90px !important;
  68. }
  69. .fn-gantt .leftPanel .row {
  70. border-bottom: 1px solid #ddd;
  71. }
  72. .fn-gantt .leftPanel .name,
  73. .fn-gantt .leftPanel .desc {
  74. float: left;
  75. width: 93px;
  76. height: 48px;
  77. line-height: 48px;
  78. background-color: #f6f6f6;
  79. }
  80. .fn-gantt .leftPanel .name {
  81. width: 305px;
  82. font-weight: bold;
  83. }
  84. .fn-gantt .leftPanel .fn-wide,
  85. .fn-gantt .leftPanel .fn-wide .fn-label {
  86. width: 100%;
  87. }
  88. .fn-gantt .leftPanel .spacer {
  89. width: 100%;
  90. background-color: #f6f6f6;
  91. }
  92. .spacer div {
  93. display: inline-block;
  94. font-weight: bold;
  95. line-height: 100px;
  96. text-align: center;
  97. }
  98. .spacer .pindex {
  99. width: 50px;
  100. }
  101. .spacer .pname {
  102. width: 255px;
  103. }
  104. .spacer .pstatus {
  105. width: 90px;
  106. }
  107. .fn-gantt .rightPanel {
  108. overflow: hidden;
  109. }
  110. .fn-gantt .dataPanel {
  111. position: relative;
  112. margin-left: 0;
  113. background-image: url(img/grid.png);
  114. background-repeat: repeat;
  115. outline: 1px solid #ddd;
  116. }
  117. .fn-gantt .row.header {
  118. width: 100%;
  119. margin-right: -1px;
  120. }
  121. .fn-gantt .day,
  122. .fn-gantt .date {
  123. width: 24px;
  124. overflow: visible;
  125. font-size: 11px;
  126. line-height: 24px;
  127. color: #484a4d;
  128. text-align: center;
  129. text-align: center;
  130. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  131. border-right: 1px solid #ddd;
  132. border-bottom: 1px solid #ddd;
  133. }
  134. .fn-gantt .sa,
  135. .fn-gantt .sn,
  136. .fn-gantt .wd {
  137. height: 24px;
  138. text-align: center;
  139. }
  140. .fn-gantt .sa,
  141. .fn-gantt .sn {
  142. color: #939496;
  143. text-align: center;
  144. background-color: #f5f5f5;
  145. }
  146. .fn-gantt .wd {
  147. text-align: center;
  148. background-color: #f6f6f6;
  149. }
  150. .fn-gantt .holiday {
  151. height: 24px;
  152. background-color: #ffd263;
  153. }
  154. .fn-gantt .today {
  155. height: 24px;
  156. font-weight: bold;
  157. text-align: center;
  158. background-color: #fff8da;
  159. }
  160. .fn-gantt .rightPanel .month,
  161. .fn-gantt .rightPanel .year {
  162. float: left;
  163. height: 24px;
  164. overflow: hidden;
  165. font-size: 11px;
  166. font-weight: bold;
  167. color: #484a4d;
  168. text-align: center;
  169. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  170. background-color: #f6f6f6;
  171. border-right: 1px solid #ddd;
  172. border-bottom: 1px solid #ddd;
  173. }
  174. .fn-gantt-hint {
  175. position: absolute;
  176. z-index: 11;
  177. display: none;
  178. /* padding: 10px;
  179. background-color: #fff5d4;
  180. border: 5px solid #edc332; */
  181. border-radius: 4px;
  182. border-radius: 4px;
  183. border-radius: 4px;
  184. }
  185. .fn-gantt .bar {
  186. position: absolute;
  187. z-index: 10;
  188. height: 18px;
  189. margin: 0 3px 3px 0;
  190. text-align: center;
  191. background-color: #d0e4fd;
  192. border-radius: 3px;
  193. border-radius: 3px;
  194. border-radius: 3px;
  195. box-shadow: 0 0 1px rgba(0, 0, 0, 0.25) inset;
  196. box-shadow: 0 0 1px rgba(0, 0, 0, 0.25) inset;
  197. box-shadow: 0 0 1px rgba(0, 0, 0, 0.25) inset;
  198. }
  199. .fn-gantt .bar .fn-label {
  200. width: 100%;
  201. overflow: hidden;
  202. font-size: 11px;
  203. font-weight: bold;
  204. line-height: 18px;
  205. color: #414b57 !important;
  206. text-align: center;
  207. text-overflow: ellipsis;
  208. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  209. white-space: nowrap;
  210. }
  211. .fn-gantt .ganttRed {
  212. background-color: #f5b878;
  213. }
  214. .fn-gantt .ganttLimit {
  215. background-color: #ff4848;
  216. }
  217. .fn-gantt .ganttRed .fn-label {
  218. color: #383838 !important;
  219. }
  220. .fn-gantt .ganttGreen {
  221. background-color: #6cf37c;
  222. }
  223. .fn-gantt .ganttGreen .fn-label {
  224. color: #383838 !important;
  225. }
  226. .fn-gantt .ganttOne {
  227. background-color: #6cf37c;
  228. }
  229. .fn-gantt .ganttOne .fn-label {
  230. color: #383838 !important;
  231. }
  232. .fn-gantt .ganttTwo {
  233. background-color: #64c6ff;
  234. }
  235. .fn-gantt .ganttTwo .fn-label {
  236. color: #383838 !important;
  237. }
  238. .fn-gantt .ganttThree {
  239. background-color: #ffa6a6;
  240. }
  241. .fn-gantt .ganttThree .fn-label {
  242. color: #383838 !important;
  243. }
  244. .fn-gantt .ganttOrange {
  245. background-color: #fcd29a;
  246. }
  247. .fn-gantt .ganttOrange .fn-label {
  248. color: #383838 !important;
  249. }
  250. .fn-gantt .bottom {
  251. width: 100%;
  252. clear: both;
  253. background-color: #f6f6f6;
  254. border-top: 1px solid #ddd;
  255. }
  256. .fn-gantt .navigate {
  257. padding: 10px 0 10px 225px;
  258. /* border-top: 1px solid #ddd; */
  259. }
  260. .fn-gantt .navigate .nav-slider {
  261. display: inline-block;
  262. height: 20px;
  263. }
  264. .fn-gantt .navigate .nav-slider-left,
  265. .fn-gantt .navigate .nav-slider-right {
  266. display: inline-block;
  267. height: 20px;
  268. text-align: center;
  269. }
  270. .fn-gantt .navigate .nav-slider-left {
  271. float: left;
  272. }
  273. .fn-gantt .navigate .nav-slider-right {
  274. float: right;
  275. }
  276. .fn-gantt .navigate .nav-slider-content {
  277. display: inline-block;
  278. width: 160px;
  279. height: 20px;
  280. margin: 0 10px;
  281. text-align: left;
  282. }
  283. .fn-gantt .navigate .nav-slider-bar,
  284. .fn-gantt .navigate .nav-slider-button {
  285. position: absolute;
  286. display: block;
  287. }
  288. .fn-gantt .navigate .nav-slider-bar {
  289. width: 155px;
  290. height: 6px;
  291. margin: 8px 0 0 0;
  292. background-color: #838688;
  293. border-radius: 3px;
  294. border-radius: 3px;
  295. border-radius: 3px;
  296. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
  297. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
  298. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) inset;
  299. }
  300. .fn-gantt .navigate .nav-slider-button {
  301. top: 0;
  302. left: 0;
  303. width: 17px;
  304. height: 60px;
  305. margin: -26px 0 0 0;
  306. cursor: pointer;
  307. background: url(img/slider_handle.png) center center no-repeat;
  308. }
  309. .fn-gantt .navigate .page-number {
  310. display: inline-block;
  311. height: 20px;
  312. font-size: 10px;
  313. }
  314. .fn-gantt .navigate .page-number span {
  315. display: inline-block;
  316. height: 20px;
  317. margin: 0 6px;
  318. line-height: 20px;
  319. color: #666;
  320. }
  321. .fn-gantt .navigate a:link,
  322. .fn-gantt .navigate a:visited,
  323. .fn-gantt .navigate a:active {
  324. text-decoration: none;
  325. }
  326. .fn-gantt .nav-link {
  327. box-sizing: border-box;
  328. box-sizing: border-box;
  329. box-sizing: border-box;
  330. display: inline-block;
  331. width: 20px;
  332. height: 20px;
  333. margin: 0 3px 0 0;
  334. font-size: 0;
  335. vertical-align: top;
  336. cursor: pointer;
  337. background: #595959 url(img/icon_sprite.png) !important;
  338. border: 1px solid #454546;
  339. border-radius: 2px;
  340. border-radius: 2px;
  341. border-radius: 2px;
  342. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 1px rgba(0, 0, 0, 0.2);
  343. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 1px rgba(0, 0, 0, 0.2);
  344. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 1px rgba(0, 0, 0, 0.2);
  345. }
  346. .fn-gantt .nav-link:active {
  347. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset, 0 1px 0 #fff;
  348. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset, 0 1px 0 #fff;
  349. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset, 0 1px 0 #fff;
  350. }
  351. .fn-gantt .navigate .nav-page-back {
  352. margin: 0;
  353. background-position: 1px 0 !important;
  354. }
  355. .fn-gantt .navigate .nav-page-next {
  356. margin-right: 15px;
  357. background-position: 1px -16px !important;
  358. }
  359. .fn-gantt .navigate .nav-slider .nav-page-next {
  360. margin-right: 5px;
  361. }
  362. .fn-gantt .navigate .nav-begin {
  363. background-position: 1px -112px !important;
  364. }
  365. .fn-gantt .navigate .nav-prev-week {
  366. background-position: 1px -128px !important;
  367. }
  368. .fn-gantt .navigate .nav-prev-day {
  369. background-position: 1px -48px !important;
  370. }
  371. .fn-gantt .navigate .nav-next-day {
  372. background-position: 1px -64px !important;
  373. }
  374. .fn-gantt .navigate .nav-next-week {
  375. background-position: 1px -160px !important;
  376. }
  377. .fn-gantt .navigate .nav-end {
  378. background-position: 1px -144px !important;
  379. }
  380. .fn-gantt .navigate .nav-zoomOut {
  381. background-position: 1px -96px !important;
  382. }
  383. .fn-gantt .navigate .nav-zoomIn {
  384. margin-left: 15px;
  385. background-position: 1px -80px !important;
  386. }
  387. .fn-gantt .navigate .nav-now {
  388. background-position: 1px -32px !important;
  389. }
  390. .fn-gantt .navigate .nav-slider .nav-now {
  391. margin-right: 5px;
  392. }
  393. .fn-gantt-loader {
  394. position: absolute;
  395. top: 0;
  396. left: 0;
  397. z-index: 30;
  398. width: 100%;
  399. height: 100%;
  400. cursor: wait;
  401. background: rgba(0, 0, 0, 0.75);
  402. filter: progid:dximagetransform.microsoft.gradient(startColorstr='#bf000000',endColorstr='#bf000000',GradientType=0);
  403. }
  404. .fn-gantt-loader-spinner span {
  405. position: absolute;
  406. top: 0;
  407. right: 0;
  408. bottom: 0;
  409. left: 0;
  410. width: 100%;
  411. height: 1em;
  412. margin: auto;
  413. font-size: 1em;
  414. font-weight: bold;
  415. line-height: 1em;
  416. color: #fff;
  417. text-align: center;
  418. }
  419. .row::after {
  420. clear: both;
  421. }
  422. /* 新增加样式 */
  423. .indexspan {
  424. display: inline-block;
  425. width: 50px;
  426. overflow: hidden;
  427. line-height: 48px;
  428. color: #484a4d;
  429. text-align: center;
  430. }
  431. .nav-zoomIn,
  432. .nav-zoomOut,
  433. .nav-now {
  434. display: none !important;
  435. }
  436. .plan-hint-div {
  437. padding: 5px;
  438. background: #facd91;
  439. border: 2px solid #f6ac4a;
  440. border-radius: 5px;
  441. }
  442. .true-hint-div {
  443. padding: 5px;
  444. background: #6cf37c;
  445. border: 2px solid #6ae94f;
  446. border-radius: 5px;
  447. }
  448. .two-hint-div {
  449. padding: 5px;
  450. background: #64c6ff;
  451. border: 2px solid #64c6ff;
  452. border-radius: 5px;
  453. }
  454. .three-hint-div {
  455. padding: 5px;
  456. background: #ffa6a6;
  457. border: 2px solid #ffa6a6;
  458. border-radius: 5px;
  459. }
  460. .main-div-custom {
  461. height: calc(100% - 50px);
  462. /* overflow: auto; */
  463. }