Files
makronix/www/style.css
T
lotherk a3df74a5b3 docs: screenshots in the desktop chapters, page numbers and outline in the PDF
The MCDE chapter gets the desktop, System Settings, file manager and
terminal figures; the Information Manager chapter gets its book list.
The system HTML embeds the PNGs as data URIs, the website form points to
www/img/, the manual pages keep the caption and the dtinfo book keeps
the caption (the CDE DTD could carry TIFFs, but the library stays text).

The PDF gets a page-number overlay (gs + qpdf) and a chapter outline
(mutool); mutool clean normalises the file so qpdf and readers see the
outline.  docs/guide/check.sh checks outline and page numbers when the
tools are installed; tools/test-tools.sh copies www/img for the site
check and stays at 33 ok.
2026-11-16 10:22:20 +00:00

290 lines
5.7 KiB
CSS

/* License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. */
/*
* style.css -- makronix.hiddenbox.org
*
* The colours are the release palette, Camouflage (Camouflage.dp of CDE):
* background #acbeb4, panels #8e8e77 and #6e7d76, dark #4e6b65, accent #907b7b.
* Bevels as Motif draws them: light top and left, dark bottom and right.
* CSS 2.1 only; the pages are HTML 4.01 Strict.
*/
body {
margin: 0;
padding: 0;
background: #acbeb4;
color: #1a1a1a;
font-family: "Hack", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
font-size: 14px;
line-height: 1.5;
}
a:link { color: #2e4a44; }
a:visited { color: #5a4848; }
a:hover { color: #000000; background: #d6e0da; }
/* a Motif window: title bar, frame, bevel */
.window {
margin: 16px auto;
width: 860px;
background: #c5d2cb;
border-top: 2px solid #e4ece7;
border-left: 2px solid #e4ece7;
border-bottom: 2px solid #5f6f68;
border-right: 2px solid #5f6f68;
}
.titlebar {
margin: 3px;
padding: 2px 8px;
background: #4e6b65;
color: #ffffff;
text-align: center;
font-weight: bold;
border-top: 1px solid #7f9b94;
border-left: 1px solid #7f9b94;
border-bottom: 1px solid #2c3e3a;
border-right: 1px solid #2c3e3a;
}
/* the menu bar of the window */
.menubar {
margin: 0 3px;
padding: 3px 4px;
background: #c5d2cb;
border-bottom: 1px solid #8e9c95;
}
.menubar a {
padding: 2px 10px;
text-decoration: none;
color: #1a1a1a;
}
.menubar a:hover, .menubar a.here {
background: #8e8e77;
color: #ffffff;
border-top: 1px solid #b7b7a3;
border-left: 1px solid #b7b7a3;
border-bottom: 1px solid #5d5d4c;
border-right: 1px solid #5d5d4c;
}
.content {
margin: 6px;
padding: 12px 22px;
background: #dfe7e2;
border-top: 2px solid #8e9c95;
border-left: 2px solid #8e9c95;
border-bottom: 2px solid #f4f8f6;
border-right: 2px solid #f4f8f6;
}
.logo {
text-align: center;
margin: 6px 0 12px 0;
}
.logo img {
width: 570px;
height: 210px;
border: 0;
}
h1, h2, h3 {
font-family: "Hack", monospace;
color: #2e4a44;
}
h1 { font-size: 22px; margin: 14px 0 6px 0; }
h2 { font-size: 17px; margin: 22px 0 6px 0; border-bottom: 2px solid #6e7d76; }
h3 { font-size: 15px; margin: 16px 0 4px 0; }
/* a raised panel, as a Motif frame with shadow out */
.panel {
margin: 10px 0;
padding: 6px 12px;
background: #c5d2cb;
border-top: 2px solid #f4f8f6;
border-left: 2px solid #f4f8f6;
border-bottom: 2px solid #6e7d76;
border-right: 2px solid #6e7d76;
}
.note {
margin: 10px 0;
padding: 6px 12px;
background: #e9dcc9;
border-left: 6px solid #907b7b;
}
pre, code {
font-family: "Hack", monospace;
font-size: 13px;
}
pre {
margin: 8px 0;
padding: 8px 12px;
background: #1f2a27;
color: #d6e0da;
border-top: 2px solid #4e6b65;
border-left: 2px solid #4e6b65;
border-bottom: 2px solid #e4ece7;
border-right: 2px solid #e4ece7;
overflow: auto;
}
table.media {
border-collapse: collapse;
width: 100%;
margin: 8px 0;
}
table.media th {
background: #6e7d76;
color: #ffffff;
text-align: left;
padding: 4px 8px;
}
table.media td {
padding: 4px 8px;
border-bottom: 1px solid #a9b8b0;
vertical-align: top;
}
table.media td.size { text-align: right; white-space: nowrap; }
.shot {
text-align: center;
margin: 12px 0;
}
.shot img {
border-top: 2px solid #f4f8f6;
border-left: 2px solid #f4f8f6;
border-bottom: 2px solid #4e6b65;
border-right: 2px solid #4e6b65;
}
.caption { font-size: 12px; color: #4e6b65; }
.footer {
margin: 0 6px 6px 6px;
padding: 4px 10px;
font-size: 12px;
color: #2e4a44;
background: #c5d2cb;
border-top: 1px solid #8e9c95;
}
/* ------------------------------------------------------------------ guide */
/* guide.html -- The Makronix Guide, generated from docs/guide by
* `sh docs/guide/build.sh web`. The page keeps the site window; these rules
* only give the long text a readable rhythm and a Motif contents panel. */
.guide-head {
text-align: center;
margin: 4px 0 16px 0;
}
.guide-head img {
width: 380px;
height: 140px;
border: 0;
}
.guide-title {
margin: 8px 0 2px 0;
font-size: 26px;
}
.guide-subtitle {
margin: 0;
color: #2e4a44;
}
.guide-edition {
margin: 2px 0 12px 0;
font-size: 12px;
color: #907b7b;
}
.guide-toc {
margin: 14px 0 18px 0;
padding: 8px 14px;
background: #c5d2cb;
border-top: 2px solid #f4f8f6;
border-left: 2px solid #f4f8f6;
border-bottom: 2px solid #6e7d76;
border-right: 2px solid #6e7d76;
}
.guide-toc h2 {
margin: 0 0 6px 0;
}
.guide-toc ul {
margin: 0 0 0 18px;
padding: 0;
list-style: none;
font-size: 13px;
}
.guide-toc > ul { margin-left: 0; }
.guide-toc li { margin: 2px 0; }
.guide-toc > ul > li { font-weight: bold; margin-top: 6px; }
.guide-toc a { text-decoration: none; }
.guide h1 { margin-top: 24px; }
.guide p { margin: 8px 0; }
.guide ul, .guide ol { margin: 6px 0 8px 22px; padding: 0; }
.guide li { margin: 2px 0; }
.guide code {
background: #c5d2cb;
padding: 1px 3px;
}
.guide pre code {
background: transparent;
padding: 0;
}
.guide blockquote {
margin: 8px 0 8px 18px;
padding: 4px 12px;
border-left: 6px solid #907b7b;
background: #e9dcc9;
}
.guide dl { margin: 8px 0; }
.guide dt { font-weight: bold; color: #2e4a44; }
.guide dd { margin: 0 0 6px 20px; }
.guide hr { border: 0; border-top: 2px solid #6e7d76; margin: 16px 0; }
.guide a { text-decoration: none; }
.guide a:hover { text-decoration: underline; }
/* figures in the guide page (HTML 4 writer: div.float + div.figcaption) */
.guide .float {
margin: 14px 0;
text-align: center;
page-break-inside: avoid;
}
.guide .float img {
max-width: 100%;
height: auto;
border-top: 2px solid #f4f8f6;
border-left: 2px solid #f4f8f6;
border-bottom: 2px solid #6e7d76;
border-right: 2px solid #6e7d76;
}
.guide .figcaption {
margin-top: 4px;
font-size: 12px;
color: #4e6b65;
}