added kanban and reporting
This commit is contained in:
@@ -137,6 +137,8 @@ h2 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.025em; }
|
||||
.badge.approved { background: #e3f0e8; color: #337052; }
|
||||
.badge.rejected, .badge.cancelled { background: #f5e6e4; color: #9d4a44; }
|
||||
.badge.kind { background: #edf0ee; color: #68736e; }
|
||||
.badge.done { background: #e3f0e8; color: #337052; }
|
||||
.badge.blocked { background: #f5e6e4; color: #9d4a44; }
|
||||
.empty { padding: 22px; color: var(--muted); text-align: center; font-size: .76rem; }
|
||||
.empty > span { color: #9ca9a2; font-size: 1.5rem; }
|
||||
.empty a { color: var(--green); font-weight: 700; }
|
||||
@@ -207,6 +209,115 @@ blockquote { margin: 10px 0; padding-left: 12px; border-left: 2px solid #d8dfdb;
|
||||
.report-card { display: grid; grid-template-columns: 75px 1fr; gap: 20px; max-width: 850px; margin: auto; padding: 32px; }
|
||||
.report-illustration { display: grid; width: 66px; height: 66px; place-items: center; border-radius: 18px; background: var(--mint); color: var(--green); font-size: 1.7rem; }
|
||||
.report-form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding-top: 20px; border-top: 1px solid var(--line); }
|
||||
.secondary-report { margin-top: 20px; }
|
||||
.report-page-head { align-items: center; }
|
||||
.report-range-filter { display: grid; grid-template-columns: 145px 145px auto; gap: 9px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
|
||||
.report-range-filter input { margin-top: 4px; padding-top: 8px; padding-bottom: 8px; }
|
||||
.report-range-filter .button { min-height: 39px; }
|
||||
.accumulated-report { max-width: 1180px; margin: 0 auto 20px; overflow: hidden; }
|
||||
.accumulated-head { display: flex; justify-content: space-between; align-items: center; padding: 25px 28px 20px; }
|
||||
.accumulated-head h2 { margin-bottom: 3px; }
|
||||
.accumulated-head p:last-child { margin: 0; color: var(--muted); font-size: .7rem; }
|
||||
.accumulated-totals { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0 28px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
|
||||
.accumulated-totals > div { display: grid; grid-template-columns: 31px 1fr; column-gap: 8px; align-items: center; min-width: 0; padding: 13px 12px; border-right: 1px solid var(--line); }
|
||||
.accumulated-totals > div:last-child { border-right: 0; }
|
||||
.accumulated-totals .stat-icon { grid-row: span 2; margin: 0; }
|
||||
.accumulated-totals small { overflow: hidden; color: var(--muted); font-size: .53rem; font-weight: 700; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.accumulated-totals strong { font-size: 1.25rem; line-height: 1; }
|
||||
.blocked-icon { background: #f5e6e4; color: #a34d47; }
|
||||
.pending-icon { background: #f6eddc; color: #87662c; }
|
||||
.summary-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
|
||||
.summary-table { width: 100%; border-collapse: collapse; font-size: .73rem; }
|
||||
.summary-table th { padding: 11px 15px; background: #f8faf8; color: var(--muted); font-size: .56rem; font-weight: 700; letter-spacing: .07em; text-align: center; text-transform: uppercase; white-space: nowrap; }
|
||||
.summary-table th:first-child, .summary-table td:first-child { padding-left: 28px; text-align: left; }
|
||||
.summary-table td { padding: 13px 15px; border-top: 1px solid var(--line); text-align: center; }
|
||||
.summary-person { display: inline-flex; align-items: center; gap: 10px; min-width: 185px; text-align: left; }
|
||||
.summary-person .avatar { width: 34px; height: 34px; flex: 0 0 34px; }
|
||||
.summary-person img.avatar { display: block; object-fit: cover; }
|
||||
.summary-person strong { display: block; font-size: .74rem; }
|
||||
.summary-person small { display: block; margin-top: 2px; color: var(--muted); font-size: .6rem; }
|
||||
.metric { display: inline-grid; min-width: 25px; height: 25px; place-items: center; border-radius: 7px; font-weight: 700; }
|
||||
.metric.done { background: #e3f0e8; color: #337052; }
|
||||
.metric.blocked { background: #f5e6e4; color: #9d4a44; }
|
||||
.metric.pending { background: #f6eddc; color: #87662c; }
|
||||
.report-export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1180px; margin: auto; }
|
||||
.report-export-grid .report-card { grid-template-columns: 60px 1fr; max-width: none; margin: 0; padding: 25px; }
|
||||
.report-export-grid .secondary-report { margin-top: 0; }
|
||||
.report-export-grid .report-illustration { width: 55px; height: 55px; border-radius: 15px; }
|
||||
.report-export-grid .report-form { grid-template-columns: 1fr 1fr; }
|
||||
.report-export-grid .report-form .button { grid-column: 1 / -1; }
|
||||
|
||||
.board-page-head { position: relative; align-items: center; }
|
||||
.new-task-panel { position: relative; }
|
||||
.new-task-panel > summary { list-style: none; user-select: none; }
|
||||
.new-task-panel > summary::-webkit-details-marker { display: none; }
|
||||
.new-task-panel[open] > summary { background: var(--ink); }
|
||||
.new-task-form { position: absolute; z-index: 60; top: calc(100% + 9px); right: 0; display: grid; gap: 14px; width: min(430px, calc(100vw - 40px)); padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 22px 60px rgba(24, 36, 31, .22); }
|
||||
.new-task-form-head h2 { margin-bottom: 0; }
|
||||
.kanban-board { display: grid; grid-template-columns: repeat(4, minmax(270px, 1fr)); gap: 14px; align-items: start; max-width: 1380px; margin: 0 auto; overflow-x: auto; padding-bottom: 18px; }
|
||||
.kanban-column { min-width: 270px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #eef2ef; }
|
||||
.kanban-column-head { display: flex; justify-content: space-between; align-items: start; min-height: 51px; padding: 4px 5px 12px; }
|
||||
.kanban-column-head > div { display: grid; grid-template-columns: 9px 1fr; column-gap: 8px; align-items: center; }
|
||||
.column-dot { width: 8px; height: 8px; border-radius: 50%; background: #87938d; }
|
||||
.kanban-column.in_progress .column-dot { background: #6689b2; }
|
||||
.kanban-column.blocked .column-dot { background: #c2655c; }
|
||||
.kanban-column.done .column-dot { background: #4d9870; }
|
||||
.kanban-column-head strong { font-size: .79rem; }
|
||||
.kanban-column-head small { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: .58rem; }
|
||||
.kanban-column-head > b { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 20px; background: var(--white); color: var(--muted); font-size: .62rem; }
|
||||
.kanban-cards { display: grid; gap: 9px; min-height: 100px; border-radius: 11px; transition: background .16s ease, box-shadow .16s ease; }
|
||||
.kanban-cards.drag-over { background: rgba(70, 126, 100, .1); box-shadow: inset 0 0 0 2px #6c9c85; }
|
||||
.kanban-card { padding: 14px; border: 1px solid #dfe4e1; border-radius: 11px; background: var(--white); box-shadow: 0 3px 10px rgba(24, 36, 31, .045); cursor: grab; transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease; }
|
||||
.kanban-card:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(24, 36, 31, .09); }
|
||||
.kanban-card.dragging { opacity: .45; transform: rotate(1.5deg); }
|
||||
.kanban-card.moving { opacity: .35; pointer-events: none; }
|
||||
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
|
||||
.task-id { color: #9aa39e; font-size: .58rem; font-weight: 700; }
|
||||
.task-due { padding: 4px 6px; border-radius: 6px; background: var(--sand); color: #786039; font-size: .55rem; font-weight: 700; }
|
||||
.kanban-card h3 { margin-bottom: 7px; font-size: .84rem; line-height: 1.35; }
|
||||
.kanban-card > p { display: -webkit-box; overflow: hidden; margin-bottom: 13px; color: #64706a; font-size: .68rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
|
||||
.task-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
|
||||
.task-assignee { display: flex; min-width: 0; gap: 6px; align-items: center; color: #53605a; font-size: .61rem; font-weight: 700; }
|
||||
.task-assignee i { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: var(--blue); color: #4d6e94; font-size: .59rem; font-style: normal; }
|
||||
.task-assignee i.avatar { width: 24px; height: 24px; }
|
||||
.task-assignee span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.task-assignee.unassigned { color: var(--muted); font-weight: 500; }
|
||||
.task-creator { overflow: hidden; color: #9aa39e; font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.task-actions { display: flex; justify-content: space-between; align-items: center; margin: 11px -3px -5px; }
|
||||
.task-actions > form:first-child { display: flex; gap: 4px; align-items: center; }
|
||||
.task-actions select { width: auto; min-width: 104px; margin: 0; padding: 5px 25px 5px 7px; border: 0; background-color: var(--paper); font-size: .58rem; font-weight: 700; }
|
||||
.task-actions .text-button { margin: 0; }
|
||||
.task-move-button { display: none; }
|
||||
.task-actions form:focus-within .task-move-button { display: inline-block; }
|
||||
.task-remove { position: relative; color: var(--muted); font-size: .58rem; }
|
||||
.task-remove > summary { cursor: pointer; list-style: none; text-decoration: underline; }
|
||||
.task-remove > summary::-webkit-details-marker { display: none; }
|
||||
.task-remove[open] > summary { visibility: hidden; }
|
||||
.task-remove form { position: absolute; right: 0; bottom: -1px; }
|
||||
.task-remove form .text-button { color: var(--red); font-weight: 700; }
|
||||
.kanban-empty { display: grid; min-height: 74px; place-items: center; border: 1px dashed #b8c2bd; border-radius: 10px; color: var(--muted); font-size: .62rem; }
|
||||
|
||||
.updates-layout { grid-template-columns: minmax(390px, .8fr) minmax(460px, 1.2fr); }
|
||||
.update-form-card { align-self: start; }
|
||||
.update-status-choices { grid-template-columns: repeat(3, 1fr); }
|
||||
.update-status-choices span { grid-template-columns: 24px 1fr; padding: 11px 9px; }
|
||||
.update-status-choices b { font-size: .86rem; }
|
||||
.update-status-choices small { line-height: 1.3; }
|
||||
.update-status-choices label:nth-child(1) input:checked + span { border-color: #5c8d77; background: #f2f8f5; box-shadow: inset 0 0 0 1px #5c8d77; }
|
||||
.update-status-choices label:nth-child(2) input:checked + span { border-color: #b66b64; background: #fff5f3; box-shadow: inset 0 0 0 1px #b66b64; }
|
||||
.update-status-choices label:nth-child(3) input:checked + span { border-color: #b08a4d; background: #fffaf0; box-shadow: inset 0 0 0 1px #b08a4d; }
|
||||
.update-feed-card { align-self: start; padding: 26px; }
|
||||
.feed-count { color: var(--muted); font-size: .68rem; }
|
||||
.update-feed { margin: 0 -26px -12px; }
|
||||
.update-entry { position: relative; padding: 20px 26px; border-top: 1px solid var(--line); }
|
||||
.update-author { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; }
|
||||
.update-author .avatar { width: 38px; height: 38px; }
|
||||
.update-author img.avatar { display: block; object-fit: cover; }
|
||||
.update-author strong { display: block; font-size: .79rem; }
|
||||
.update-author small { display: block; margin-top: 2px; color: var(--muted); font-size: .63rem; }
|
||||
.update-period { margin: 13px 0 7px; color: var(--green-2); font-size: .68rem; font-weight: 700; }
|
||||
.update-note { margin: 0; color: #46534d; font-size: .78rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.update-delete { text-align: right; }
|
||||
|
||||
.day-page-head { align-items: center; }
|
||||
.day-date-form { display: grid; grid-template-columns: 190px auto; gap: 9px; align-items: end; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: var(--shadow); }
|
||||
@@ -331,6 +442,25 @@ html[data-theme="dark"] .badge.approved { background: #1d3b2c; color: #8fd0ae; }
|
||||
html[data-theme="dark"] .badge.rejected,
|
||||
html[data-theme="dark"] .badge.cancelled { background: #432725; color: #efa09a; }
|
||||
html[data-theme="dark"] .badge.kind { background: #28332e; color: #b2bdb7; }
|
||||
html[data-theme="dark"] .badge.done { background: #1d3b2c; color: #8fd0ae; }
|
||||
html[data-theme="dark"] .badge.blocked { background: #432725; color: #efa09a; }
|
||||
html[data-theme="dark"] .update-note { color: #bdc8c2; }
|
||||
html[data-theme="dark"] .update-status-choices label:nth-child(1) input:checked + span { border-color: #5c9b7b; background: #1b3027; }
|
||||
html[data-theme="dark"] .update-status-choices label:nth-child(2) input:checked + span { border-color: #b66b64; background: #372321; }
|
||||
html[data-theme="dark"] .update-status-choices label:nth-child(3) input:checked + span { border-color: #a88951; background: #352f21; }
|
||||
html[data-theme="dark"] .summary-table th { background: #141d18; }
|
||||
html[data-theme="dark"] .metric.done { background: #1d3b2c; color: #8fd0ae; }
|
||||
html[data-theme="dark"] .metric.blocked,
|
||||
html[data-theme="dark"] .blocked-icon { background: #432725; color: #efa09a; }
|
||||
html[data-theme="dark"] .metric.pending,
|
||||
html[data-theme="dark"] .pending-icon { background: #453820; color: #e3bd72; }
|
||||
html[data-theme="dark"] .new-task-form { box-shadow: 0 22px 65px rgba(0, 0, 0, .52); }
|
||||
html[data-theme="dark"] .kanban-column { background: #141d18; }
|
||||
html[data-theme="dark"] .kanban-card { border-color: #35443d; box-shadow: 0 4px 13px rgba(0, 0, 0, .22); }
|
||||
html[data-theme="dark"] .kanban-card > p { color: #aab6b0; }
|
||||
html[data-theme="dark"] .task-assignee { color: #bdc8c2; }
|
||||
html[data-theme="dark"] .task-due { background: #3b3222; color: #dec18b; }
|
||||
html[data-theme="dark"] .kanban-cards.drag-over { background: rgba(107, 172, 142, .1); }
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.app-shell { grid-template-columns: 74px 1fr; }
|
||||
@@ -348,8 +478,16 @@ html[data-theme="dark"] .badge.kind { background: #28332e; color: #b2bdb7; }
|
||||
.login-page { grid-template-columns: 1fr 1fr; }
|
||||
.story-calendar { display: none; }
|
||||
.two-column { grid-template-columns: 1fr; }
|
||||
.updates-layout { grid-template-columns: 1fr; }
|
||||
.day-summary-card { grid-template-columns: 1fr; gap: 20px; }
|
||||
.day-stats { padding-top: 18px; border-top: 1px solid var(--line); border-left: 0; }
|
||||
.report-page-head { display: block; }
|
||||
.report-range-filter { width: max-content; max-width: 100%; margin-top: 18px; }
|
||||
.accumulated-totals { grid-template-columns: repeat(3, 1fr); }
|
||||
.accumulated-totals > div:nth-child(3) { border-right: 0; }
|
||||
.accumulated-totals > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
|
||||
.report-export-grid { grid-template-columns: 1fr; }
|
||||
.kanban-board { grid-template-columns: repeat(4, 285px); margin-right: calc(-1 * clamp(28px, 5vw, 68px)); padding-right: clamp(28px, 5vw, 68px); }
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
@@ -385,6 +523,20 @@ html[data-theme="dark"] .badge.kind { background: #28332e; color: #b2bdb7; }
|
||||
.review-form, .report-form { grid-template-columns: 1fr; }
|
||||
.report-card { grid-template-columns: 1fr; }
|
||||
.report-form { grid-column: auto; }
|
||||
.report-range-filter { grid-template-columns: 1fr 1fr; width: 100%; }
|
||||
.report-range-filter .button { grid-column: 1 / -1; }
|
||||
.accumulated-head { display: block; padding: 20px 18px; }
|
||||
.accumulated-head .button { margin-top: 14px; }
|
||||
.accumulated-totals { grid-template-columns: repeat(2, 1fr); margin: 0 18px 20px; }
|
||||
.accumulated-totals > div:nth-child(3) { border-right: 1px solid var(--line); }
|
||||
.accumulated-totals > div:nth-child(even) { border-right: 0; }
|
||||
.accumulated-totals > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
|
||||
.summary-table th:first-child, .summary-table td:first-child { padding-left: 18px; }
|
||||
.report-export-grid .report-card { grid-template-columns: 1fr; }
|
||||
.board-page-head { align-items: center; }
|
||||
.new-task-form { position: fixed; top: 76px; right: 15px; left: 15px; width: auto; max-height: calc(100vh - 100px); overflow-y: auto; }
|
||||
.kanban-board { grid-template-columns: repeat(4, 82vw); margin-right: -15px; padding-right: 0; padding-left: 15px; scroll-snap-type: x mandatory; }
|
||||
.kanban-column { scroll-snap-align: start; }
|
||||
.filter-tabs { display: none; }
|
||||
.day-summary-card, .roster-card { padding: 18px; }
|
||||
.day-date-nav { grid-template-columns: 33px 1fr 33px; gap: 9px; }
|
||||
|
||||
Reference in New Issue
Block a user