Breadcrumbs
by chrischilcoat
HTML
<script src="//code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="container-fluid" style="width:500px;">
<div class="row">
<div class="col" style="width:400px;">
<button type="button" class="btn btn-secondary btn-sm"><i class="fa fa-arrow-left"></i> back</button>
</div>
<div class="col text-right">
<button type="button" class="btn btn-link btn-sm">+ Add a Folder</button>
</div>
</div>
<div class="row">
<div class="col">
<nav aria-label="breadcrumb" style="
margin: 0;
">
<ol class="breadcrumb" style="background:none;">
<li class="breadcrumb-item" data-toggle="tooltip" data-placement="top" title="View Folders" data-delay="{"show":"300", "hide":"0"}">
<a href="#" class="dropdown-toggle" role="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="fa-stack ">
<i class="fa fa-folder fa-stack-1x"></i>
<i class="fa fa-ellipsis-h fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">More Folders</span></a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a href="#" class="dropdown-item"><span class="fa fa-folder-o"></span> Five</a>
<a href="#" class="dropdown-item"><span class="fa fa-folder-o"></span> Four</a>
<a href="#" class="dropdown-item"><span class="fa fa-folder-o"></span> Three</a>
...
SCSS
.row {
margin: 20px;
}
.col {
.breadcrumb {
margin:0 -15px;
border-radius:0;
//background:green;
.breadcrumb-item {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width:150px;
//background:red;
.dropdown-toggle::after {
display:none;
}
}
.fa-stack {
line-height: 1.4;
height: 1.4em;
.fa:first-child {
font-size: 1.4em;
line-height: .9em;
}
.fa:last-child {
font-size: 72%;
line-height: 2em;
}
}
.breadcrumb-item:nth-child(even) {
//background:pink;
}
}
}
p {
margin: 0 40px 20px;
}
.col .breadcrumb {
padding: 0 15px;
}
.fa-check-square-o{
margin-right:15px;
}
.fa-square-o {
margin-right:17px;
}
.list-group-flush .list-group-item {
border-right: 0;
border-left: 0;
border-radius: 0;
padding: 7px 11px;
}