From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by sourceware.org (Postfix) with ESMTPS id 16FCA3858033 for ; Fri, 27 Jan 2023 00:32:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 16FCA3858033 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=aarsen.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aarsen.me Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4P2z6x0vzQz9sR0; Fri, 27 Jan 2023 01:32:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1674779545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MPK/CDfHq070769CG7yu9Wc+AB0lNo9M8v/W7uKcbmI=; b=ZgYPPAJC2wwYdjUd6L3idY4qLZw/YsHDG0KYc/k6nX52F9sATkjrbK5D82EnqDtpg+GTB/ P4lSMipKnNcahHXZwjyDQQhNKQ0hLWznNiYxTXCHKSzNXaODr+T1naxleljHPq8dDjl3Q0 LrmTZejxCi1PU+Ksda1a+M33dxm9618Ub1q7jz1G+7VeiyKUa614BKSs5c7PeNeUsP3sfI u1drGoJbYfqEzuhHvfD3cP7TZIB3c59ReI5Zw8Nj8op+p1bGYpkIDT6cL936Z/TY2WmD1J o9fmIEaanY0QqrNyN6aS0MUa6VKy71cYkgc6/9z9jDAlDLhvu1yR7iGBW5o7wQ== From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= To: gcc-patches@gcc.gnu.org Cc: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Subject: [wwwdocs] Add revised Texinfo manual CSS Date: Fri, 27 Jan 2023 01:18:36 +0100 Message-Id: <20230127003224.717347-1-arsen@aarsen.me> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4P2z6x0vzQz9sR0 X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --- htdocs/texinfo-manuals.css | 129 +++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 htdocs/texinfo-manuals.css diff --git a/htdocs/texinfo-manuals.css b/htdocs/texinfo-manuals.css new file mode 100644 index 00000000..a7e0fc4e --- /dev/null +++ b/htdocs/texinfo-manuals.css @@ -0,0 +1,129 @@ +/* Texinfo documentation stylesheet. + Inspired by the Gnulib manual, 2023-01-26. + + Arsen Arsenović +*/ +@import url('gcc.css'); + +:root { + --contents-width-max: 60em; + + --backdrop: #e7e7e7; + --contents-backdrop: #ffffff; + + /* Background for [small]example environments. */ + --example-background: #f2f2f2; + + /* Color of thin lines used to "define" elements (e.g. @examples or the + element. */ + --defining-border: #c2c2c2; + + --table-color-even: var(--contents-backdrop); + --table-color-odd: var(--backdrop); +} + +html { + margin: 0; + padding: 0; + background-color: var(--backdrop); + line-height: 1.3; +} + +body { + /* Center whole body. */ + margin: 0 auto; + padding: 1em 3px; + /* And limit its size to between 75% of the screen and 130em. */ + max-width: min(max(75vw, var(--contents-width-max)), 130em); + min-height: 100vh; + background-color: var(--contents-backdrop); + border: 1px solid var(--defining-border); +} + +/* XXX: This should preferably not hardcode 50em, but take 66% of + --contents-width-max or such, but CSS env() is not standardized yet, and + that variable would not be in scope here. Should this code grow large + enough to demand it, I'll fix this via SCSS or some similar preprocessor. +*/ +@media only screen and (min-width: 50em) { + body { + /* Pad out edges slightly on big screens only. */ + padding: 1em 3em; + } + + div.example, + div.smallexample { + margin-left: 1.1em; + } +} + +@media (hover: none) { + /* Presume the user will have difficulty hovering. Make clickable anchors + visible. + */ + a.copiable-link { + visibility: visible; + } +} + +/* Undo some previous styling from gcc.css, that is used elsewhere. */ +table * { + border: none; +} + +/* And remove implicit table gaps. */ +table { + border-collapse: collapse; +} + +/* Add helpful highlighting to table rows. */ +table > tbody > tr:nth-child(odd) { + background-color: var(--table-color-odd); +} +table > tbody > tr:nth-child(even) { + background-color: var(--table-color-even); +} + +/* ... except for indices. This one is a bit hacky... */ +div.printindex tr { + background-color: unset !important; +} + +/* Spruce up examples. */ +div.example, +div.smallexample { + margin-left: 2.2em; + border-radius: 0.3em; + border: 1px solid var(--defining-border); + background-color: var(--example-background); + /* Slightly indent. */ + padding: 0 1em; + /* Show a scroll bar instead of breaking page layout. */ + overflow: auto; +} + +/* Highlight toplevels in tables of contents. */ +.contents li, +.shortcontents li { + font-weight: bold; +} +.contents li li, +.shortcontents li li { + font-weight: normal; +} + +/* Make @quotation more noticeable. */ +blockquote { + border-left: solid 0.5em red; + padding-left: 1em; + margin-left: 0; +} + +/* Spacing around a heading ought to be asymmetric. */ +h1, h2, h3, h4, h5, h6 { + margin: 0.5em 0 0.7em 0; +} + +/* Local Variables: */ +/* indent-tabs-mode: nil */ +/* End: */ -- 2.39.1