Files
cocos4/editor/inspector/contributions/asset.css
T
黄森斌 872d00185b optimize inspector editing asset interface (#15343)
* optimize inspector editing asset interface

* fix animation panel time precision bug

* optimize editing interface of asset in inspector
2023-06-07 11:49:38 +08:00

140 lines
2.7 KiB
CSS

:host {
display: flex;
flex-direction: column;
overflow: hidden;
}
:host > .container {
display: flex;
flex: 1;
flex-direction: column;
overflow: hidden;
margin-top: -1px;
}
:host > .container[whole] {
max-height: 100%;
}
:host > .container > .header {
display: flex;
flex: 1;
min-width: 0;
}
:host > .container > .header > .icon {
width: 16px;
font-size: 12px;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
}
:host > .container > .header > .image {
width: 16px;
height: 16px;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
}
:host > .container > .header > .icon:hover,
:host > .container > .header > .image:hover {
opacity: 0.8;
}
:host > .container > .header > .name {
flex: 1;
padding-left: 4px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
cursor: default;
}
:host > .container > .header > .name[readonly] {
opacity: 0.55;
}
:host > .container > .header > .copy {
padding: 0 4px;
height: 18px;
margin-left: 4px;
}
:host > .container > .header > .help {
display: none;
margin-left: 8px;
margin-right: 3px;
}
:host > .container > .header > .lock {
display: none;
font-size: 16px;
color: var(--color-focus-contrast-normal);
margin-left: 4px;
margin-right: 10px;
cursor: pointer;
}
:host > .container > .header > .tiny {
display: none;
padding: 0 4px;
height: 18px;
line-height: 16px;
margin-left: 8px;
}
:host > .container > .header[dirty] > .tiny {
display: inline-block;
}
:host > .container > .content {
display: flex;
flex: 1;
min-height: 0;
flex-direction: column;
}
:host > .container > .content > section {
display: flex;
flex-direction: column;
overflow: hidden;
}
:host > .container > .content > .content-section {
flex: 1;
overflow: scroll;
}
:host > .container > .content > section > ui-panel {
display: flex;
flex-direction: column;
}
:host > .container > .content > section > ui-panel:only-child {
flex: 1;
min-height: 0;
}
:host([sub-type="material"]) > .container > .content,
:host([sub-type="gltf-material"]) > .container > .content {
padding-top: 0;
}
:host([sub-type="material"]) > .container > .content > .content-header,
:host([sub-type="gltf-material"]) > .container > .content > .content-header {
position: sticky;
left: 0;
top: 0;
z-index: 1;
}
:host-context(ui-panel[type="asset"]) > .container {
margin-top: var(--asset-container-margin-top, -1px);
}
:host-context(ui-panel[type="asset"]) > .container > .content > .content-section {
overflow: var(--asset-container-content-section-overflow, auto);
}