Files
cocos4/editor/inspector/contributions/asset.css
T
黄森斌 ea9dceeb1b V3.5.0 enable readonly material can be edited (#10518)
* 初步增加克隆只读资源界面

* 编辑节点模式下克隆只读资源时节点里的数据同步替换

* add stopPropagation

Co-authored-by: SijieWang <itharbors@outlook.com>
2022-03-27 13:53:31 +08:00

121 lines
2.2 KiB
CSS

:host {
display: flex;
flex-direction: column;
overflow: hidden;
}
:host > .container {
display: flex;
flex: 1;
flex-direction: column;
overflow: hidden;
}
:host > .container[whole] {
max-height: 100%;
}
:host > .container > .header {
display: flex;
flex: 1;
}
:host > .container > .header > .icon {
width: 20px;
font-size: 14px;
cursor: pointer;
}
:host > .container > .header > .image {
width: 20px;
height: 24px;
cursor: pointer;
}
:host > .container > .header > .icon:hover,
:host > .container > .header > .image:hover {
opacity: 0.8;
}
:host > .container > .header > .name {
flex: 1;
padding-left: 5px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
:host > .container > .header > .name[readonly] {
opacity: 0.5;
}
:host > .container > .header > .help {
display: none;
margin-right: 10px;
}
:host > .container > .header > .copy {
display: none;
font-size: 16px;
color: var(--color-focus-contrast-normal);
margin-left: 4px;
margin-right: 10px;
cursor: pointer;
}
:host > .container > .header > ui-button {
display: none;
padding: 0 6px;
height: 22px;
margin-left: 6px;
margin-right: 6px;
}
:host > .container > .header[dirty] > ui-button {
display: inline-block;
}
:host > .container > .content {
display: flex;
padding-top: 5px;
flex: 1;
flex-direction: column;
}
:host > .container > .content > section {
display: flex;
flex-direction: column;
overflow: hidden;
}
:host > .container > .content > .content-section {
flex: 1;
overflow: auto;
}
:host > .container > .content > section > ui-panel {
display: flex;
flex-direction: column;
}
:host > .container > .content > section > ui-panel:only-child {
flex: 1;
}
:host > .container > .content > .content-footer {
margin-top: 10px;
}
: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;
}