fix: use clip-path for sidebar chevrons (better cross-browser support)
This commit is contained in:
22
src/main.css
22
src/main.css
@@ -993,22 +993,25 @@ details.module-container {
|
|||||||
|
|
||||||
summary.module-header {
|
summary.module-header {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
list-style-type: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
summary.module-header::-webkit-details-marker {
|
summary.module-header::-webkit-details-marker,
|
||||||
|
summary.module-header::marker {
|
||||||
display: none;
|
display: none;
|
||||||
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
summary.module-header::before {
|
summary.module-header::before {
|
||||||
content: "";
|
content: "";
|
||||||
display: inline-block;
|
display: block;
|
||||||
width: 0;
|
flex-shrink: 0;
|
||||||
height: 0;
|
width: 6px;
|
||||||
|
height: 10px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
border-top: 5px solid transparent;
|
background: var(--text-muted);
|
||||||
border-bottom: 5px solid transparent;
|
clip-path: polygon(0 0, 100% 50%, 0 100%);
|
||||||
border-left: 6px solid var(--text-muted);
|
|
||||||
transition: transform 0.2s;
|
transition: transform 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1649,12 +1652,11 @@ input:checked + .toggle-slider::before {
|
|||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* RTL: Module expand icon (CSS triangle) */
|
/* RTL: Module expand icon */
|
||||||
[dir="rtl"] summary.module-header::before {
|
[dir="rtl"] summary.module-header::before {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
border-left: none;
|
clip-path: polygon(100% 0, 0 50%, 100% 100%);
|
||||||
border-right: 6px solid var(--text-muted);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[dir="rtl"] details.module-container[open] > summary.module-header::before {
|
[dir="rtl"] details.module-container[open] > summary.module-header::before {
|
||||||
|
|||||||
Reference in New Issue
Block a user