"services"
Bootstrap 4.1.1 Snippet by dkstudio

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <section class="bg-dark pt-5 pb-5"> <div class="container"> <div class="row"> <div class="col-md-6 col-lg-4 text-white"> <div class="panel accordion p-3"> <div class="panel-heading collapsed" data-toggle="collapse" data-target="#bar"> <i class="fa fa-superpowers text-orange fa-2x" aria-hidden="true"></i> <div class="abc">Food</div> <div class="float-right"> <i class="fa fa-fw fa-chevron-down"></i> <i class="fa fa-fw fa-chevron-right"></i> </div> </div> <div class="panel-body"> <!-- The inside div eliminates the 'jumping' animation. --> <div class="collapse" id="bar"> <ul class="list-group list-group-minimal"> <li class="list-group-item d-flex justify-content-between align-items-center"> Bidet <i class="fa fa-check" aria-hidden="true"></i> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> Bathroom <i class="fa fa-check" aria-hidden="true"></i> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> Toilet <span class="badge badge-primary badge-pill">14</span> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> Free toiletries <i class="fa fa-check" aria-hidden="true"></i> </li> <li class="list-group-item d-flex justify-content-between align-items-center"> Hairdryer <i class="fa fa-check" aria-hidden="true"></i> </li> </ul> </div> </div> </div> </div> </div> </div> </section>
.panel-heading.collapsed .fa-chevron-down, .panel-heading .fa-chevron-right { display: none; } .panel-heading.collapsed .fa-chevron-right, .panel-heading .fa-chevron-down { display: inline-block; } i.fa { cursor: pointer; margin-right: 5px; } .collapsed ~ .panel-body { padding: 0; } .bg-dark { background-color: #151515 !important; } .accordion { border: 0; background-color: rgba(255, 255, 255, 0.05); } .panel-heading {border-radius: 0.25rem; padding: 1rem; } .abc { width: 100%; display: contents; } .list-group-minimal .list-group-item { background-color: transparent; border-left: none; border-right: none; } .list-group-item:first-child { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; } .text-orange { color: #F3A83C !important; }

Related: See More


Questions / Comments: