diff --git a/wiki/frappe_wiki/print_format/standard_wiki_document/standard_wiki_document.html b/wiki/frappe_wiki/print_format/standard_wiki_document/standard_wiki_document.html index db413bef..187b25d1 100644 --- a/wiki/frappe_wiki/print_format/standard_wiki_document/standard_wiki_document.html +++ b/wiki/frappe_wiki/print_format/standard_wiki_document/standard_wiki_document.html @@ -19,6 +19,11 @@ color: var(--gray-600); } + .wiki-document-eyebrow .sep { + margin: 0 0.4em; + color: var(--gray-400); + } + .wiki-document-title { margin: 0 0 1rem; } @@ -65,18 +70,45 @@ } .wiki-document-content blockquote { - margin: 1rem 0; - padding-left: 1rem; - border-left: 3px solid var(--gray-300); + /* Reset Bootstrap defaults (full border + 10px 20px padding) that Frappe's print CSS layers in. */ + border: 0; + border-left: 4px solid var(--gray-300); + padding: 0 0 0 1em; + margin: 1.6em 0; + font-size: inherit; + font-style: italic; + font-weight: 500; + color: var(--gray-800); + quotes: "\201C" "\201D" "\2018" "\2019"; + } + + .wiki-document-content blockquote p { + margin: 0.5em 0; + } + + .wiki-document-content blockquote p:first-of-type::before { + content: open-quote; + } + + .wiki-document-content blockquote p:last-of-type::after { + content: close-quote; } -{% set wiki_space = doc.get_wiki_space() %} +{% set breadcrumbs = doc.get_breadcrumbs() %} +{% set space = breadcrumbs.space %} +{# Skip the first ancestor — it's the wiki space's root group, already represented by the space name. #} +{% set ancestors = breadcrumbs.ancestors[1:] if breadcrumbs.ancestors else [] %}
- {% if wiki_space %} -
{{ wiki_space.space_name }}
+ {% if space or ancestors %} +
+ {% if space %}{{ space.space_name }}{% endif %} + {% for ancestor in ancestors %} + {{ ancestor.title }} + {% endfor %} +
{% endif %}

{{ doc.title }}

diff --git a/wiki/templates/wiki/document.html b/wiki/templates/wiki/document.html index 74b3e188..6b2c6e09 100644 --- a/wiki/templates/wiki/document.html +++ b/wiki/templates/wiki/document.html @@ -140,7 +140,6 @@

{% endmacro %} -{# Dropdown row that triggers downloadPage() and reflects the downloadInProgress state. #} +{# Dropdown row that triggers downloadPage() and reflects the downloadInProgress state. + Keeps the dropdown open while preparing the PDF so the loading state stays visible. #} {% macro download_action_item() %} -