您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

549 行
11KB

  1. /* Kanban board theme aligned with public/css/site.css */
  2. html,
  3. body.kanban-page {
  4. height: 100%;
  5. }
  6. body.kanban-page {
  7. margin: 0;
  8. overflow: hidden;
  9. background:
  10. radial-gradient(75rem 35rem at -12% -18%, #dae8ff 0%, transparent 44%),
  11. radial-gradient(68rem 32rem at 115% -16%, #d8f3ff 0%, transparent 40%),
  12. linear-gradient(180deg, #eef4ff 0%, #f4f8ff 58%, #f3f7ff 100%);
  13. }
  14. /* Top bar */
  15. body.kanban-page .navbar {
  16. position: sticky;
  17. top: 0;
  18. z-index: 1000;
  19. border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  20. backdrop-filter: blur(9px);
  21. background: linear-gradient(120deg, #102241 0%, #173a72 56%, #1c4c90 100%);
  22. box-shadow: 0 8px 24px rgba(8, 20, 48, 0.26);
  23. }
  24. body.kanban-page .navbar-brand {
  25. color: #f4f8ff !important;
  26. letter-spacing: -0.01em;
  27. }
  28. .board-header-main {
  29. min-width: 0;
  30. }
  31. .board-header-actions {
  32. flex-shrink: 0;
  33. }
  34. .board-header-search {
  35. width: min(440px, 36vw);
  36. margin: 0 0.75rem;
  37. }
  38. .board-header-search .input-group-text {
  39. border-color: rgba(214, 229, 250, 0.7);
  40. background: rgba(255, 255, 255, 0.15);
  41. color: #eff6ff;
  42. }
  43. .board-header-search .form-control {
  44. border-color: rgba(214, 229, 250, 0.7);
  45. background: rgba(255, 255, 255, 0.17);
  46. color: #f5f9ff;
  47. }
  48. .board-header-search .form-control::placeholder {
  49. color: rgba(235, 243, 255, 0.72);
  50. }
  51. .board-header-search .form-control:focus {
  52. border-color: rgba(235, 245, 255, 0.95);
  53. box-shadow: 0 0 0 0.2rem rgba(157, 194, 245, 0.25);
  54. background: rgba(255, 255, 255, 0.23);
  55. }
  56. .kanban-board-title {
  57. display: block;
  58. min-width: 0;
  59. max-width: 100%;
  60. overflow: hidden;
  61. text-overflow: ellipsis;
  62. white-space: nowrap;
  63. font-size: clamp(1rem, 0.6vw + 0.95rem, 1.28rem);
  64. }
  65. body.kanban-page .navbar .btn-outline-light,
  66. body.kanban-page .navbar .btn-outline-secondary {
  67. border-color: rgba(213, 230, 255, 0.55) !important;
  68. color: #eef5ff !important;
  69. background: rgba(255, 255, 255, 0.06);
  70. }
  71. body.kanban-page .navbar .btn-outline-light:hover,
  72. body.kanban-page .navbar .btn-outline-secondary:hover {
  73. background: rgba(255, 255, 255, 0.16);
  74. border-color: rgba(234, 243, 255, 0.85) !important;
  75. }
  76. /* Board wrapper */
  77. .kanban-wrapper {
  78. width: 100%;
  79. margin: 0 auto;
  80. height: calc(100vh - 65px);
  81. overflow-x: auto;
  82. overflow-y: auto;
  83. padding: 0.9rem 1rem 1.1rem;
  84. -webkit-overflow-scrolling: touch;
  85. scroll-behavior: smooth;
  86. touch-action: pan-x pan-y;
  87. overscroll-behavior: contain;
  88. scrollbar-width: thin;
  89. scrollbar-color: #8fb0e0 #dce8f8;
  90. scrollbar-gutter: stable;
  91. }
  92. .kanban-grid {
  93. display: grid;
  94. width: max-content;
  95. min-width: 100%;
  96. border: 1px solid var(--line, #d9e3f5);
  97. border-radius: 14px;
  98. background: rgba(255, 255, 255, 0.72);
  99. box-shadow: 0 12px 34px rgba(22, 48, 92, 0.12);
  100. overflow: clip;
  101. }
  102. /* Sticky corner and headers */
  103. .kanban-corner {
  104. position: sticky;
  105. top: 0;
  106. left: 0;
  107. z-index: 40;
  108. min-width: 240px;
  109. min-height: 56px;
  110. background: linear-gradient(135deg, #173864 0%, #1e4d8f 100%);
  111. border-right: 1px solid rgba(255, 255, 255, 0.15);
  112. border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  113. }
  114. .kanban-col-header {
  115. position: sticky;
  116. top: 0;
  117. z-index: 30;
  118. min-width: 230px;
  119. padding: 0.75rem 0.88rem;
  120. display: flex;
  121. align-items: flex-start;
  122. justify-content: space-between;
  123. gap: 0.4rem;
  124. color: #eff5ff;
  125. font-size: clamp(0.68rem, 0.16vw + 0.65rem, 0.78rem);
  126. font-weight: 700;
  127. text-transform: uppercase;
  128. letter-spacing: 0.06em;
  129. white-space: normal;
  130. line-height: 1.22;
  131. word-break: break-word;
  132. overflow-wrap: anywhere;
  133. background: linear-gradient(120deg, #173864 0%, #1e4d8f 100%);
  134. border-left: 1px solid rgba(255, 255, 255, 0.16);
  135. }
  136. .kanban-col-header .col-label {
  137. min-width: 0;
  138. }
  139. .kanban-col-header .col-count-badge {
  140. flex: 0 0 auto;
  141. display: inline-flex;
  142. align-items: center;
  143. justify-content: center;
  144. min-width: 1.5rem;
  145. height: 1.5rem;
  146. padding: 0 0.4rem;
  147. border-radius: 999px;
  148. font-size: 0.68rem;
  149. font-weight: 800;
  150. letter-spacing: 0;
  151. text-transform: none;
  152. color: #173864;
  153. background: #eff5ff;
  154. }
  155. .kanban-lane-header {
  156. position: sticky;
  157. left: 0;
  158. z-index: 20;
  159. min-width: 240px;
  160. display: flex;
  161. align-items: center;
  162. gap: 0.42rem;
  163. padding: 0.85rem 0.82rem;
  164. font-size: clamp(0.7rem, 0.14vw + 0.66rem, 0.78rem);
  165. font-weight: 700;
  166. color: #2a3a58;
  167. background: linear-gradient(180deg, #f6faff 0%, #edf3ff 100%);
  168. border-top: 1px solid #d7e1f5;
  169. border-right: 1px solid #d4deef;
  170. }
  171. .kanban-lane-header .lane-label {
  172. display: inline-block;
  173. max-width: 100%;
  174. white-space: normal;
  175. line-height: 1.2;
  176. word-break: break-word;
  177. overflow-wrap: anywhere;
  178. }
  179. .kanban-lane-header .lane-toggle {
  180. display: inline-flex;
  181. align-items: center;
  182. justify-content: center;
  183. width: 1.34rem;
  184. height: 1.34rem;
  185. padding: 0;
  186. border: 0;
  187. border-radius: 999px;
  188. background: rgba(26, 74, 145, 0.12);
  189. color: #1f4f96;
  190. cursor: pointer;
  191. flex: 0 0 auto;
  192. }
  193. .kanban-lane-header .lane-toggle:hover {
  194. background: rgba(26, 74, 145, 0.22);
  195. }
  196. .kanban-lane-header .lane-toggle i {
  197. transition: transform 140ms ease;
  198. }
  199. .kanban-lane-header.lane-collapsed .lane-toggle i {
  200. transform: rotate(-90deg);
  201. }
  202. /* Cells */
  203. .kanban-cell {
  204. min-width: 230px;
  205. min-height: 132px;
  206. padding: 0.56rem;
  207. border-top: 1px solid #dce5f4;
  208. border-left: 1px solid #dce5f4;
  209. display: flex;
  210. flex-direction: column;
  211. gap: 0.45rem;
  212. vertical-align: top;
  213. background:
  214. linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(244, 248, 255, 0.93) 100%);
  215. }
  216. .kanban-cell.lane-collapsed {
  217. min-height: 0;
  218. max-height: 0;
  219. padding-top: 0;
  220. padding-bottom: 0;
  221. border-top-color: transparent;
  222. overflow: hidden;
  223. pointer-events: none;
  224. }
  225. .kanban-cell.lane-collapsed .kanban-card {
  226. display: none !important;
  227. }
  228. .kanban-cell.drag-over {
  229. background: linear-gradient(180deg, #e9f2ff 0%, #deecff 100%);
  230. box-shadow: inset 0 0 0 2px rgba(19, 99, 223, 0.24);
  231. }
  232. /* Cards */
  233. .kanban-card {
  234. border: 1px solid #d5e1f6;
  235. border-radius: 12px;
  236. background: #ffffff;
  237. padding: 0.56rem 0.62rem;
  238. cursor: pointer;
  239. user-select: none;
  240. box-shadow: 0 4px 12px rgba(16, 44, 90, 0.08);
  241. transition: transform 120ms ease, box-shadow 140ms ease, border-color 120ms ease;
  242. touch-action: manipulation;
  243. }
  244. .kanban-card:hover {
  245. transform: translateY(-1px);
  246. border-color: #8eb0ea;
  247. box-shadow: 0 10px 22px rgba(16, 44, 90, 0.14);
  248. }
  249. .kanban-card.sortable-ghost {
  250. opacity: 0.38;
  251. }
  252. .kanban-card.sortable-chosen {
  253. border-color: #4d87e2;
  254. box-shadow: 0 14px 30px rgba(17, 46, 94, 0.22);
  255. }
  256. .kanban-card-hidden {
  257. display: none !important;
  258. }
  259. .kanban-card-overdue {
  260. border-color: #f1b3ab;
  261. background: linear-gradient(180deg, #fff5f4 0%, #ffeceb 100%);
  262. box-shadow: 0 4px 12px rgba(214, 62, 44, 0.12);
  263. }
  264. .kanban-card-overdue:hover {
  265. border-color: #e2897e;
  266. box-shadow: 0 10px 22px rgba(214, 62, 44, 0.18);
  267. }
  268. .kanban-card-overdue .card-job-number {
  269. color: #b3261e;
  270. background: #fde2df;
  271. }
  272. .card-headline {
  273. display: flex;
  274. align-items: center;
  275. gap: 0.38rem;
  276. min-width: 0;
  277. }
  278. .card-job-number {
  279. display: inline-block;
  280. padding: 0.08rem 0.42rem;
  281. border-radius: 999px;
  282. font-size: 0.66rem;
  283. font-weight: 800;
  284. letter-spacing: 0.07em;
  285. text-transform: uppercase;
  286. color: #0e4fae;
  287. background: #e7f0ff;
  288. flex: 0 0 auto;
  289. }
  290. .card-customer {
  291. font-size: 0.78rem;
  292. font-weight: 600;
  293. color: #2b4a80;
  294. min-width: 0;
  295. white-space: nowrap;
  296. overflow: hidden;
  297. text-overflow: ellipsis;
  298. }
  299. .card-meta {
  300. display: flex;
  301. flex-wrap: wrap;
  302. gap: 0.5rem;
  303. margin-top: 0.25rem;
  304. }
  305. .card-meta-label {
  306. font-size: 0.63rem;
  307. font-weight: 700;
  308. color: #7a90b2;
  309. text-transform: uppercase;
  310. letter-spacing: 0.05em;
  311. }
  312. .card-delivery,
  313. .card-qty {
  314. font-size: 0.73rem;
  315. color: #3a5080;
  316. }
  317. .card-notes {
  318. margin-top: 0.22rem;
  319. font-size: 0.71rem;
  320. color: #647899;
  321. line-height: 1.3;
  322. }
  323. /* Settings panel */
  324. .kanban-settings-overlay {
  325. position: fixed;
  326. inset: 0;
  327. z-index: 1040;
  328. background: rgba(13, 25, 48, 0.42);
  329. backdrop-filter: blur(2px);
  330. }
  331. .kanban-settings-panel {
  332. position: fixed;
  333. top: 0;
  334. right: 0;
  335. width: min(420px, 94vw);
  336. max-width: 100vw;
  337. height: 100%;
  338. z-index: 1050;
  339. background: linear-gradient(180deg, #f7fbff 0%, #f1f6ff 100%);
  340. border-left: 1px solid #d8e2f2;
  341. box-shadow: -8px 0 28px rgba(19, 40, 81, 0.2);
  342. display: flex;
  343. flex-direction: column;
  344. overflow: hidden;
  345. transform: translateX(104%);
  346. transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
  347. will-change: transform;
  348. }
  349. .kanban-settings-panel.open {
  350. transform: translateX(0);
  351. }
  352. .settings-header {
  353. background: rgba(255, 255, 255, 0.7);
  354. border-bottom-color: #dce6f5 !important;
  355. }
  356. .settings-header h6 {
  357. letter-spacing: -0.01em;
  358. }
  359. .settings-body {
  360. flex: 1;
  361. overflow-y: auto;
  362. }
  363. .settings-body .list-group-item {
  364. border-color: #d7e2f4;
  365. border-radius: 10px !important;
  366. margin-bottom: 0.45rem;
  367. background: #ffffff;
  368. box-shadow: 0 3px 9px rgba(25, 45, 84, 0.05);
  369. }
  370. .settings-sortable .drag-handle {
  371. color: #8fa1bf !important;
  372. }
  373. .settings-sortable .drag-handle:hover {
  374. color: var(--brand, #1363df) !important;
  375. }
  376. .inline-rename {
  377. height: auto;
  378. font-size: 0.84rem;
  379. padding: 0.23rem 0.45rem;
  380. }
  381. /* Modal polish */
  382. #cardModal .modal-content {
  383. border: 1px solid #d7e2f5;
  384. border-radius: 14px;
  385. box-shadow: 0 22px 48px rgba(18, 43, 83, 0.22);
  386. }
  387. #cardModal .modal-header {
  388. border-bottom-color: #dfe8f7;
  389. background: #f7fbff;
  390. }
  391. #cardModal .modal-footer {
  392. border-top-color: #dfe8f7;
  393. background: #fbfdff;
  394. }
  395. /* Scrollbars */
  396. .kanban-wrapper::-webkit-scrollbar,
  397. .settings-body::-webkit-scrollbar {
  398. width: 12px;
  399. height: 12px;
  400. }
  401. .kanban-wrapper::-webkit-scrollbar-track,
  402. .settings-body::-webkit-scrollbar-track {
  403. background: #dce8f8;
  404. border-radius: 999px;
  405. }
  406. .kanban-wrapper::-webkit-scrollbar-thumb,
  407. .settings-body::-webkit-scrollbar-thumb {
  408. background: #8fb0e0;
  409. border-radius: 999px;
  410. border: 2px solid #dce8f8;
  411. }
  412. .kanban-wrapper::-webkit-scrollbar-thumb:hover,
  413. .settings-body::-webkit-scrollbar-thumb:hover {
  414. background: #5e8ecb;
  415. }
  416. .kanban-wrapper::-webkit-scrollbar-corner {
  417. background: #dce8f8;
  418. }
  419. /* Small screens */
  420. @media (max-width: 900px) {
  421. .kanban-wrapper {
  422. padding: 0.7rem;
  423. height: calc(100vh - 62px);
  424. }
  425. .kanban-corner,
  426. .kanban-lane-header {
  427. min-width: 190px;
  428. }
  429. .kanban-col-header,
  430. .kanban-cell {
  431. min-width: 206px;
  432. }
  433. .kanban-board-title {
  434. font-size: clamp(0.92rem, 2.8vw, 1.1rem);
  435. }
  436. .board-header-actions {
  437. gap: 0.35rem !important;
  438. }
  439. .board-header-search {
  440. width: min(270px, 44vw);
  441. margin: 0 0.35rem;
  442. }
  443. .board-header-actions .btn {
  444. padding-left: 0.48rem;
  445. padding-right: 0.48rem;
  446. }
  447. }
  448. @media (max-width: 640px) {
  449. .board-header-search {
  450. width: 100%;
  451. margin: 0.5rem 0 0;
  452. order: 3;
  453. }
  454. body.kanban-page .navbar {
  455. flex-wrap: wrap;
  456. align-items: flex-start !important;
  457. }
  458. .board-header-main {
  459. flex: 1 1 auto;
  460. }
  461. .board-header-actions {
  462. flex: 0 0 auto;
  463. }
  464. .kanban-settings-panel {
  465. width: 100vw;
  466. border-left: 0;
  467. box-shadow: none;
  468. }
  469. .settings-body {
  470. padding-bottom: 1.25rem;
  471. }
  472. }

Powered by TurnKey Linux.