diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-09-28 19:49:44 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-09-28 19:49:44 +0200 |
| commit | 8822043d6bc93571e400f6e236900a8668a5d724 (patch) | |
| tree | 49819e64ccc5ba982c2f084acd6cbaf4822b577a /repo/www/crumbs.css | |
| parent | 4e695c301cae8fa2e6d6ab582de2415fc481e1b6 (diff) | |
| parent | 7bc5ee87b62ab7dffd16913e6864b49e2dbfad06 (diff) | |
| download | memory-leaks-8822043d6bc93571e400f6e236900a8668a5d724.tar.xz | |
Merge branch 'crumbs'
Diffstat (limited to 'repo/www/crumbs.css')
| -rw-r--r-- | repo/www/crumbs.css | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/repo/www/crumbs.css b/repo/www/crumbs.css new file mode 100644 index 0000000..acbe4f1 --- /dev/null +++ b/repo/www/crumbs.css @@ -0,0 +1,32 @@ +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; +} |
