Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@ body.path-admin-report-customsql a.view-category {
.region-content .csql_category h3 {
font-weight: bold;
}
.csql_category .categoryname {
padding-left: 18px;
.csql_category__button-container > div:first-child {
margin-right: 10px;
}
.csql_category.csql_categoryhidden .categoryname {
background-image: url([[pix:moodle|t/collapsed]]);
background-repeat: no-repeat;
background-position: center left;
.csql_category.csql_categoryshown a.categoryname > i.fa-angle-right {
transform: rotate(90deg);
}
.csql_category.csql_categoryshown .categoryname {
background-image: url([[pix:moodle|t/expanded]]);
background-repeat: no-repeat;
background-position: center left;

.csql_category a.categoryname > i.fa-angle-right {
font-size: 28px;
}

.csql_category .csql_category_reports {
margin-left: 18px;
margin-left: 30px;
}
.csql_category.csql_categoryshown .csql_category_reports {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion templates/category.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<div class="csql_category csql_category{{#expandable}}{{show}}{{/expandable}}">
<h2>
{{#expandable}}
<a href="{{linkref}}" class="categoryname">{{name}}</a>
<a href="{{linkref}}" class="categoryname"><i class="fa fa-angle-right mr-2"></i>{{name}}</a>
{{/expandable}}
{{^expandable}}
{{{name}}}
Expand Down
4 changes: 2 additions & 2 deletions templates/expand_collapse_link.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
}
}}

<div class="csql_expandcollapseallcontainer">
<a href="#" class="csql_expandcollapseall" data-expandalltext="{{#str}}expandall{{/str}}" data-collapsealltext="{{#str}}collapseall{{/str}}">
<div class="csql_expandcollapseallcontainer mb-3">
<a href="#" class="csql_expandcollapseall text-muted" data-expandalltext="{{#str}}expandall{{/str}}" data-collapsealltext="{{#str}}collapseall{{/str}}">
{{#str}}expandall{{/str}}
</a>
</div>
6 changes: 4 additions & 2 deletions templates/index_page.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
{{>report_customsql/expand_collapse_link}}
{{/expandcollapselinkattheend}}

{{{addquerybutton}}}
{{{managecategorybutton}}}
<div class="csql_category__button-container mt-3 d-flex flex-row justify-content-start">
{{{addquerybutton}}}
{{{managecategorybutton}}}
</div>

{{#js}}
require(['report_customsql/reportcategories'], function(reportcategories) {
Expand Down