wobblyhead hg > wobbly_ssg
diff example/tpl/style.css @ 0:71dd8d58a8e5 default tip
cleaned up re-init from net_wobblyhead_www project tooling
| author | ark |
|---|---|
| date | 2026-10-22 14:59 +0200 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example/tpl/style.css Thu Oct 22 14:59:43 2026 +0200 @@ -0,0 +1,220 @@ +/* browser defaults, adjusted only where prose, tables and images need it. + light and dark schemes come from the browser; all shades are derived from + the text colour. */ + +:root { + color-scheme: light dark; + + --rule: color-mix(in srgb, currentColor 30%, transparent); + --muted: color-mix(in srgb, currentColor 65%, transparent); + --wash: color-mix(in srgb, currentColor 6%, transparent); + --measure: 42em; +} + +body { + max-width: var(--measure); + margin: 0 auto; + padding: 2em 1em 3em; + line-height: 1.5; + /* keep long urls from widening the column */ + overflow-wrap: break-word; +} + +/* masthead ---------------------------------------------------------------- */ + +.site-head { + padding-bottom: 0.6em; + border-bottom: 1px solid var(--rule); +} + +.site-title { + margin: 0; + font-weight: bold; +} + +.site-title a { + color: inherit; + text-decoration: none; +} + +.site-nav { + margin: 0; + padding: 0; + list-style: none; +} + +.site-nav li { + display: inline; +} + +.site-nav li + li::before { + content: " | "; +} + +/* page head --------------------------------------------------------------- */ + +h1 { + line-height: 1.2; + margin: 1.2em 0 0; +} + +.subtitle { + margin: 0.3em 0 0; + font-style: italic; +} + +.timeframe { + margin: 0.3em 0 0; + color: var(--muted); +} + +/* tags and the creation date sit above the title, aligned right */ +.tags, .created { + margin: 1.6em 0 0; + padding: 0; + list-style: none; + font-size: 0.85em; + text-align: right; +} + +.tags + .created, +.tags + h1, +.created + h1 { + margin-top: 0.2em; +} + +.tags li { + display: inline; +} + +.tags li:not(:last-child)::after { + content: ","; +} + +/* repository and crossref links, below the text and any floated image */ +.page-link { + clear: both; +} + +.updated { + clear: both; + margin-top: 2em; + font-size: 0.85em; + text-align: right; + color: var(--muted); +} + +/* body -------------------------------------------------------------------- */ + +dt { font-weight: bold; } +dd { margin-bottom: 0.6em; } + +pre { + overflow-x: auto; + padding: 0.6em 0.8em; + background: var(--wash); +} + +blockquote { + margin-left: 0; + padding-left: 1em; + border-left: 2px solid var(--rule); +} + +/* tables shrink and wrap; the generator emits no wrapper to scroll in */ +table { + width: 100%; + border-collapse: collapse; +} + +th, td { + padding: 0.3em 0.6em 0.3em 0; + text-align: left; + vertical-align: top; + border-bottom: 1px solid var(--rule); +} + +th { border-bottom-width: 2px; } + +/* images ------------------------------------------------------------------ */ + +/* local images have width and height attributes */ +img { + max-width: 100%; + height: auto; +} + +/* floats excluded: this rule would reset their side margins */ +p > img:only-child:not(.left):not(.right) { + display: block; + margin: 1.4em 0; +} + +.right, .left { + max-width: 50%; + margin-bottom: 0.6em; +} + +.right { float: right; margin-left: 1.4em; } +.left { float: left; margin-right: 1.4em; } + +figure { + margin: 0; +} + +figure:not(.left):not(.right) { + margin: 1.4em 0; +} + +figure img { + display: block; +} + +figcaption { + margin-top: 0.4em; + font-size: 0.9em; + color: var(--muted); +} + +/* footnotes --------------------------------------------------------------- */ + +.footnote { + clear: both; + font-size: 0.9em; + color: var(--muted); +} + +.footnote hr { + border: 0; + border-top: 1px solid var(--rule); + margin: 2.5em 0 0.6em; +} + +.footnote-backref { text-decoration: none; } + +/* footer ------------------------------------------------------------------ */ + +.site-foot { + margin-top: 3em; + padding-top: 0.6em; + border-top: 1px solid var(--rule); + clear: both; + font-size: 0.9em; + color: var(--muted); +} + +.site-foot p { + margin: 0; +} + +/* narrow screens ---------------------------------------------------------- */ + +@media (max-width: 30em) { + /* images stop floating and take block spacing */ + .right, .left { + display: block; + float: none; + max-width: 100%; + margin: 1.4em 0; + } +}
