<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 ---------->
<!--Font awesome 5 kit-->
<script src="https://kit.fontawesome.com/4f8c93ac3e.js" crossorigin="anonymous"></script>
<div class="paddingLuar">
<div class="container-fluid cardMateri">
<p class="judulUtama"><b>Responsive Accordian Bootstrap 4</b></p>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<!--materi 1-->
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
<i class="far fa-dot-circle mr-3"></i>Menu 1
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" data-parent="#accordion" aria-labelledby="headingOne">
<div class="panel-body">
<div class="isiMateri">
<p>Contoh Untuk Isi Menu</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisl lorem, dictum id pellentesque at, vestibulum ut arcu. Curabitur erat libero, egestas eu tincidunt ac, rutrum ac justo. Vivamus condimentum laoreet lectus, blandit posuere tortor aliquam vitae. Curabitur molestie eros. </p>
</div>
</div>
</div>
</div>
<!--materi 2-->
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
<i class="far fa-dot-circle mr-3"></i>Menu 2
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" data-parent="#accordion" aria-labelledby="headingTwo">
<div class="panel-body">
<div class="isiMateri">
<p>Contoh Untuk Isi Menu</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisl lorem, dictum id pellentesque at, vestibulum ut arcu. Curabitur erat libero, egestas eu tincidunt ac, rutrum ac justo. Vivamus condimentum laoreet lectus, blandit posuere tortor aliquam vitae. Curabitur molestie eros. </p>
</div>
</div>
</div>
</div>
<!--materi 3-->
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
<i class="far fa-dot-circle mr-3"></i>Menu 3
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" data-parent="#accordion" aria-labelledby="headingThree">
<div class="panel-body">
<div class="isiMateri">
<p>Contoh Untuk Isi Menu</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisl lorem, dictum id pellentesque at, vestibulum ut arcu. Curabitur erat libero, egestas eu tincidunt ac, rutrum ac justo. Vivamus condimentum laoreet lectus, blandit posuere tortor aliquam vitae. Curabitur molestie eros. </p>
</div>
</div>
</div>
</div>
<!--materi 4-->
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingFour">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
<i class="far fa-dot-circle mr-3"></i>Menu 4
</a>
</h4>
</div>
<div id="collapseFour" class="panel-collapse collapse" role="tabpanel" data-parent="#accordion" aria-labelledby="headingFour">
<div class="panel-body">
<div class="isiMateri">
<p>Contoh Untuk Isi Menu</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisl lorem, dictum id pellentesque at, vestibulum ut arcu. Curabitur erat libero, egestas eu tincidunt ac, rutrum ac justo. Vivamus condimentum laoreet lectus, blandit posuere tortor aliquam vitae. Curabitur molestie eros. </p>
</div>
</div>
</div>
</div>
<!--materi 5-->
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingFive">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFive" aria-expanded="false" aria-controls="collapseFive">
<i class="far fa-dot-circle mr-3"></i>Menu 5
</a>
</h4>
</div>
<div id="collapseFive" class="panel-collapse collapse" role="tabpanel" data-parent="#accordion" aria-labelledby="headingFive">
<div class="panel-body">
<div class="isiMateri">
<p>Contoh Untuk Isi Menu</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisl lorem, dictum id pellentesque at, vestibulum ut arcu. Curabitur erat libero, egestas eu tincidunt ac, rutrum ac justo. Vivamus condimentum laoreet lectus, blandit posuere tortor aliquam vitae. Curabitur molestie eros. </p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
.cardMateri {
background-color: #F1F6E3;
border-radius: 8px;
-webkit-box-shadow: 4px 4px 8px 0px rgba(0,0,0,0.21);
-moz-box-shadow: 4px 4px 8px 0px rgba(0,0,0,0.21);
box-shadow: 4px 4px 8px 0px rgba(0,0,0,0.21);
}
#accordion .panel{
border: none;
border-radius: 3px;
box-shadow: none;
}
#accordion .panel-heading{
padding: 0;
border: none;
border-radius: 3px;
}
#accordion .panel-title a {
display: block;
padding: 12px 15px;
background: #fff;
font-weight: 400;
color: #16AB50;
text-decoration: none;
box-shadow: 0 0 10px rgba(0,0,0,.05);
position: relative;
transition: all 0.5s ease 0s;
}
#accordion .panel-title a.collapsed{
box-shadow: none;
color: #676767;
text-decoration: none;
box-shadow: 0 1px 2px rgba(43,59,93,0.30);
}
#accordion .panel-title a:before,
#accordion .panel-title a.collapsed:before{
content: "\f067";
font-family: "Font Awesome 5 Free";
width: 25px;
height: 25px;
line-height: 28px;
font-weight: 900;
color: #16AB50;
text-align: center;
position: absolute;
top: 8px;
right: 15px;
transform: rotate(135deg);
transition: all 0.3s ease 0s;
}
#accordion .panel-title a.collapsed:before{
color: #676767;
transform: rotate(0);
}
#accordion .panel-title a:after{
content: "";
width: 1px;
height: 100%;
background: #ececec;
position: absolute;
top: 0;
right: 55px;
}
#accordion .panel-body{
border: none;
font-size: 15px;
color: #615f5f;
background-color: #fff;
line-height: 27px;
}
#accordion .panel-body .isiMateri {
padding: 25px;
margin-bottom: 10px;
}
/*dekstop*/
@media screen and (min-width: 1024px) {
.paddingLuar, .cardMateri {
padding: 3rem;
}
.judulUtama {
font-size: 32px;
font-weight: 500;
text-align: center;
margin-bottom: 1.5rem;
}
.isiMateri p:nth-child(1) {
font-size: 22px;
font-weight: 700;
margin-bottom: 1rem;
text-align: center;
}
.isiMateri p:nth-child(2) {
font-size: 15px;
text-align: justify;
}
#accordion .panel-title a {
font-size: 19px;
}
#accordion .panel-title a:before,
#accordion .panel-title a.collapsed:before {
font-size: 16px;
}
}
/*tablet*/
@media screen and (min-width: 768px) and (max-width: 1023px) {
.paddingLuar, .cardMateri {
padding: 2rem;
}
.judulUtama {
font-size: 25px;
font-weight: 500;
text-align: center;
margin-bottom: 1rem;
}
.isiMateri p:nth-child(1) {
font-size: 21px;
font-weight: 700;
margin-bottom: 0.75rem;
text-align: center;
}
.isiMateri p:nth-child(2) {
font-size: 14px;
text-align: justify;
}
#accordion .panel-title a {
font-size: 16px;
}
#accordion .panel-title a:before,
#accordion .panel-title a.collapsed:before {
font-size: 13px;
}
}
/*HP*/
@media screen and (max-width: 767px){
.paddingLuar, .cardMateri {
padding: 1rem;
}
.judulUtama {
font-size: 20px;
font-weight: 500;
text-align: center;
margin-bottom: 1rem;
}
.isiMateri p:nth-child(1) {
font-size: 14px;
font-weight: 700;
margin-bottom: 0.5rem;
text-align: center;
}
.isiMateri p:nth-child(2) {
font-size: 12px;
text-align: justify;
}
#accordion .panel-title a {
font-size: 13px;
}
#accordion .panel-title a:before,
#accordion .panel-title a.collapsed:before {
font-size: 11px;
}
}