From: Carlos Maniero <carlos@maniero.me>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Carlos Maniero <carlos@maniero.me>
Subject: [PATCH olang] docs: add mobile version
Date: Sat, 17 Feb 2024 17:12:12 -0300 [thread overview]
Message-ID: <20240217201212.3497252-1-carlos@maniero.me> (raw)
Signed-off-by: Carlos Maniero <carlos@maniero.me>
---
docs/template.html | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/docs/template.html b/docs/template.html
index 758b4c4..ecc92a2 100644
--- a/docs/template.html
+++ b/docs/template.html
@@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="date" content='$date-meta$'>
<title>$title$ | olang</title>
<style>
@@ -23,7 +24,7 @@
font-family: monospace;
font-size: 1.1rem;
margin: 0;
- padding: 0;
+ padding: 0 40px;
}
a {
color: var(--link-color);
@@ -37,11 +38,15 @@
}
article {
line-height: 1.75rem;
+ overflow: hidden;
}
+
pre {
background: rgba(0,0,0, 0.75);
color: white;
padding: 10px;
+ max-width: 100%;
+ overflow: auto;
}
</style>
</head>
@@ -51,14 +56,13 @@
<nav>
<a href="/">Index</a> |
<a href="/pages/getting-started.html">Getting started (WIP)</a> |
- <a href="/pages/hacking.html">Hacking (WIP)</a> |
+ <a href="/pages/hacking.html">Hacking</a> |
<a href="https://sr.ht/~johnnyrichard/olang/sources" target="_blank">Sources ↗</a> |
<a href="https://sr.ht/~johnnyrichard/olang/lists" target="_blank">Mailing list ↗</a>
</nav>
</header>
<article>
<h1>$title$</h1>
-
$toc$
$body$
--
2.34.1
next reply other threads:[~2024-02-17 20:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 20:12 Carlos Maniero [this message]
2024-02-17 20:17 ` [olang/patches/.build.yml] build success builds.sr.ht
2024-02-17 21:27 ` [PATCH olang] docs: add mobile version Johnny Richard
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=20240217201212.3497252-1-carlos@maniero.me \
--to=carlos@maniero.me \
--cc=~johnnyrichard/olang-devel@lists.sr.ht \
/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.
Code repositories for project(s) associated with this public inbox
https://git.johnnyrichard.com/olang.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox