优化设置界面折叠项的显示效果

This commit is contained in:
lutinglt
2024-12-26 17:13:36 +08:00
parent f357ee4181
commit e9d2b62b0e
4 changed files with 35 additions and 13 deletions

View File

@@ -1,5 +1,18 @@
// Made by Luting ^-^
// 设置左边栏(包含 Actions 的工作流栏)
%active-item-after-style {
background: #1f6feb;
border-radius: 0.375rem;
content: '';
height: 1.8rem;
left: calc(0.5rem * -1);
position: absolute;
top: calc(50% - 13px);
width: 0.25rem;
}
.ui.vertical.menu {
background: var(--color-body);
border: 0;
@@ -30,14 +43,25 @@
}
.active.item:after {
background: #1f6feb;
border-radius: 0.375rem;
content: '';
height: 1.8rem;
left: calc(0.5rem * -1);
position: absolute;
top: calc(50% - 13px);
width: 0.25rem;
@extend %active-item-after-style;
}
details {
&:has(.active.item) {
background: #161a21;
&[open] {
background: unset;
&:after {
display: none;
}
}
&:after {
@extend %active-item-after-style;
}
}
}
}