Skip to content

Commit

Permalink
faq stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
winnidat committed Nov 4, 2024
1 parent 092c9cb commit 8baec26
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
21 changes: 18 additions & 3 deletions scss/lexa.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2582,7 +2582,7 @@ text-align: start;
text-decoration: none !important;
}

@include media-breakpoint-down(sm) {
@include media-breakpoint-down(sm) {
.wbfaqinput {
width: 100%;
}
Expand Down Expand Up @@ -2613,9 +2613,24 @@ box-shadow: 0px 12px 30px 0px #0000000D;

.wbfaqaccordion
.accordion-item {
border-bottom: 1px solid #D9DBE9
border-bottom: 1px solid#D9DBE9
}

.wbfaqaccordion .accordion-item:last-child {
border-bottom: none;
}
.current-faq.wb-breadcrumb .d-flex{
border: 1px solid #D9E1E7;
border-radius: 10px;
}
.wbfaqbreadcrumb {
display: flex;
align-items: center;
justify-content: center;
color: #809FB8;
}
.btn.wbfaqbreadcrumb {
padding: 10px 20px;
}
.wbfaqbreadcrumb.wb_faq-active {
color:#0063A6;
}
21 changes: 15 additions & 6 deletions templates/local_wb_faq/faq.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,32 @@
}
}}

<div class="current-faq wb-breadcrumb">
{{#canedit}}
<div class="mb-2">
<span>
<a class="local_wb_faq_edit_button local_wb_faq_edit_category btn btn-secondary" data-faqroot="{{root}}" data-uid="{{uid}}">{{#str}} addcategory, local_wb_faq {{/str}} <i class="fa fa-plus"></i></a>
<a class="local_wb_faq_edit_button local_wb_faq_edit_question btn btn-secondary" data-faqroot="{{root}}" data-uid="{{uid}}">{{#str}} addquestion, local_wb_faq {{/str}} <i class="fa fa-plus"></i></a>
</span>
</div>
{{/canedit}}

{{#breadcrumbs.1}}
<div class="current-faq wb-breadcrumb">
<!-- Existing code for displaying breadcrumbs -->
<div class="d-flex mt-2">
<div class="d-flex">
{{#breadcrumbs}}
<div class="btn btn-primary mb-2 px-4 mr-2 wbfaqbreadcrumb" data-catvalue="{{datacat}}" data-action="goto" data-targetid='{{id}}'>{{name}}</div>
<div class="btn wbfaqbreadcrumb{{#active}} wb_faq-active{{/active}}" data-catvalue="{{datacat}}" data-action="goto" data-targetid='{{id}}'>{{name}}</div>
{{^active}}
<div class="wbfaqbreadcrumb" data-catvalue="{{datacat}}"><svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="icon_stroke">
<path id="Vector" d="M5 1L17 11L5 21" stroke="#809FB8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>
{{/active}}
</div>
{{/breadcrumbs}}
</div>
</div>
{{/breadcrumbs.1}}

<ul class="draggable-cat list-unstyled">
{{#categories}}
Expand All @@ -62,8 +73,6 @@
{{/headertitle}}
{{/entries.0}}



<ul class="accordion draggable list-unstyled wbfaqaccordion" id="wb-faq-accordion">
{{#entries}}
{{>local_wb_faq/entry}}
Expand Down

0 comments on commit 8baec26

Please sign in to comment.