feat(ShaderBake): 细节面板六个板块改用 Foldout 折叠
原来每个板块标题是个带复选框的 Toggle:功能上能折,但看着像"启用开关", 不容易发现是在折叠。现在换成 Foldout,标题左侧的三角就是状态,整条可点、 悬停有底色,六块各自独立折叠;全局参数仍默认折叠。 组内内容的左右留边挪到 .unity-foldout__content 上,BindSections/Collapsible 一并删掉。
This commit is contained in:
@@ -171,19 +171,27 @@
|
||||
.section {
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-color: rgb(52, 52, 52);
|
||||
padding-top: 4px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
|
||||
.section-head {
|
||||
/* 折叠头:Foldout 自带的三角就是状态指示,整条都能点,悬停给一点底色 */
|
||||
.section > .unity-foldout__toggle {
|
||||
font-size: 12px;
|
||||
margin-left: 6px;
|
||||
margin-bottom: 2px;
|
||||
color: rgb(225, 225, 225);
|
||||
margin-left: 2px;
|
||||
margin-bottom: 2px;
|
||||
padding: 2px 4px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.section-body {
|
||||
padding-left: 8px;
|
||||
.section > .unity-foldout__toggle:hover {
|
||||
background-color: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
/* 内容左右留边:子项不该贴着三角和面板边 */
|
||||
.section > .unity-foldout__content {
|
||||
padding-left: 10px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user