mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
872d00185b
* optimize inspector editing asset interface * fix animation panel time precision bug * optimize editing interface of asset in inspector
219 lines
3.7 KiB
CSS
219 lines
3.7 KiB
CSS
:host {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: auto;
|
|
}
|
|
|
|
.container[hoving] {
|
|
outline: 2px solid var(--color-focus-fill-weaker);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.prefab {
|
|
display: flex;
|
|
padding: 4px 4px 0 4px;
|
|
}
|
|
|
|
.prefab[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.prefab > ui-label {
|
|
flex: 1;
|
|
color: var(--color-success-fill);
|
|
}
|
|
|
|
.prefab > ui-button {
|
|
padding: 0 8px;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.prefab[missing] > ui-label {
|
|
color: var(--color-danger-fill);
|
|
}
|
|
|
|
.header {
|
|
display: none;
|
|
margin-top: 4px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.header > .active {
|
|
width: 20px;
|
|
}
|
|
|
|
.header > .name,
|
|
.component-header .name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.scene {
|
|
display: none;
|
|
border-top: solid 1px var(--color-normal-border);
|
|
}
|
|
|
|
.scene ui-prop[ui-section-config] ui-section.config [slot="header"] {
|
|
flex: 1;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.scene .envmap .envmap-prop ui-prop {
|
|
margin-top: 0;
|
|
margin-left: 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: 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;
|
|
min-width: 0;
|
|
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;
|
|
}
|
|
|
|
.scene .skybox > [slot="header"] {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.component ui-prop [slot='label'] {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.footer {
|
|
display: none;
|
|
margin: 20px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer .add-component {
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.section-asset {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-asset:empty {
|
|
display: none;
|
|
}
|
|
|
|
.section-asset > ui-panel[type="asset"] {
|
|
--asset-container-margin-top: 0;
|
|
--asset-container-content-section-overflow: visible;
|
|
}
|