mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +00:00
Documents and articles outside the agent app read like the document page: the portal document and Help article pages, shared links and the public help center lay out what they say as on the agent document page, with a long one's Contents beside it in view as you scroll and marking the section being read, or above it on a phone; pictures open full size when clicked; a section picked from Contents stays marked, on the agent page too; 26.12.3 changelog entries
This commit is contained in:
@@ -9593,6 +9593,38 @@ a.itflow-portal-request:focus-visible {
|
||||
.itflow-portal-document > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
/* A document or article read outside the agent app (documentReadHtml() - the portal, a shared link,
|
||||
the public help center): laid out as on the document page, with a long one's Contents beside it,
|
||||
in view as you scroll, or above it on a phone (js/document_contents.js) */
|
||||
.itflow-document-read {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 1rem;
|
||||
}
|
||||
.itflow-document-read-nav {
|
||||
padding: .6rem 1.1rem;
|
||||
}
|
||||
.itflow-document-read .itflow-prose :is(h1, h2, h3, h4) {
|
||||
scroll-margin-top: calc(var(--itflow-portal-header-height, 0px) + 1rem);
|
||||
}
|
||||
@media screen and (min-width: 992px) {
|
||||
.itflow-document-read:has(> .itflow-document-read-contents:not([hidden])) {
|
||||
grid-template-columns: minmax(0, 1fr) 15rem;
|
||||
}
|
||||
.itflow-document-read-body {
|
||||
grid-row: 1;
|
||||
grid-column: 1;
|
||||
}
|
||||
.itflow-document-read-contents {
|
||||
grid-row: 1;
|
||||
grid-column: 2;
|
||||
align-self: start;
|
||||
position: sticky;
|
||||
top: calc(var(--itflow-portal-header-height, 0px) + 1rem);
|
||||
max-height: calc(100vh - var(--itflow-portal-header-height, 0px) - 2rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
@media (max-width: 575.98px) {
|
||||
.itflow-portal-ticket > .itflow-portal-tile {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user