monitoring-plugins/doc/developer-guidelines.css
kibruh 750d6286df docs: migrate guidelines build to DocBook XML
Switch documentation generation to use developer-guidelines.xml and
xsltproc, and include the dedicated stylesheet in rendered HTML.

This removes the SGML-only build path while keeping output generation
simple and reproducible with installed DocBook XML tooling.
2026-04-22 19:44:14 +02:00

108 lines
2.2 KiB
CSS

:root {
--bg: #ffffff;
--text: #2d3436;
--accent: #0984e3;
--code-bg: #f5f6fa;
--border: #dfe6e9;
--max-width: 800px;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #1e272e;
--text: #dcdde1;
--accent: #45aaf2;
--code-bg: #2f3640;
--border: #353b48;
}
}
p.literallayout,
.literallayout {
display: block;
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
/* white-space: pre; *//* This is the magic: preserves spaces and line breaks */
overflow-x: auto; /* Adds a scrollbar if the line is too long */
background: var(--code-bg, #f5f6fa);
padding: 1rem;
margin: 1.5rem 0;
border-radius: 4px;
border: 1px solid var(--border, #dfe6e9);
font-size: 0.9em;
line-height: 1.45; /* Slightly tighter line height for code-like feel */
color: var(--text, #2d3436);
}
html {
font-family: system-ui, -apple-system, sans-serif;
line-height: 1.6;
background: var(--bg);
color: var(--text);
}
body {
max-width: var(--max-width);
margin: 0 auto;
padding: 2rem 1.5rem;
}
/* Typography */
h1, h2, h3, h4 {
line-height: 1.2;
margin-top: 2rem;
}
h1 { font-size: 2.5rem; border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; }
h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Code and Blocks */
pre, code {
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
background: var(--code-bg);
border-radius: 4px;
}
code { padding: 0.2rem 0.4rem; font-size: 0.9em; }
pre {
padding: 1rem;
overflow-x: auto;
border: 1px solid var(--border);
}
pre code { padding: 0; background: none; }
/* Layout Elements */
blockquote {
margin: 2rem 0;
padding: 0.5rem 1rem;
border-left: 4px solid var(--accent);
background: var(--code-bg);
font-style: italic;
}
table {
width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
}
th, td {
text-align: left;
padding: 0.75rem;
border-bottom: 1px solid var(--border);
}
img {
max-width: 100%;
height: auto;
border-radius: 8px;
}
hr {
border: 0;
border-top: 1px solid var(--border);
margin: 2rem 0;
}