Doc: Use a navigation separator in the simple offline template

As we cannot style the navigation elements freely with the restricted
version of CSS that QTextBrowser supports, we need to inject
separator elements between the prev/next page links.

This change adds a 'bullet' character wrapped in a <span> as a
separator. A rule is added to the standard offline CSS to hide the
separator as it's not needed there.

Change-Id: I13220a2a60e2d3063f94bc7dff0e4320d0bed4f6
Reviewed-by: Martin Smith <martin.smith@digia.com>
This commit is contained in:
Topi Reinio 2015-10-27 12:12:43 +01:00 committed by Topi Reiniö
parent c66b492ced
commit 616f690761
3 changed files with 8 additions and 4 deletions

View File

@ -25,6 +25,9 @@ HTML.postpostheader = \
"<div class=\"line\">\n" \ "<div class=\"line\">\n" \
"<div class=\"content mainContent\">\n" "<div class=\"content mainContent\">\n"
HTML.navigationseparator = \
"<span class=\"naviSeparator\"> &#9702; </span>\n"
# Add some padding around code snippets, as we cannot # Add some padding around code snippets, as we cannot
# currectly style them for QTextBrowser using only CSS. # currectly style them for QTextBrowser using only CSS.
codeindent = 2 codeindent = 2

View File

@ -136,11 +136,11 @@ code {
p.naviNextPrevious { p.naviNextPrevious {
text-align: right; text-align: right;
margin-right: 40px; margin-right: 20px;
} }
q.prevPage, a.nextPage { span.naviSeparator {
margin-left: 30px; white-space: pre;
} }
.toc h3 { .toc h3 {

View File

@ -192,6 +192,7 @@ Top navigation
margin-left: 30px; margin-left: 30px;
} }
.naviSeparator { display: none }
/* /*
----------- -----------
footer and license footer and license