mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
6a198ca5b3
* fix interface bug in inspector * continue fix inspector interface * continue optimize interface
198 lines
3.3 KiB
CSS
198 lines
3.3 KiB
CSS
:host {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: scroll;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.container[hoving] {
|
|
outline: 2px solid var(--color-focus-fill-weaker);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.prefab {
|
|
display: flex;
|
|
padding: 5px 0 10px 0;
|
|
}
|
|
|
|
.prefab[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.prefab > ui-label {
|
|
flex: 1;
|
|
color: var(--color-success-fill);
|
|
}
|
|
|
|
.prefab > ui-button {
|
|
padding: 0 7px;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.prefab[missing] > ui-label {
|
|
color: var(--color-danger-fill);
|
|
}
|
|
|
|
.header {
|
|
display: none;
|
|
margin-top: 4px;
|
|
margin-bottom: 4px;
|
|
padding-left: 2px;
|
|
}
|
|
|
|
.header > .name,
|
|
.component-header .name {
|
|
flex: 1;
|
|
}
|
|
|
|
.scene {
|
|
display: none;
|
|
}
|
|
|
|
.scene .envmap .envmap-prop ui-prop {
|
|
margin-top: 0;
|
|
}
|
|
|
|
:host([type="node"][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 {
|
|
display: none;
|
|
}
|
|
|
|
.section-missing:not(:empty) {
|
|
margin-top: 10px;
|
|
border-top: 1px solid var(--color-normal-border);
|
|
}
|
|
|
|
.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-normal-contrast-emphasis);
|
|
}
|
|
|
|
.section-missing .name span {
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.section-missing > section > ui-icon {
|
|
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;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.node .layer-content > .layer-edit {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.node .node-section {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
:host([sub-type='node']) > .container > .node {
|
|
display: block;
|
|
}
|
|
|
|
.component .component-header {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.component .component-header ui-drag-item {
|
|
flex: 1;
|
|
}
|
|
|
|
.component .component-header > .menu,
|
|
.component .component-header > .link {
|
|
padding: 0 2px;
|
|
}
|
|
|
|
.component .component-header > .menu {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.component .component-header > .menu:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.component .component-header > .link {
|
|
display: none;
|
|
}
|
|
|
|
.component .component-header > .link[value] {
|
|
display: inline-block;
|
|
}
|
|
|
|
.scene .skybox,
|
|
.component ui-prop {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.component ui-prop [slot='label'] {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.footer {
|
|
display: none;
|
|
margin: 20px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.section-asset:empty {
|
|
display: none;
|
|
}
|
|
|
|
.section-asset > ui-panel[type="asset"] {
|
|
margin-bottom: 4px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.section-asset > ui-panel[type="asset"][focused] {
|
|
box-shadow: var(--color-primary-contrast-weakest) 0 0 4px;
|
|
}
|