//! The task modal: a panel over the board that holds the task's fields, people, structure, dependencies, //! comments and activity. Without JavaScript the dialog is shown in place, so the panel rules also apply //! to a plain ``. .task-dialog { position: fixed; inset: 0 0 0 auto; z-index: 20; width: min(44rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 1.25rem 1.5rem 3rem; overflow-y: auto; border: 0; border-left: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: -8px 0 24px rgb(0 0 0 / 0.12); } .task-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; } .task-key { margin: 0; font-family: ui-monospace, monospace; color: var(--muted); } .task-title { margin: 0.5rem 0 0.75rem; overflow-wrap: anywhere; } .task-section { padding-block: 1rem; border-top: 1px solid var(--border); h3 { margin: 0 0 0.5rem; font-size: 1rem; } h4 { margin: 0.75rem 0 0.25rem; font-size: 0.9rem; color: var(--muted); } } .task-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0 0 0.75rem; dt { color: var(--muted); } dd { margin: 0; } } .task-list, .comment-list, .activity-list { margin: 0; padding: 0; list-style: none; } .task-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-block: 0.25rem; overflow-wrap: anywhere; } .task-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; margin-block: 0.5rem; } .task-form { margin-block: 0.5rem; } .task-edit { margin-top: 0.75rem; summary { cursor: pointer; color: var(--accent); } } .rich-text { overflow-wrap: anywhere; white-space: normal; line-height: 1.5; a { color: var(--accent); } } .comment { padding-block: 0.5rem; border-top: 1px solid var(--border); } .comment-meta { margin: 0 0 0.25rem; font-size: 0.85rem; color: var(--muted); } .comment-edit { margin-top: 0.25rem; } .activity-list li { padding-block: 0.2rem; font-size: 0.9rem; overflow-wrap: anywhere; } .task-confirm { border-color: var(--danger); } // The file viewer: media fills the modal width, the PDF gets a fixed height, text and cells scroll inside // their own boxes so a long line or a wide sheet never stretches the modal. .viewer { display: grid; gap: 0.75rem; margin-block: 0.75rem; } .viewer-image, .viewer-media { max-width: 100%; max-height: 70vh; } .viewer-frame { width: 100%; height: 70vh; border: 1px solid var(--border); } .viewer-text { max-height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; } .viewer-table { max-height: 60vh; overflow: auto; } .viewer-table td { border: 1px solid var(--border); padding: 0.2rem 0.4rem; white-space: nowrap; } .sheet-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; } .slide-list { display: grid; gap: 0.75rem; padding-left: 0; list-style: none; } .slide { border: 1px solid var(--border); padding: 0.5rem 0.75rem; } .file-list { display: grid; gap: 0.4rem; padding-left: 0; list-style: none; }