summaryrefslogtreecommitdiff
path: root/repo/www/crumbs.css
blob: acbe4f1384e4ae71751df7860bb06c429b74176b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
}