From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1P2qNl-0000Us-L5 for garchives@archives.gentoo.org; Mon, 04 Oct 2010 19:07:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04916E0793 for ; Mon, 4 Oct 2010 19:07:24 +0000 (UTC) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by pigeon.gentoo.org (Postfix) with ESMTP id ACD13E06BA for ; Mon, 4 Oct 2010 18:27:56 +0000 (UTC) Received: by eyf6 with SMTP id 6so2734833eyf.40 for ; Mon, 04 Oct 2010 11:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=JsdTKCdYCnA+qSiJsX3eVnRwdHqc2PXIpyXsiHxLj78=; b=HsULwU6cnfg7GkLVoHLSr6Uw9226vGTbtLF+mdynfUrlODDMUn5POTO953un3MxI1M q3reRccSZAAhnNHZM2n4gCVNUYebyNlDfYRv+g/yLtY0CuKN7/7m0sCd/vXc/64+J5aI jFf1/x1OKloRgTpHV+qvljkwLuILqEVEjH6nU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AQVPwqxQQoj4RE9v1LUOh1d14g2utw3SAqppv2dR+CoNDWKKrbGHGj6xBYEYM47pKs TDkGvRPdP9vHPweRrWrlb5fjaXDHW3ufbl0pRDqWjOPbsUrzBbGIjKRpSV6w8WqSn96H 1LfZTd8suxc2v7IFrR+EmnQeEQyUCy6YRXaM8= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.216.64.79 with SMTP id b57mr5776116wed.112.1286216875959; Mon, 04 Oct 2010 11:27:55 -0700 (PDT) Received: by 10.216.160.74 with HTTP; Mon, 4 Oct 2010 11:27:55 -0700 (PDT) In-Reply-To: References: <20101002001821.4dcadddc@mating-tux> Date: Mon, 4 Oct 2010 14:27:55 -0400 Message-ID: Subject: Re: [gentoo-user] ridiculously wide handbook pages From: Derek Tracy To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=000e0ce0d038fee7830491ceb3c9 X-Archives-Salt: 3e1cce97-7bde-4c91-8594-1ec588df7c70 X-Archives-Hash: 3ee55bfe7ce4d5945c2d6128c9bae55e --000e0ce0d038fee7830491ceb3c9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2010/10/4 Fatih T=C3=BCmen > > On Sat, Oct 2, 2010 at 1:18 AM, Renat Golubchyk wrote= : > > Unfortunately Gentoo documentation uses table layout instead of > > relying entirely on CSS. Therefore it is not easy to make the docs > > beautiful for everybody right now. But there is a simple workaround > > which you may find good enough. Add the following CSS rule into your > > ~/.mozilla/<...your profile...>/chrome/userContent.css or install the > > Stylish add-on [3] and create a style with the rule: > > > > ------------------------------------------------------------- > > @namespace url(http://www.w3.org/1999/xhtml); > > > > @-moz-document domain("gentoo.org") { > > td.content p { > > width: 40em; > > } > > } > > ------------------------------------------------------------- > > > > Change "40em" to anything you like. > > > > > > Thank you very much for this tip. I use chromium and fortunately there > exists the Stylish chrome extension. I got it working with the code > you gave by just snipping the moz-document line. > > When I inspect the element and check the page source I understand > where td.content and p comes from but could you explain what 'em' > suffix to 40 means please? > > > -- > Fatih > > The "em" is just a length measurement. You can read more about it here: http://www.w3.org/TR/CSS2/syndata.html#length-units --000e0ce0d038fee7830491ceb3c9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2010/10/4 Fatih T=C3=BCmen <fthtmn+gentoo@gmail.com>
On Sat, Oct 2, 2010 at 1:18 AM, Renat Golubchyk <ragermany@gmx.net> wrote:
> Unfortunately Gentoo documentation uses table layout instead of
> relying entirely on CSS. Therefore it is not easy to make the docs
> beautiful for everybody right now. But there is a simple workaround > which you may find good enough. Add the following CSS rule into your > ~/.mozilla/<...your profile...>/chrome/userContent.css or instal= l the
> Stylish add-on [3] and create a style with the rule:
>
> -------------------------------------------------------------
> @namespace url(http://www.w3.org/1999/xhtml);
>
> @-moz-document domain("gentoo.org") {
> =C2=A0td.content p {
> =C2=A0 =C2=A0width: 40em;
> =C2=A0}
> }
> -------------------------------------------------------------
>
> Change "40em" to anything you like.
>
>

Thank you very much for this tip. I use chromium and fortunately there
exists the Stylish chrome extension. I got it working with the code
you gave by just snipping the moz-document line.

When I inspect the element and check the page source I understand
where td.content and p comes from but could you explain what 'em' suffix to 40 means please?


--
=C2=A0 =C2=A0Fatih


The "em" is just a length measureme= nt.=C2=A0

You can read more about it here: http://www.w3.org/TR/CSS2/syndata.h= tml#length-units
--000e0ce0d038fee7830491ceb3c9--