Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
Merged
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
5 changes: 3 additions & 2 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ <h2>Sections</h2>
{%- if item.parent == nil -%}
<li{% if page.title == item.title %} class="active"{% endif %}>
<a class="aside_nav_link{% if page.title == item.title %} active"{% endif %}" href="{{item.url}}">{{item.title}}</a>

{%- if item.has_children -%}
<!-- <span class="toggle_sub"> +</span> -->
<span class="toggle_sub rot180"> &#94;</span>
{%- assign this = item.title -%}
{% assign children = site.docs | where: "parent", this %}

Expand All @@ -19,7 +20,7 @@ <h2>Sections</h2>
<a class="aside_nav_link {% if page.title == child.title %} active{% endif %}" href="{{child.url}}">{{child.title}}</a>

{%- if child.has_children -%}
<!-- <span class="toggle_sub"> +</span> -->
<span class="toggle_sub rot180"> &#94;</span>
{%- assign father_name = child.title -%}
{%- assign grandfather_name = item.title -%}
{% assign grandsons = site.docs | where: "parent", father_name | where: "grand_parent", grandfather_name %}
Expand Down
23 changes: 17 additions & 6 deletions _sass/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,20 @@ li {
.hidden {
display: none;
}
.rot45 {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
.rot180 {
transform: rotate(180deg);
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
}
.active
.rot180 {
transform: rotate(0) translateY(7px);
-webkit-transform: rotate(0) translateY(7px);
-moz-transform: rotate(0) translateY(7px);
-ms-transform: rotate(0) translateY(7px);
-o-transform: rotate(0) translateY(7px);
}
.site-footer {
margin-top: 30px;
Expand Down Expand Up @@ -337,6 +345,9 @@ li {
}
.active {
font-weight: 700;
* {
color: $sidebar-color;
}
}
}
.active {
Expand Down