diff --git a/docs/src/navs.html b/docs/src/navs.html index 03d2f54d..b4619e85 100644 --- a/docs/src/navs.html +++ b/docs/src/navs.html @@ -114,14 +114,35 @@ </nav> </aside> - - - + + - ${require('./_footer.html')} - - - - - - +

With role="breadcrumb", you can turn a nav into a breadcrumb.

+ +
+ + + +
+ + + + ${require('./_footer.html')} + + + + + + + \ No newline at end of file diff --git a/scss/components/_nav.scss b/scss/components/_nav.scss index 6b0f8762..0dbac416 100644 --- a/scss/components/_nav.scss +++ b/scss/components/_nav.scss @@ -51,6 +51,24 @@ nav { text-decoration: none; } } + + &[role="breadcrumb"] { + align-items: center; + justify-content: left; + + font-size: 1.2rem; + + & a { + padding-right: 1rem; + text-decoration: none; + + &::after { + content: " / "; + color: var(--color); + font-size: 1.5rem; + } + } + } } // Vertical Nav diff --git a/scss/content/_typography.scss b/scss/content/_typography.scss index 9fc5883b..bd58466d 100644 --- a/scss/content/_typography.scss +++ b/scss/content/_typography.scss @@ -68,7 +68,7 @@ ul { // Links // 1. Remove the gray background on active links in IE 10 -a { +a:not(::after) { --color: var(--primary); --background-color: transparent; outline: none;