1 |
On 2010-10-01, Renat Golubchyk <ragermany@×××.net> wrote: |
2 |
> Hi! |
3 |
> |
4 |
> On Thu, 30 Sep 2010 17:13:24 +0000 (UTC) Grant Edwards |
5 |
><grant.b.edwards@×××××.com> wrote: |
6 |
> |
7 |
>> I've noticed recently that the Gentoo handbook web pages are |
8 |
>> ridiculously wide. (It seems to me that they didn't used to be, but I |
9 |
>> wouldn't swear to that). |
10 |
|
11 |
Actually I think what's happened is that for some reason I have a much |
12 |
larger average width difference between the proportional font and the |
13 |
fixed font that I used to. |
14 |
|
15 |
> As fas as I can remember they've always been that wide. Anyway, since |
16 |
> Gentoo uses [1] GuideXML [2] for their documentation which gets |
17 |
> transformed into HTML you won't be able to provide a fix if you don't |
18 |
> know what XSLT rules the converter uses for transformation. |
19 |
> |
20 |
> Unfortunately Gentoo documentation uses table layout instead of |
21 |
> relying entirely on CSS. |
22 |
|
23 |
Yup, I was looking through the page source, and it didn't look like |
24 |
they were using CSS. I was pretty skeptical of CSS when it first |
25 |
started showing up, but I think I'm now a convert. It allows you do |
26 |
do things in a much more "LaTeX" like manner: when you're writing all |
27 |
you do is define what something is rather than how it's layed out. |
28 |
[Which is how HTML was indended to be used 15 years ago, but it rather |
29 |
quickly degenerated into the worlds crappiest page layout language |
30 |
which depended utterly on the assumption that everybody on the planet |
31 |
has the same size/resolution display and same OS/browser/version |
32 |
display as the page's author.] |
33 |
|
34 |
> Therefore it is not easy to make the docs beautiful for everybody |
35 |
> right now. But there is a simple workaround which you may find good |
36 |
> enough. Add the following CSS rule into your ~/.mozilla/<...your |
37 |
> profile...>/chrome/userContent.css or install the Stylish add-on [3] |
38 |
> and create a style with the rule: |
39 |
> |
40 |
> ------------------------------------------------------------- |
41 |
> @namespace url(http://www.w3.org/1999/xhtml); |
42 |
> |
43 |
> @-moz-document domain("gentoo.org") { |
44 |
> td.content p { |
45 |
> width: 40em; |
46 |
> } |
47 |
> } |
48 |
> ------------------------------------------------------------- |
49 |
> |
50 |
> Change "40em" to anything you like. |
51 |
|
52 |
Cool! Now, will I be able to find this bit of info the next time I'm |
53 |
doing an install... |
54 |
|
55 |
[It doesn't matter how many browsers I configure now, the next time |
56 |
I'm doing an install it won't be using one of them.] |
57 |
|
58 |
-- |
59 |
Grant |