目次
パンくずリストのデザインサンプル一覧
スラッシュ
ブラケット
ダブルブラケット
アイコン
<ol class="t8-bread-4">
<li><a href="#">トップ</a></li>
<li><a href="#">タグ</a></li>
<li><a href="#">現在のページ</a></li>
</ol>.t8-bread-4 {
display: flex;
flex-wrap: wrap;
list-style: none;
}
.t8-bread-4 li:not(:last-child)::after {
font-family: "Font Awesome 5 Free";
content: '\f0da';
font-weight: 900;
margin: 0 .5em;
color: #808080;
}タグ(角)
<ol class="t8-bread-5">
<li><a href="#">トップ</a></li>
<li><a href="#">タグ</a></li>
<li><a href="#">現在のページ</a></li>
</ol>.t8-bread-5 {
overflow: hidden;
display: flex;
flex-wrap: wrap;
list-style: none;
}
.t8-bread-5 li {
position: relative;
display: inline-block;/*横に並ぶように*/
list-style: none;
font-weight: bold;/*太字*/
margin-right: 1em;
margin-left: 5px;
}
.t8-bread-5 a {
display: inline-block;
padding: 0 3px 0 7px;
height: 30px;
line-height: 30px;
text-decoration: none;
color: #fff;
background: #0d6efd;
font-size: 13px;
}
.t8-bread-5 li:after {
content: "";
position: absolute;
top: 0;
left: 100%;
border-style: solid;
border-color: transparent;
border-left-color: #0d6efd;;
border-width: 15px 10px;
width: 0;
height: 0;
}
タグ(丸)
<ol class="t8-bread-6">
<li><a href="#">トップ</a></li>
<li><a href="#">タグ</a></li>
<li><a href="#">現在のページ</a></li>
</ol>.t8-bread-6 {
overflow: hidden;
display: flex;
flex-wrap: wrap;
list-style: none;
}
.t8-bread-6 li {
position: relative;
display: inline-block;/*横に並ぶように*/
list-style: none;
font-weight: bold;/*太字*/
margin-right: 0.5em;
}
.t8-bread-6 a {
display: inline-block;
padding: 0 3px 15px 7px;
height: 30px;
line-height: 30px;
text-decoration: none;
color: #fff;
background: #0d6efd;
font-size: 13px;
padding: 0 21px 15px 7px;
border-radius: 0 30px 30px 0;
}タグ(連結)
<div class="t8-bread-7">
<ul>
<li><a href="#">トップ</a></li>
<li><a href="#">タグ</a></li>
<li><a href="#">現在のページ</a></li>
</ul>
</div>.t8-bread-7 ul {
list-style: none;
display: flex;
}
.t8-bread-7 ul li {
display: flex;
}
.t8-bread-7 ul li a {
display: flex;
float: left;
height: 30px;
background: #0d6efd;
text-align: center;
padding: 7px 15px;
position: relative;
margin: 0 5px 0 0;
font-size: 13px;
text-decoration: none;
color: #fff;
}
.t8-bread-7 ul li a:before {
content: "";
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 15px solid transparent;
position: absolute; left: 0; top: 0;
}
.t8-bread-7 ul li a:after {
content: "";
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 15px solid #0d6efd;
position: absolute;
right: -14px;
top: 0;
z-index: 1;
}
.t8-bread-7 ul li:first-child a:before {
display: none;
}
.t8-bread-7 ul li:last-child a:after {
display: none;
}