Files
this-is-responsive/patterns/breadcrumbs-last.html
2012-08-24 13:39:48 -04:00

92 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" media="all" href="../styles.css">
<title>Responsive Pattern | This Is Responsive</title>
<script type="text/javascript" src="../js/modernizr.js"></script>
</head>
<body>
<!--Pattern CSS-->
<style id="s" type="text/css">
.crumbs {
padding: 1em;
}
.crumbs li {
display: none;
}
.crumbs li.last {
display: inline-block;
}
.crumbs li.last:before {
content: '←';
color: #999;
}
@media all and (min-width: 32em) {
.crumbs li {
display: inline-block;
}
.crumbs li:after {
content: '→';
padding: 0 0.25em 0 0.5em;
color: #999;
}
.crumbs li.last:before, .crumbs li.last:after {
content: '';
}
}
</style>
<!--End Pattern HTML-->
<!--Pattern HTML-->
<section id="pattern" class="pattern">
<ul class="crumbs">
<li><a href="#">Grandparent</a></li>
<li><a href="#">Parent</a></li>
<li><a href="#">Child</a></li>
<li class="last"><a href="#">Grandchild</a></li>
</ul>
</section>
<!--End Pattern HTML-->
<!--Pattern JS (if needed)-->
<!--<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
});
</script>-->
<div class="container">
<!--Pattern Description-->
<section class="pattern-description">
<h1>Last One Only Breadcrumbs</h1>
<p>A breadcrumb solution that only exposes the last item in the trail by default, but exposes the entire trail when space becomes available.</p>
<h2>Pros</h2>
<ul>
<li>Saves space by only exposing the last element in the breadcrumb trail.</li>
<li>Small screen users are still able to traverse the breadcrumb trail</li>
</ul>
<h2>Cons</h2>
<ul>
<li>Small screen users require a full-page refresh in order to go back multiple levels</li>
<li>Small screens still download the extra markup even though it's not used</li>
</ul>
</section>
<!--End Pattern Description-->
<!--Footer-->
<footer role="contentinfo">
<div>
<nav id="menu">
<a href="../patterns.html">&larr;More Responsive Patterns</a>
</nav>
</div>
</footer>
<!--End Footer-->
</div>
</body>
</html>