mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
feat: sync inspector 3.6 to 3.5 (#10397)
* feat: sync inspector 3.6 to 3.5 * sync inspector edit Co-authored-by: arsen2010 <arsen2010@126.com>
This commit is contained in:
@@ -22,20 +22,21 @@
|
||||
display: flex;
|
||||
padding: 5px 0 10px 0;
|
||||
}
|
||||
|
||||
.prefab[hidden] {
|
||||
display: none;
|
||||
}
|
||||
.prefab > .left {
|
||||
|
||||
.prefab > ui-label {
|
||||
flex: 1;
|
||||
color: var(--color-success-fill);
|
||||
}
|
||||
.prefab .edit-prefab {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.prefab > ui-button {
|
||||
padding: 0 7px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.prefab[missing] > ui-label {
|
||||
color: var(--color-danger-fill);
|
||||
}
|
||||
@@ -44,6 +45,7 @@
|
||||
display: none;
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.header > .name {
|
||||
flex: 1;
|
||||
}
|
||||
@@ -51,80 +53,105 @@
|
||||
.scene {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.scene > ui-prop {
|
||||
margin: 10px 0;
|
||||
}
|
||||
:host([sub-type="scene"]) > .container > .scene {
|
||||
|
||||
:host([sub-type='scene']) > .container > .scene {
|
||||
display: block;
|
||||
}
|
||||
:host([sub-type="scene"]) > .container > .prefab,
|
||||
:host([sub-type="scene"]) > .container > .node,
|
||||
:host([sub-type="scene"]) > .container > .section-header,
|
||||
:host([sub-type="scene"]) > .container > .section-body,
|
||||
:host([sub-type="scene"]) > .container > .section-footer,
|
||||
:host([sub-type="scene"]) > .container > .section-missing,
|
||||
:host([sub-type="scene"]) > .container > .footer {
|
||||
|
||||
:host([sub-type='scene']) > .container > .prefab,
|
||||
:host([sub-type='scene']) > .container > .node,
|
||||
:host([sub-type='scene']) > .container > .section-header,
|
||||
:host([sub-type='scene']) > .container > .section-body,
|
||||
:host([sub-type='scene']) > .container > .section-footer,
|
||||
:host([sub-type='scene']) > .container > .section-missing,
|
||||
:host([sub-type='scene']) > .container > .footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.section-missing:not(:empty) {
|
||||
margin-top: 10px;
|
||||
border-top: 1px solid var(--color-normal-border);
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.section-missing > section {
|
||||
display: flex;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.section-missing > section:hover {
|
||||
background-color: var(--color-hover-fill-normal);
|
||||
}
|
||||
|
||||
.section-missing .name {
|
||||
flex: 1;
|
||||
color: var(--color-warn-fill);
|
||||
}
|
||||
|
||||
.section-missing > section > ui-icon {
|
||||
padding: 0 5px;
|
||||
margin: 0 0 0 10px;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.section-missing > section:hover > ui-icon {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.section-missing > section > ui-icon:hover {
|
||||
color: var(--color-focus-fill-weakest);
|
||||
}
|
||||
|
||||
.node {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.node .layer-content {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.node .layer-content > .layer-select {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.node .layer-content > .layer-edit {
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
.node .node-section {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
:host([sub-type="node"]) > .container > .node {
|
||||
:host([sub-type='node']) > .container > .node {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.component {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.component .component-header {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.component .component-header > .menu,
|
||||
.component .component-header > .link {
|
||||
padding: 0 5px;
|
||||
float: right;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
|
||||
.component .component-header > .menu:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.component .component-header > .link {
|
||||
}
|
||||
|
||||
.component .component-header > .link {
|
||||
display: none;
|
||||
}
|
||||
.component .component-header > .link[value] {
|
||||
}
|
||||
|
||||
.component .component-header > .link[value] {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@@ -132,17 +159,17 @@
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.component ui-prop [slot="label"] {
|
||||
.component ui-prop [slot='label'] {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.footer {
|
||||
display: none;
|
||||
margin: 20px 0 ;
|
||||
margin: 20px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.section-asset:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user