fix: use clip-path for sidebar chevrons (better cross-browser support)

This commit is contained in:
2026-01-14 17:56:50 +01:00
parent e53233b08c
commit 3f88bec31a

View File

@@ -993,22 +993,25 @@ details.module-container {
summary.module-header {
list-style: none;
list-style-type: none;
cursor: pointer;
}
summary.module-header::-webkit-details-marker {
summary.module-header::-webkit-details-marker,
summary.module-header::marker {
display: none;
content: "";
}
summary.module-header::before {
content: "";
display: inline-block;
width: 0;
height: 0;
display: block;
flex-shrink: 0;
width: 6px;
height: 10px;
margin-right: 8px;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 6px solid var(--text-muted);
background: var(--text-muted);
clip-path: polygon(0 0, 100% 50%, 0 100%);
transition: transform 0.2s;
}
@@ -1649,12 +1652,11 @@ input:checked + .toggle-slider::before {
padding-right: 8px;
}
/* RTL: Module expand icon (CSS triangle) */
/* RTL: Module expand icon */
[dir="rtl"] summary.module-header::before {
margin-left: 8px;
margin-right: 0;
border-left: none;
border-right: 6px solid var(--text-muted);
clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
[dir="rtl"] details.module-container[open] > summary.module-header::before {