Document page modernized: headings in proportion to the text with styled tables, code and quotes; folder, template, Markdown and the review under the name, the review's menu with Mark Reviewed and how often; Edit, Share and an Export menu for PDF, Markdown and Print, Template moved to the more menu; Contents marks the section being read; Linked, Versions and History as tabs of one card, Linked as counts that open to their lists; linkGroupsHtml compact mode; 26.12.3 changelog entries

This commit is contained in:
johnnyq
2026-11-29 01:06:42 -05:00
parent 8b4fa5a1a0
commit 6cdbe60747
5 changed files with 362 additions and 150 deletions

View File

@@ -5392,6 +5392,52 @@ tr:hover .itflow-files-rename,
color: var(--bs-secondary-color);
font-weight: 500;
}
/* A group that opens to its rows (linkGroupsHtml() $compact - the document page) */
.itflow-link-group.is-compact + .itflow-link-group.is-compact {
margin-top: .15rem;
}
.itflow-link-group.is-compact .itflow-link-group-head {
margin-bottom: 0;
font-size: .875rem;
font-weight: 500;
letter-spacing: 0;
text-transform: none;
color: var(--bs-body-color);
}
.itflow-link-group.is-compact .itflow-link-group-head > i,
.itflow-link-group-toggle > .fa-fw {
color: var(--bs-secondary-color);
}
.itflow-link-group-toggle {
display: flex;
flex: 1 1 auto;
align-items: center;
padding: .35rem .4rem;
margin: 0 -.4rem;
border: 0;
border-radius: var(--bs-border-radius);
background: none;
color: inherit;
font: inherit;
letter-spacing: inherit;
text-transform: inherit;
text-align: left;
}
.itflow-link-group-toggle:hover {
background-color: var(--bs-tertiary-bg);
}
.itflow-link-group-chevron {
margin-left: auto;
padding-left: .5rem;
font-size: .7rem;
transition: transform .15s ease;
}
.itflow-link-group-toggle.collapsed .itflow-link-group-chevron {
transform: rotate(-90deg);
}
.itflow-link-group.is-compact ul {
padding: .1rem 0 .35rem;
}
.itflow-link-group-head a {
text-transform: none;
letter-spacing: 0;
@@ -5468,7 +5514,103 @@ tr:hover .itflow-files-rename,
border-radius: var(--bs-border-radius-lg);
overflow-wrap: anywhere;
}
/* A document written in Markdown, as it shows (functions/markdown.php markdownToHtml()) */
/* A document to read (.itflow-prose - the document page): headings in proportion to the text, room
between the parts, and tables, code and quotes that look like part of it */
.itflow-prose {
line-height: 1.65;
}
@media (min-width: 992px) {
.itflow-document-body.itflow-prose {
padding: 1.75rem 2rem;
}
}
.itflow-prose > :first-child,
.itflow-prose > .itflow-markdown > :first-child {
margin-top: 0;
}
.itflow-prose > :last-child,
.itflow-prose > .itflow-markdown > :last-child {
margin-bottom: 0;
}
.itflow-prose :is(h1, h2, h3, h4, h5, h6) {
margin: 1.75rem 0 .6rem;
font-weight: 600;
line-height: 1.3;
color: var(--bs-emphasis-color);
}
.itflow-prose h1 { font-size: 1.6rem; }
.itflow-prose h2 {
font-size: 1.3rem;
padding-bottom: .35rem;
border-bottom: 1px solid var(--bs-border-color-translucent);
}
.itflow-prose h3 { font-size: 1.12rem; }
.itflow-prose h4 { font-size: 1rem; }
.itflow-prose :is(h5, h6) {
font-size: .9rem;
text-transform: uppercase;
letter-spacing: .03em;
color: var(--bs-secondary-color);
}
.itflow-prose :is(p, ul, ol, table, pre, blockquote, figure) {
margin-bottom: 1rem;
}
.itflow-prose :is(ul, ol) {
padding-left: 1.5rem;
}
.itflow-prose li + li,
.itflow-prose li > :is(ul, ol) {
margin-top: .25rem;
}
.itflow-prose a {
text-underline-offset: .15em;
}
.itflow-prose hr {
margin: 2rem 0;
}
.itflow-prose img {
border-radius: var(--bs-border-radius);
}
.itflow-prose table {
width: auto;
max-width: 100%;
border: 1px solid var(--bs-border-color);
font-size: .925rem;
}
.itflow-prose table :is(td, th) {
padding: .4rem .65rem;
border: 1px solid var(--bs-border-color);
}
.itflow-prose table :is(th, thead td) {
background-color: var(--bs-tertiary-bg);
font-weight: 600;
}
/* Code and quotes in a document read on its page */
.itflow-prose pre,
.itflow-prose blockquote {
margin-left: 0;
}
.itflow-prose pre {
padding: .75rem 1rem;
border: 1px solid var(--bs-border-color);
border-radius: var(--bs-border-radius);
background-color: var(--bs-tertiary-bg);
white-space: pre;
overflow-x: auto;
overflow-wrap: normal;
}
.itflow-prose :not(pre) > code {
padding: .1rem .3rem;
border-radius: .25rem;
background-color: var(--bs-tertiary-bg);
color: var(--bs-emphasis-color);
}
.itflow-prose blockquote {
padding: .25rem 0 .25rem 1rem;
border-left: .25rem solid var(--bs-border-color);
color: var(--bs-secondary-color);
}
/* A document written in Markdown, wherever it shows (functions/markdown.php markdownToHtml()) */
.itflow-markdown img {
max-width: 100%;
height: auto;
@@ -5571,6 +5713,15 @@ tr:hover .itflow-files-rename,
.itflow-document-contents a:hover {
color: var(--bs-link-hover-color);
}
/* Where a document lives, its template and its review, under its name */
.itflow-document-facts .btn {
font-size: inherit;
line-height: inherit;
}
/* The section being read, marked as the page scrolls */
.itflow-document-contents a.active {
color: var(--bs-link-color);
}
.itflow-document-contents-level-0 a {
font-weight: 600;
}