Skip to content

Commit 8815e52

Browse files
authored
Service portal widget accordion (#896)
* Create HTML Template.html * Add files via upload * Create CSS-SCSS.scss * Create readme.md
1 parent b6e0c3c commit 8815e52

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed
20.1 KB
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.toggler {
2+
width: 100%;
3+
position: relative;
4+
text-align: left;
5+
}
6+
7+
.toggler::before {
8+
content: "\f107";
9+
position: absolute;
10+
top: 50%;
11+
right: 0.8rem;
12+
transform: translateY(-50%);
13+
display: block;
14+
font-family: "FontAwesome";
15+
font-size: 1.1rem;
16+
}
17+
18+
.toggler[aria-expanded="true"]::before {
19+
content: "\f106";
20+
}
21+
.border-1{
22+
border: 1px solid #d7d7d7;
23+
}
24+
.margin-bottom-0{
25+
margin-bottom: 0px;
26+
}
27+
.padding-5{
28+
padding: 10px;
29+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<div class="container">
2+
<div class="row">
3+
<div class="col-lg-9 mx-auto">
4+
<div id="accordionExample" class="accordion shadow">
5+
<div class="card">
6+
<div id="headingOne" class="">
7+
<h2 class="margin-bottom-0">
8+
<button type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="false"
9+
aria-controls="collapseOne"
10+
class="btn text-dark font-weight-bold text-uppercase toggler">Accordion Header #1</button>
11+
</h2>
12+
</div>
13+
<div id="collapseOne" aria-labelledby="headingOne" data-parent="#accordionExample" class="collapse">
14+
<div class="card-body border-1">
15+
<p class="font-weight-light padding-5">This is the inner text of the accordion. This is the inner text of the accordion. This is the inner text of the accordion. This is the inner text of the accordion. This is the inner text of the accordion. This is the inner text of the accordion.</p>
16+
</div>
17+
</div>
18+
</div>
19+
</div>
20+
</div>
21+
</div>
22+
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Accordion Widget
2+
3+
![alt text](https://raw.githubusercontent.com/debendu-das/code-snippets/service-portal-widget-accordion/Service%20Portal%20Widgets/Accordion%20Widget/Accordion%20Widget%20Image.png)

0 commit comments

Comments
 (0)