Skip to content

Commit 4c56adb

Browse files
committed
Use chevrondown icon
1 parent 490244a commit 4c56adb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

themes/opentermsarchive/assets/css/components/aside.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
padding: var(--mXS) var(--mS);
4444
list-style: none;
4545
cursor: pointer;
46-
transition: 0.2s;
4746

4847
&:hover{
4948
background-color:var(--colorBlack200);
@@ -54,18 +53,18 @@
5453
display: none;
5554
}
5655

57-
&::after{
58-
content: '↓';
56+
& svg{
5957
position: absolute;
6058
right: 10px;
61-
top:12px;
59+
top:14px;
6260
font-size:0.8em;
6361
color:var(--colorBlack400);
62+
transition: transform 0.2s ease;
6463
}
6564
}
6665

6766
&[open]{
68-
summary::after{
67+
summary > svg{
6968
transform: rotate(180deg);
7069
}
7170
}
@@ -110,3 +109,4 @@
110109
.aside_item-current{
111110
border-left:2px solid var(--colorPrimary);
112111
}
112+

themes/opentermsarchive/layouts/partials/aside.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{ range .Site.Sections.ByWeight }}
99
<li class="{{ if eq $currentPageSection .Section }}aside_item-current{{ end }}">
1010
<details {{ if eq $currentPageSection .Section }}open{{ end }}>
11-
<summary><b>{{ .LinkTitle | markdownify }}</b></summary>
11+
<summary><b>{{ .LinkTitle | markdownify }}</b> <i class="icon" data-lucide="chevron-down"></i></summary>
1212
<ul>
1313
{{ $allPages := .RegularPages.ByWeight | append .Sections.ByWeight }}
1414
{{ $allPages := sort $allPages "Weight" }}

0 commit comments

Comments
 (0)