Skip to content

Commit d4669ec

Browse files
author
p12
committed
Preprocess: add several css workaround rules
* Qt Assistant doesn't like the size of some elements being defined in pixels. Translate px into em in these cases. * Qt Assistant doesn't parse @font-face declarations. Add work-around rules to request fonts by font name. * Qt Assistant doesn't like the main content box using absolute positioning. It isn't needed in our case, thus can be overridden with static in our case.
1 parent 0cfbd1e commit d4669ec

File tree

1 file changed

+41
-3
lines changed

1 file changed

+41
-3
lines changed

preprocess-css.css

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,44 @@ div#cpp-content-base {
88
}
99

1010
div#content {
11-
background-color: white;
12-
box-shadow: 0 0 3px 3px #ddd;
13-
}
11+
margin: 0;
12+
position: static;
13+
width: 48.75em;
14+
}
15+
16+
html, body {
17+
font-family: "DejaVu Sans", arial, sans-serif;
18+
font-size: 1em;
19+
}
20+
21+
.t-navbar {
22+
height: 1.72em;
23+
}
24+
25+
tt,
26+
code,
27+
pre,
28+
.mw-geshi,
29+
#wpTextbox1 {
30+
font-family: "DejaVu Sans Mono", courier, monospace !important;
31+
}
32+
33+
.t-dcl-list-see-monospace > span {
34+
font-family: "DejaVu Sans Mono", courier, monospace;
35+
}
36+
37+
.t-sb-list-ln-table tr > td:first-child {
38+
font-family: "DejaVu Sans Mono", courier, monospace;
39+
}
40+
41+
.t-param-list-item > td:first-child {
42+
font-family: "DejaVu Sans Mono", courier, monospace;
43+
}
44+
45+
.t-dcl-member-div > div:first-child {
46+
font-family: "DejaVu Sans Mono", courier, monospace;
47+
}
48+
49+
.t-dcl-member-nobold-div > div:first-child {
50+
font-family: "DejaVu Sans", arial, sans-serif;
51+
}

0 commit comments

Comments
 (0)