| 1 |
# Specify a custom CSS file used by this template |
| 2 |
HTML.stylesheets += template/style/offline-simple.css |
| 3 |
qhp.extraFiles += style/offline-simple.css |
| 4 |
|
| 5 |
# Override the header styles |
| 6 |
HTML.headerstyles = \ |
| 7 |
" <link rel=\"stylesheet\" type=\"text/css\" href=\"style/offline-simple.css\" />\n" \ |
| 8 |
" <script type=\"text/javascript\">\n" \ |
| 9 |
" document.getElementsByTagName(\"link\").item(0).setAttribute(\"href\", \"style/offline.css\");\n" \ |
| 10 |
" // loading style sheet breaks anchors that were jumped to before\n" \ |
| 11 |
" // so force jumping to anchor again\n" \ |
| 12 |
" setTimeout(function() {\n" \ |
| 13 |
" var anchor = location.hash;\n" \ |
| 14 |
" // need to jump to different anchor first (e.g. none)\n" \ |
| 15 |
" location.hash = \"#\";\n" \ |
| 16 |
" setTimeout(function() {\n" \ |
| 17 |
" location.hash = anchor;\n" \ |
| 18 |
" }, 0);\n" \ |
| 19 |
" }, 0);\n" \ |
| 20 |
" </script>\n" |
| 21 |
|
| 22 |
HTML.navigationseparator = \ |
| 23 |
"<span class=\"naviSeparator\"> ◦ </span>\n" |
| 24 |
|
| 25 |
# Add some padding around code snippets, as we cannot |
| 26 |
# currectly style them for QTextBrowser using only CSS. |
| 27 |
codeindent = 1 |
| 28 |
codeprefix = "\n" |
| 29 |
codesuffix = "\n" |