asset.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. :host {
  2. display: flex;
  3. flex-direction: column;
  4. overflow: hidden;
  5. }
  6. :host > .container {
  7. display: flex;
  8. flex: 1;
  9. flex-direction: column;
  10. overflow: hidden;
  11. }
  12. :host > .container[whole] {
  13. max-height: 100%;
  14. }
  15. :host > .container > .header {
  16. display: flex;
  17. align-items: center;
  18. height: 28px;
  19. border-bottom: solid 1px var(--color-normal-fill-emphasis);
  20. }
  21. :host > ui-section.container > .header {
  22. display: flex;
  23. flex: 1;
  24. min-width: 0;
  25. border-bottom: none;
  26. }
  27. :host > .container > .header > .asset-thumbnail {
  28. width: 16px;
  29. height: 16px;
  30. font-size: 12px;
  31. cursor: pointer;
  32. margin-left: 4px;
  33. margin-right: 4px;
  34. }
  35. :host > .container > .header > .icon:hover,
  36. :host > .container > .header > .image:hover {
  37. opacity: 0.8;
  38. }
  39. :host > .container > .header > .name {
  40. flex: 1;
  41. text-overflow: ellipsis;
  42. overflow: hidden;
  43. white-space: nowrap;
  44. cursor: default;
  45. }
  46. :host > .container > .header > .name[readonly] {
  47. opacity: 0.55;
  48. }
  49. :host > .container > .header > .location {
  50. display: none;
  51. margin-right: 4px;
  52. }
  53. :host > .container > .header > .copy {
  54. margin-right: 4px;
  55. }
  56. :host > .container > .header > .help {
  57. display: none;
  58. margin-right: 4px;
  59. }
  60. :host > .container > .header > .lock {
  61. display: none;
  62. font-size: 16px;
  63. color: var(--color-focus-contrast-normal);
  64. margin-left: 4px;
  65. margin-right: 10px;
  66. cursor: pointer;
  67. }
  68. :host > .container > .header > .tiny {
  69. display: none;
  70. margin-right: 4px;
  71. padding: 0 3px;
  72. }
  73. :host > .container > .header[dirty] > .tiny {
  74. display: inline-flex;
  75. }
  76. :host > .container > .content {
  77. display: flex;
  78. flex: 1;
  79. min-height: 0;
  80. flex-direction: column;
  81. }
  82. :host > .container > .content > section {
  83. display: flex;
  84. flex-direction: column;
  85. overflow: hidden;
  86. position: relative;
  87. }
  88. :host > .container > .content > section > inspector-resize-preview {
  89. position: absolute;
  90. left: 0;
  91. right: 0;
  92. z-index: 10;
  93. }
  94. :host > .container > .content > section > inspector-resize-preview[area="header"] {
  95. bottom: 0;
  96. }
  97. :host > .container > .content > section > inspector-resize-preview[area="footer"] {
  98. top: 0;
  99. }
  100. :host > .container > .content > .content-header,
  101. :host > .container > .content > .content-footer {
  102. max-height: 80vh;
  103. }
  104. :host > .container > .content > .content-section {
  105. flex: 1;
  106. overflow: auto;
  107. min-height: 200px;
  108. }
  109. :host > .container > .content > section > ui-panel {
  110. display: flex;
  111. flex-direction: column;
  112. }
  113. :host > .container > .content > section > ui-panel:only-child {
  114. flex: 1;
  115. min-height: 0;
  116. }
  117. :host([uuid]) > .container > .header > .location {
  118. display: inline-flex;
  119. }
  120. :host([sub-type="material"]) > .container > .content,
  121. :host([sub-type="gltf-material"]) > .container > .content {
  122. padding-top: 0;
  123. }
  124. :host([sub-type="material"]) > .container > .content > .content-header,
  125. :host([sub-type="gltf-material"]) > .container > .content > .content-header {
  126. position: sticky;
  127. left: 0;
  128. top: 0;
  129. z-index: 1;
  130. }
  131. :host([type="asset"][sub-type="unknown"]) {
  132. display: none;
  133. }