Commit 0e088bd2 authored by Topi Reinio's avatar Topi Reinio Committed by Topi Reiniö
Browse files

Doc: Simple offline CSS: Remove font-size declarations


Remove the font-size declarations from the CSS, rely on the default
sizes for each element. This solves two issues:

  - The user-configured font size (both in Assistant and Qt Creator
    Help) is correctly taken into use. Previously, adjusting the
    font size resulted in resizing fonts only for some of the text
    elements.

  - QTextBrowser backend seems to assume a DPI of 96 for all
    platforms, and font-sizes in 'pt' units are scaled accordingly.
    However, on OS X this resulted in font sizes too small to read.

Change-Id: Iaab3ad07e387912ad7391df982d4bfe7047f0b20
Task-number: QTBUG-51709
Task-number: QTBUG-51885
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: default avatarLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Showing with 1 addition and 15 deletions
body {
font-size: 10.5pt;
}
pre { pre {
background-color: #f0f0f0; background-color: #f0f0f0;
font-family: Courier, monospace; font-family: Courier, monospace;
font-size: 11pt;
font-weight: 600; font-weight: 600;
vertical-align: top; vertical-align: top;
margin: 15px 85px 15px 35px; margin: 15px 85px 15px 35px;
...@@ -41,7 +36,6 @@ a[href|="http://"], a[href|="https://"] { ...@@ -41,7 +36,6 @@ a[href|="http://"], a[href|="https://"] {
h1.title { h1.title {
margin-top: 30px; margin-top: 30px;
margin-left: 6px; margin-left: 6px;
font-size: 24pt;
padding: 6px; padding: 6px;
} }
...@@ -52,7 +46,6 @@ h2, p.h2 { ...@@ -52,7 +46,6 @@ h2, p.h2 {
} }
h3 { h3 {
font-size: 12pt;
margin: 30px 0px 30px 6px; margin: 30px 0px 30px 6px;
} }
...@@ -82,7 +75,6 @@ h3.fn, span.fn { ...@@ -82,7 +75,6 @@ h3.fn, span.fn {
padding: 5px; padding: 5px;
text-decoration: none; text-decoration: none;
font-weight: 400; font-weight: 400;
font-size: 12pt;
margin: 45px 0px 0px 6px; margin: 45px 0px 0px 6px;
} }
...@@ -107,7 +99,6 @@ table tr.odd { ...@@ -107,7 +99,6 @@ table tr.odd {
table.qmlname td { table.qmlname td {
padding: 0px; padding: 0px;
margin-left: 6px; margin-left: 6px;
font-size: 12pt;
} }
table.qmlname p .name, table.qmlname p .name,
...@@ -124,13 +115,8 @@ h3.fn .name, h3.fn .type { ...@@ -124,13 +115,8 @@ h3.fn .name, h3.fn .type {
margin-right: 6px; margin-right: 6px;
} }
tr > td > pre {
font-size: 10.5pt;
}
code { code {
font-family: Courier, monospace; font-family: Courier, monospace;
font-size: 12pt;
font-weight: 400; font-weight: 400;
} }
...@@ -167,7 +153,7 @@ td#buildversion { ...@@ -167,7 +153,7 @@ td#buildversion {
.footer, .footer p { .footer, .footer p {
padding: 5px 0px 5px 0px; padding: 5px 0px 5px 0px;
margin: 45px 15px 5px 15px; margin: 45px 15px 5px 15px;
font-size: 7.5pt; font-size: 8.5pt;
background-color: #cccccc; background-color: #cccccc;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment