This commit is contained in:
Marc Beninca 2025-01-28 21:41:03 +01:00
parent 93a8de72b6
commit 01c60e00fa
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
9 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 KiB

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.43.0 (0)
-->
<!-- Title: index Pages: 1 -->
<svg width="118pt" height="119pt"
viewBox="0.00 0.00 118.50 119.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 115)">
<title>index</title>
<!-- x -->
<g id="node1" class="node">
<title>x</title>
<ellipse fill="#303030" stroke="#00a000" stroke-width="2" cx="54" cy="-93" rx="18" ry="18"/>
<text text-anchor="middle" x="54" y="-89.3" font-family="DejaVu Sans" font-size="14.00" fill="#ffffff">X</text>
</g>
<!-- r -->
<g id="node2" class="node">
<title>r</title>
<ellipse fill="#303030" stroke="#d00000" stroke-width="2" cx="18" cy="-19.5" rx="18" ry="18"/>
<text text-anchor="middle" x="18" y="-15.8" font-family="DejaVu Sans" font-size="14.00" fill="#ffffff">R</text>
</g>
<!-- x&#45;&gt;r -->
<g id="edge4" class="edge">
<title>x&#45;&gt;r</title>
<path fill="none" stroke="#00a000" stroke-width="2" d="M46.19,-76.48C41.57,-67.3 35.61,-55.46 30.36,-45.04"/>
<polygon fill="#00a000" stroke="#00a000" stroke-width="2" points="33.42,-43.34 25.8,-35.98 27.17,-46.49 33.42,-43.34"/>
</g>
<!-- w -->
<g id="node3" class="node">
<title>w</title>
<ellipse fill="#303030" stroke="#0000ff" stroke-width="2" cx="91" cy="-19.5" rx="19.5" ry="19.5"/>
<text text-anchor="middle" x="91" y="-15.8" font-family="DejaVu Sans" font-size="14.00" fill="#ffffff">W</text>
</g>
<!-- r&#45;&gt;w -->
<g id="edge1" class="edge">
<title>r&#45;&gt;w</title>
<path fill="none" stroke="#d00000" stroke-width="2" d="M33.68,-10.39C43.86,-6.09 54.04,-4.95 64.22,-6.96"/>
<polygon fill="#d00000" stroke="#d00000" stroke-width="2" points="63.4,-10.36 73.98,-9.85 65.39,-3.65 63.4,-10.36"/>
</g>
<!-- w&#45;&gt;x -->
<g id="edge3" class="edge">
<title>w&#45;&gt;x</title>
<path fill="none" stroke="#0000ff" stroke-width="2" d="M82.34,-37.23C77.69,-46.22 71.86,-57.48 66.71,-67.44"/>
<polygon fill="#0000ff" stroke="#0000ff" stroke-width="2" points="63.52,-65.99 62.03,-76.48 69.73,-69.21 63.52,-65.99"/>
</g>
<!-- w&#45;&gt;r -->
<g id="edge2" class="edge">
<title>w&#45;&gt;r</title>
<path fill="none" stroke="#0000ff" stroke-width="2" d="M73.98,-29.15C63.8,-33.17 53.62,-34.04 43.44,-31.76"/>
<polygon fill="#0000ff" stroke="#0000ff" stroke-width="2" points="44.28,-28.35 33.68,-28.61 42.12,-35.01 44.28,-28.35"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

@ -0,0 +1,92 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Brief description of page.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title.</title>
<link rel="stylesheet" href="style/main.css">
<script src="script/debug.js" defer></script>
</head>
<body>
<header id="debug">
</header>
<header>
<img src="images/logo.svg" alt="Logo of the website.">
<nav aria-label="Main navigation">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="some.html">Some</a></li>
<li><a href="other.html">Other</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
</header>
<main>
<!-- Comment. -->
<h1>This is some long root heading</h1>
<div class="sectionless">
<p><span class="thing">It</span> is <strong>important</strong>.</p>
<p>Oh yeah, <em>sure</em></p>
</div>
<a href="relative/destination">Go elsewhere…</a>
<div class="columns">
<div>
First column to describe the associated
image of a debian landscape debanner.
</div>
<div>
<img src="images/debanner.jpeg" alt="Debian banner.">
</div>
</div>
<div class="wrapper">
<section>
<h2>A Heading</h2>
<ol>Ordered:
<li>Some item</li>
<li>Another item</li>
</ol>
<p>Another paragraph.</p>
</section>
<section>
<h2><span class="thing">Another</span> Heading</h2>
<ul>Unordered:
<li>Some item</li>
<li>Another item</li>
</ul>
<time>Time.</time>
</section>
<section>
<h2>Yet Another Heading</h2>
<h3>Sub Heading</h3>
<p>
1________11________21________31________41<br>
Yet another paragraph that is quite a bit longer than others.
</p>
</section>
</div>
</main>
<footer>
Footer.
</footer>
</body>
</html>

