diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-26 00:17:32 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-28 17:08:45 +0200 |
| commit | d0d869e06b30a1f8b7b539978caa0ed6123f9864 (patch) | |
| tree | 462cde345af47d85ee148286deb33bd5af041d92 /repo/www/crumbs.css | |
| parent | 79f3257437636c153bd9e66131495680ddf39afd (diff) | |
| download | memory-leaks-d0d869e06b30a1f8b7b539978caa0ed6123f9864.tar.xz | |
Add breadcrumbs
Likewise, use relative links so that things work when just browsing
files locally without a server.
Next: tweak or remove redundant titles.
Diffstat (limited to 'repo/www/crumbs.css')
| -rw-r--r-- | repo/www/crumbs.css | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/www/crumbs.css b/repo/www/crumbs.css new file mode 100644 index 0000000..ef42620 --- /dev/null +++ b/repo/www/crumbs.css @@ -0,0 +1,31 @@ +nav.breadcrumb ol { + padding-left: 0; +} + +nav.breadcrumb li { + /* Prefer inline-block to inline, to prevent wrapping inside + * individual crumbs. */ + display: inline-block; +} + +/* Prefer + * li:not(:last-child)::after + * to + * li + li::before + * as I want crumbs and slashes to wrap like this: + * foo / bar / + * baz + * rather than like that: + * foo / bar + * / baz + */ +nav.breadcrumb li:not(:last-child)::after { + margin-left: 0.25em; + height: 0.8em; + font-weight: bold; + content: '/'; +} + +nav.breadcrumb li[aria-current="page"] { + font-weight: bold; +} |
