* [PATCH olang] docs: add mobile version
@ 2024-02-17 20:12 Carlos Maniero
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
0 siblings, 2 replies; 3+ messages in thread
From: Carlos Maniero @ 2024-02-17 20:12 UTC (permalink / raw)
To: ~johnnyrichard/olang-devel; +Cc: Carlos Maniero
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-17 20:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-17 20:12 [PATCH olang] docs: add mobile version Carlos Maniero
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
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