Simple CSS-only breadcrumb

Simple and neutral breacrumb, created without image, using the "CSS arrows" technique.

by sorx00

HTML

<nav>
    <ul class="menu">
        <li>
            <a href="#">Home</a>
            <ul>
                <li>-> exit</li>
            </ul>
        </li>
        <li><a href="#">Grandpa</a></li>
        <li>
            <a href="#">Father</a>
            <ul>
                <li>1 Subitem</li>
                <li>2 Subitem</li>
                <li>3 Subitem</li>
            </ul>
        </li>
        <li><a href="#">Son</a></li>
    </ul>
</nav>

SCSS

$linkColorHover: #00b0ec;
$gray: #F0F0F0;
$gray2: #aaa;

$indent: 15px;

body {
    padding: 40px;
    font-family: Helvetica, sans-serif;
    font-size: 13px;
}

.menu {
    margin-bottom: 20px;
    line-height: 30px;
    color: $gray2;
    padding: 1px;
    border: 1px solid $gray;
    
    > li {
        display: block;
        float: left;
        background: $gray;
        padding-right: 10px;
        height: 30px;
        margin-right: 31px;
        position: relative;
        text-decoration: none;
        color: $gray2;
        
        &:last-of-type {
            margin-right: 25px;
        }
        
        &:before {
            content: "";
            display: block;
            width: 0;
            height: 0;
            position: absolute;
            top: 0;
            left: -30px;
            border: 15px solid transparent;
            border-color: $gray;
            border-left-color: transparent;
        }
        
        &:after {
            content: "";
            display: block;
            width: 0;
            height: 0;
            position: absolute;
            top: 0;
            right: -30px;
            border: 15px solid transparent;
            border-left-color: $gray;
        }
        
        &:first-of-type {
            padding-left: 15px;
            
            &:before {
                display: none;
            }
        }
        
        &:hover {
            background: $linkColorHover;
            color: #fff;
            text-decoration: none;
            
            &:before {
                border-color: $linkColorHover;
                border-left-color: transparent;
            }
            
            &:after {
                border-left-color: $linkColorHover;
            }
        }
            
        > ul {
            display: none;
            float: none;
        }
        &:hover > ul { display: block; }
    }
}