site

Francesco Saccone's site content.
git clone git://git.francescosaccone.com/site
Log | Files | Refs | README | LICENSE

commit 55db9c8d66e62e28fd52f2bfa49a2b9df389eced
parent b660470c5aa248fcb61bbb07038d5fecef6531ca
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Tue, 25 Mar 2025 20:41:26 +0100

feat: add css style for stagit static git page generator

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Apublic/stagit.css | 130+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 130 insertions(+), 0 deletions(-)

diff --git a/public/stagit.css b/public/stagit.css @@ -0,0 +1,129 @@ +body { + background-color: #eeeeee; + color: #1b1b1b; + font-family: monospace; + font-size: 1rem; + line-height: 1.2; + margin: 0; + padding: 0; +} + +a { + color: inherit; + text-decoration: underline; + transition: 0.2s ease; +} + +a:hover { + opacity: 0.8; + text-decoration: underline; +} + +a.d, +a.h, +a.i, +a.line { + text-decoration: none; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-size: 1em; + margin: 0; +} + +img, +h1, +h2 { + vertical-align: middle; +} + +table thead td { + font-weight: bold; +} + +table td { + padding: 0 0.4em; +} + +#content table td { + vertical-align: top; + white-space: pre; +} + +#index tr td:nth-child(2), +#tags tr td:nth-child(3), +#branches tr td:nth-child(3), +#log tr td:nth-child(2) { + white-space: normal; +} + +td.num { + text-align: right; +} + +.desc { + color: #acacac; +} + +hr { + border: solid 0.1em; + border-color: #acacac; +} + +pre a.h { + color: #0000aa; +} + +.A, +span.i, +pre a.i { + color: #007700; +} + +.D, +span.d, +pre a.d { + color: #ee0000; +} + +pre a.h:hover, +pre a.i:hover, +pre a.d:hover { + text-decoration: none; +} + +@media (prefers-color-scheme: dark) { + body { + background-color: #111111; + color: #e4e4e4; + } + + .desc { + color: #535353; + } + + hr { + border-color: #535353; + } + + pre a.h { + color: #00cdcd; + } + + .A, + span.i, + pre a.i { + color: #00cd00; + } + + .D, + span.d, + pre a.d { + color: #cd0000; + } +} +\ No newline at end of file