Implement unified work inbox module
This commit is contained in:
@@ -0,0 +1,308 @@
|
||||
.tasks-page {
|
||||
box-sizing: border-box;
|
||||
height: calc(100vh - 115px);
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
color: var(--text);
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.tasks-page *,
|
||||
.tasks-page *::before,
|
||||
.tasks-page *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tasks-shell {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(285px, 350px) minmax(0, 1fr);
|
||||
border: var(--border-line);
|
||||
background: var(--panel);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tasks-sidebar,
|
||||
.tasks-workspace {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tasks-sidebar {
|
||||
border-right: var(--border-line);
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
.tasks-sidebar-bar,
|
||||
.tasks-topbar,
|
||||
.tasks-title,
|
||||
.tasks-detail-title,
|
||||
.tasks-toolbar-actions,
|
||||
.tasks-list-heading,
|
||||
.tasks-list-meta,
|
||||
.tasks-detail-meta,
|
||||
.tasks-open-action {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.tasks-sidebar-bar,
|
||||
.tasks-topbar {
|
||||
min-height: 54px;
|
||||
justify-content: space-between;
|
||||
border-bottom: var(--border-line);
|
||||
background: var(--panel-header);
|
||||
padding: 9px 12px;
|
||||
}
|
||||
|
||||
.tasks-detail-title {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.tasks-detail-title strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tasks-toolbar-actions {
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.tasks-toolbar-actions .btn {
|
||||
min-height: 32px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.tasks-search {
|
||||
height: 36px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
border: var(--border-line);
|
||||
border-radius: 5px;
|
||||
background: var(--surface);
|
||||
margin: 8px 8px 0;
|
||||
padding: 0 9px;
|
||||
}
|
||||
|
||||
.tasks-search:focus-within {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.tasks-search input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tasks-status-filter {
|
||||
width: calc(100% - 16px);
|
||||
margin: 8px;
|
||||
}
|
||||
|
||||
.tasks-list {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 0 8px 8px;
|
||||
}
|
||||
|
||||
.tasks-list-item {
|
||||
min-height: 64px;
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.tasks-list-heading,
|
||||
.tasks-list-meta {
|
||||
min-width: 0;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.tasks-list-heading strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tasks-list-meta,
|
||||
.tasks-note {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.tasks-workspace > .alert {
|
||||
margin: 8px 12px 0;
|
||||
}
|
||||
|
||||
.tasks-detail {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.tasks-detail-main,
|
||||
.tasks-properties,
|
||||
.tasks-sources {
|
||||
border-bottom: var(--border-line);
|
||||
margin-bottom: 18px;
|
||||
padding-bottom: 18px;
|
||||
}
|
||||
|
||||
.tasks-detail-main h1 {
|
||||
margin: 10px 0 8px;
|
||||
color: var(--text-strong);
|
||||
font-size: 24px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.tasks-detail-main > p {
|
||||
max-width: 850px;
|
||||
line-height: 1.55;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.tasks-detail-meta {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.tasks-required-action {
|
||||
max-width: 850px;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
border-left: 3px solid var(--accent);
|
||||
background: var(--info-soft);
|
||||
margin: 14px 0;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.tasks-open-action {
|
||||
width: max-content;
|
||||
max-width: 100%;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tasks-properties h2,
|
||||
.tasks-sources h2 {
|
||||
margin: 0 0 12px;
|
||||
color: var(--text-strong);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.tasks-properties dl {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(180px, 1fr));
|
||||
gap: 12px 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tasks-properties dt {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.tasks-properties dd {
|
||||
margin: 3px 0 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.tasks-source {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
border-top: var(--border-line);
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.tasks-source span {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.tasks-empty-detail {
|
||||
min-height: 100%;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
justify-items: center;
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.tasks-empty-detail h1 {
|
||||
margin: 10px 0 0;
|
||||
color: var(--text-strong);
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.tasks-create-form {
|
||||
width: min(620px, 75vw);
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.tasks-create-form textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.tasks-create-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(150px, .75fr) minmax(260px, 1.25fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.tasks-assignment-note {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.tasks-widget-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.tasks-shell {
|
||||
grid-template-columns: minmax(230px, 42%) minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.tasks-topbar {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.tasks-properties dl,
|
||||
.tasks-create-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.tasks-shell {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: minmax(250px, 44%) minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.tasks-sidebar {
|
||||
border-right: 0;
|
||||
border-bottom: var(--border-line);
|
||||
}
|
||||
|
||||
.tasks-create-form {
|
||||
width: min(100%, 88vw);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user