summaryrefslogtreecommitdiffstats
path: root/doc/global/template
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2015-08-31 12:13:01 +0200
committerTopi Reiniƶ <topi.reinio@digia.com>2015-10-19 08:22:19 +0000
commit06d90c14b4571184c4ae67067ead9292c94ac026 (patch)
tree4040e9d34ce57c3749f4dc8f6f146d242e2b043a /doc/global/template
parentafcc26619f642baee9a09151dc8dae5ef2cb9e2e (diff)
Doc: A simplified style for rendering docs with QTextBrowser
Add a new documentation template, with simplified CSS rules that work better when using QTextBrowser as a backend for Qt Assistant or Qt Creator Help. Select this new template by default for offline documentation builds, but keep the old offline template as part of the template files; use JavaScript to switch to the 'standard' CSS when the generated files are viewed with a web browser. Task-number: QTBUG-48322 Change-Id: Ib197896200bb482935f6e9f3a38976133a1e804d Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Diffstat (limited to 'doc/global/template')
-rw-r--r--doc/global/template/style/offline-simple.css176
1 files changed, 176 insertions, 0 deletions
diff --git a/doc/global/template/style/offline-simple.css b/doc/global/template/style/offline-simple.css
new file mode 100644
index 0000000000..3e1c527761
--- /dev/null
+++ b/doc/global/template/style/offline-simple.css
@@ -0,0 +1,176 @@
+body {
+ font-size: 14px;
+}
+
+pre {
+ background-color: #f0f0f0;
+ font-family: Courier, monospace;
+ font-size: 15px;
+ font-weight: 600;
+ vertical-align: top;
+ margin: 15px 85px 15px 35px;
+ padding: 25px;
+ width: 90%;
+ overflow-x:auto;
+}
+
+pre a[href] {
+ color: #5caa15;
+}
+
+p {
+ width: 70%;
+ margin: 15px 0px 10px 15px;
+}
+
+table p {
+ margin: 0px;
+ padding: 0px;
+}
+
+a[href] {
+ color: #007330;
+ text-decoration: none;
+}
+
+/* Different color for ext. links */
+a[href|="http://"], a[href|="https://"] {
+ color: #6bb8db;
+}
+
+h1.title {
+ margin-top: 30px;
+ margin-left: 6px;
+ font-size: 32px;
+ padding: 6px;
+}
+
+h2, p.h2 {
+ background-color: #F2F3F4;
+ padding: 4px;
+ margin: 30px 0px 20px 10px;
+}
+
+h3 {
+ font-size: 16px;
+ margin: 30px 0px 30px 6px;
+}
+
+ul, ol {
+ margin-top: 4px;
+ margin-bottom: 0px;
+}
+
+ul li, ol li {
+ margin-bottom: 8px;
+}
+
+.mainContent li.level2 {
+ margin-left: 16px;
+}
+
+.rightAlign {
+ text-align: right;
+}
+
+h3.fn, span.fn {
+ border-width: 3px;
+ border-style: solid;
+ border-color: #aaaaaa;
+ background-color: #eeeeee;
+ word-spacing: 3px;
+ padding: 5px;
+ text-decoration: none;
+ font-weight: 400;
+ font-size: 16px;
+ margin: 45px 0px 0px 6px;
+}
+
+table {
+ max-width: 80%;
+ padding: 15px 45px 15px 15px;
+}
+
+table th {
+ text-align: left;
+ padding: 8px;
+}
+
+table td {
+ padding: 6px 10px 6px 10px;
+}
+
+table tr.odd {
+ background-color: #eeeeee;
+}
+
+table.qmlname td {
+ padding: 0px;
+ margin-left: 6px;
+ font-size: 16px;
+}
+
+table.qmlname p .name,
+h3.fn .name, h3.fn .type {
+ font-weight: bold;
+}
+
+.context h3.fn {
+ font-weight: 400;
+}
+
+.qmlreadonly, .qmldefault {
+ font-family: Courier, monospace;
+ margin-right: 6px;
+}
+
+tr > td > pre {
+ font-size: 14px;
+}
+
+code {
+ font-family: Courier, monospace;
+ font-size: 16px;
+ font-weight: 400;
+}
+
+p.naviNextPrevious {
+ text-align: right;
+ margin-right: 40px;
+}
+
+q.prevPage, a.nextPage {
+ margin-left: 30px;
+ }
+
+.toc h3 {
+ margin: 0px 0px 10px 6px;
+}
+
+.toc ul {
+ list-style-type: none;
+}
+
+.navigationbar table {
+ padding: 0;
+ margin: 0;
+}
+
+.navigationbar table tr {
+ background-color: #eeeeee;
+}
+
+td#buildversion {
+ background-color: #ffffff;
+}
+
+.footer, .footer p {
+ padding: 5px 0px 5px 0px;
+ margin: 45px 15px 5px 15px;
+ font-size: 10px;
+ background-color: #cccccc;
+}
+
+.footer p {
+ margin: 0px;
+}