public inbox for gcc-cvs-wwwdocs@sourceware.org
help / color / mirror / Atom feed
From: Gerald Pfeifer <gerald@sourceware.org>
To: gcc-cvs-wwwdocs@gcc.gnu.org
Subject: gcc-wwwdocs branch master updated. 16a56d3804f5ba43d517427cdab74f0bf017de80
Date: Fri, 24 Feb 2023 00:23:44 +0000 (GMT)	[thread overview]
Message-ID: <20230224002344.62995385B525@sourceware.org> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4403 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gcc-wwwdocs".

The branch, master has been updated
       via  16a56d3804f5ba43d517427cdab74f0bf017de80 (commit)
      from  1ffb91a0903b3c9e9157e0c0f7ab741fbaa321c9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 16a56d3804f5ba43d517427cdab74f0bf017de80
Author: Arsen Arsenović <arsen@aarsen.me>
Date:   Fri Jan 27 01:18:36 2023 +0100

    Add CSS for HTML versions of texinfo manuals

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ć <arsen@aarsen.me>
+*/
+@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
+       <body> 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: */

-----------------------------------------------------------------------

Summary of changes:
 htdocs/texinfo-manuals.css | 129 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 129 insertions(+)
 create mode 100644 htdocs/texinfo-manuals.css


hooks/post-receive
-- 
gcc-wwwdocs

                 reply	other threads:[~2023-02-24  0:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230224002344.62995385B525@sourceware.org \
    --to=gerald@sourceware.org \
    --cc=gcc-cvs-wwwdocs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).