42
rtfd/public/web/index.rst Normal file
View file

@ -0,0 +1,42 @@
****
html
****
HTML
====
Index
-----
.. literalinclude:: index.html
:language: html
CSS
===
Debug
-----
.. literalinclude:: style/debug.css
:language: css
Reset
-----
.. literalinclude:: style/reset.css
:language: css
Main
----
.. literalinclude:: style/main.css
:language: css
JS
==
Debug
-----
.. literalinclude:: script/debug.js
:language: js

View file

@ -0,0 +1,10 @@
const body = document.body
const style = window.getComputedStyle(body)
const font_size = style.fontSize
const debug = document.getElementById("debug")
debug.innerHTML = `Font size = ${font_size}`

View file

@ -0,0 +1,5 @@
* {
border-color: magenta;
border-style: dashed;
border-width: 1px;
}

View file

@ -0,0 +1,162 @@
/*
16 1
17 1.0625
18 1.125
19 1.1875
20 1.25
21 1.3125
22 1.375
phone: 480 px
tablet: 768 px
laptop: 1024 px
desktop: 1366 px
block-size height
(border|padding)-block[-start|end]
(border|padding)-inline[-start|end]
inline-size width
margin-block vspace
*/
/**/
@import "debug.css";
/**/
@import "reset.css";
html {
}
body {
background-color: #111;
background-image: url("../images/logo.svg");
background-position: center;
background-size: cover;
color: #777;
font-family: monospace;
line-height: 1.125;
margin-block: 0;
margin-inline: auto;
max-inline-size: 160ch;
text-align: start;
}
header {
background-color: #300;
display: flex;
gap: 1em;
justify-content: space-between;
padding: 1em 2em;
}
.columns {
display: grid;
gap: 1em;
@media (width > 40rem) {
grid-template-columns: 1fr 2fr;
}
}
.sectionless {
background-color: #630;
padding: .5em 1em;
}
.sectionless .thing {
font-size: 1.5em;
}
.wrapper {
display: flex;
}
main {
}
h1, h2, h3, h4, h5, h6 {
background-color: #222;
}
h1 {
border-color: #fff;
border-radius: .25em;
border-style: solid;
border-width: .1em;
color: #f77;
font-size: 3rem;
text-align: center;
}
img {
display: block;
max-inline-size: 100%;
}
p {
background-color: #330;
}
section {
background-color: #033;
margin-block: 1em;
margin-inline: 1em;
max-inline-size: 40ch;
}
strong {
color: red;
}
ol, ul {
background-color: #303;
}
ol {
list-style: decimal;
}
ul {
list-style: disc;
}
li {
margin-block: .25em;
}
ul li::marker {
content: "×";
}
header nav a {
text-decoration: none;
}
header nav a:focus-visible,
header nav a:hover {
background-color: blue;
}
header nav ul {
display: flex;
font-size: 1.5rem;
gap: 1em;
list-style: none;
padding: 0;
}
header nav li::marker {
content: none;
}
a {
color: inherit;
}
a:visited {
}
a:focus-visible,
a:hover {
}
a:active {
}
h2 {
color: #f77;
}
footer {
background-color: #003;
padding: 1em 2em;
text-align: end;
}

View file

@ -0,0 +1,42 @@
*::after,
*::before,
* {
box-sizing: border-box;
}
* {
font: inherit;
/*
margin: 0;
padding: 0;
/**/
}
html {
color-scheme: dark light;
font-size: 1rem;
}
body {
hanging-punctuation: first last;
min-height: 100svh;
}
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;
}
figcaption,
li,
p {
max-width: 79ch;
text-wrap: pretty;
}
img,
picture,
svg,
video {
display: block;
max-width: 100%;
}