Skip to content

Commit 91caad9

Browse files
committed
Change arrow direction in Categories page.
1 parent 504afae commit 91caad9

5 files changed

Lines changed: 17 additions & 16 deletions

File tree

assets/css/categories.scss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,15 @@
5050
}
5151
}
5252

53-
.category-trigger>i.fas.fa-angle-up {
53+
.category-trigger>i.fas {
5454
position: relative;
55-
bottom: 8%;
55+
height: .7rem;
56+
width: 1rem;
5657
transition: 300ms ease all;
57-
}
58+
}
59+
60+
.rotate {
61+
-ms-transform: rotate(-90deg); /* IE 9 */
62+
-webkit-transform: rotate(-90deg); /* Safari 3-8 */
63+
transform: rotate(-90deg);
64+
}

assets/css/main.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -784,12 +784,6 @@ table tbody td {
784784
top: -3rem !important; /* same as topbar height. */
785785
}
786786

787-
.flip {
788-
-ms-transform: rotate(180deg); /* IE 9 */
789-
-webkit-transform: rotate(180deg); /* Safari 3-8 */
790-
transform: rotate(180deg);
791-
}
792-
793787
.no-text-decoration {
794788
text-decoration: none;
795789
}

assets/js/_src/category-collapse.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ $(function() {
88
var child_prefix = "l_";
99
var parent_prefix = "h_";
1010

11-
// close up Top
11+
// close up top-category
1212
$(".collapse").on("hide.bs.collapse", function() { // Bootstrap collapse events.
1313
var parent_id = parent_prefix + $(this).attr('id').substring(child_prefix.length);
1414
if (parent_id) {
1515
$("#" + parent_id + " .far.fa-folder-open").attr("class", "far fa-folder fa-fw");
16-
$("#" + parent_id + " i.fas.fa-angle-up").addClass("flip");
16+
$("#" + parent_id + " i.fas").addClass("rotate");
1717
$("#" + parent_id).removeClass("hide-border-bottom");
1818
}
1919
});
2020

21-
// expand Top Category
21+
// expand the top category
2222
$(".collapse").on("show.bs.collapse", function() {
2323
var parent_id = parent_prefix + $(this).attr('id').substring(child_prefix.length);
2424
if (parent_id) {
2525
$("#" + parent_id + " .far.fa-folder").attr("class", "far fa-folder-open fa-fw");
26-
$("#" + parent_id + " i.fas.fa-angle-up").removeClass("flip");
26+
$("#" + parent_id + " i.fas").removeClass("rotate");
2727
$("#" + parent_id).addClass("hide-border-bottom");
2828
}
2929
});

assets/js/dist/category-collapse.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tabs/categories.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ title: Categories
4949
<!-- arrow -->
5050
<a href="#l_{{ category_name }}" data-toggle="collapse" aria-expanded="true" class="category-trigger hide-border-bottom">
5151
{% if sub_categories_size > 0%}
52-
<i class="fas fa-angle-up"></i>
52+
<i class="fas fa-fw fa-angle-down"></i>
5353
{% else %}
54-
<i class="fas fa-angle-down disabled"></i>
54+
<i class="fas fa-fw fa-angle-right disabled"></i>
5555
{% endif %}
5656
</a>
5757

0 commit comments

Comments
 (0)