center-panel.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. .layout {
  2. flex: 1;
  3. min-height: 0;
  4. display: flex;
  5. gap: 0;
  6. padding: 8px;
  7. align-items: stretch;
  8. overflow: hidden;
  9. }
  10. #leftWindowMount,
  11. #centerPanelMount,
  12. #rightWindowMount {
  13. display: flex;
  14. min-height: 0;
  15. }
  16. #leftWindowMount,
  17. #rightWindowMount {
  18. flex: 0 0 auto;
  19. }
  20. #centerPanelMount {
  21. flex: 1 1 auto;
  22. min-width: 0;
  23. }
  24. #leftWindowMount > .tool-window,
  25. #rightWindowMount > .tool-window {
  26. height: 100%;
  27. }
  28. #centerPanelMount > .center-panel {
  29. height: 100%;
  30. }
  31. .tool-window {
  32. min-height: 0;
  33. height: 100%;
  34. display: flex;
  35. align-items: stretch;
  36. flex: 0 0 auto;
  37. }
  38. .icon-rail,
  39. .tool-content {
  40. height: 100%;
  41. }
  42. .center-panel {
  43. flex: 1 1 auto;
  44. min-width: 620px;
  45. margin: 0 4px;
  46. display: flex;
  47. flex-direction: column;
  48. min-height: 0;
  49. overflow: hidden;
  50. }
  51. .app.dock-open #leftContent,
  52. .app.dock-open #rightContent,
  53. .app.dock-open .center-panel {
  54. margin-bottom: calc(var(--bottom-dock-space) + var(--bottom-dock-gap));
  55. }
  56. .app.dock-open .center-panel {
  57. overflow: hidden;
  58. }
  59. .stage-wrap {
  60. flex: 1 1 auto;
  61. min-height: 180px;
  62. height: auto;
  63. max-height: none;
  64. display: block;
  65. overflow: auto;
  66. border: 1px solid var(--line-main);
  67. border-radius: 8px;
  68. background:
  69. linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
  70. linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
  71. var(--bg-stage);
  72. padding: 12px;
  73. }
  74. .stage-canvas-holder {
  75. min-width: 100%;
  76. width: max-content;
  77. text-align: center;
  78. }
  79. .image-stage {
  80. position: relative;
  81. display: inline-block;
  82. width: auto !important;
  83. height: auto !important;
  84. min-width: 320px;
  85. min-height: 180px;
  86. border: 1px solid var(--line-main);
  87. border-radius: 6px;
  88. overflow: hidden;
  89. background: var(--bg-stage-inner);
  90. vertical-align: top;
  91. line-height: 0;
  92. box-shadow: var(--shadow-stage);
  93. }
  94. #mainImage {
  95. position: relative;
  96. display: block;
  97. width: auto;
  98. height: auto;
  99. max-width: none;
  100. max-height: none;
  101. object-fit: fill;
  102. user-select: none;
  103. pointer-events: none;
  104. }
  105. #mainImage:not([src]),
  106. #mainImage[src=""] {
  107. display: none;
  108. }
  109. .no-image {
  110. position: absolute;
  111. inset: 0;
  112. display: flex;
  113. align-items: center;
  114. justify-content: center;
  115. color: var(--text-muted);
  116. font-size: 12px;
  117. pointer-events: none;
  118. }
  119. .roi {
  120. position: absolute;
  121. border-style: solid;
  122. cursor: move;
  123. user-select: none;
  124. z-index: 3;
  125. }
  126. .roi .tag {
  127. position: absolute;
  128. left: 0;
  129. top: -19px;
  130. font-size: 10px;
  131. padding: 2px 5px;
  132. border-radius: 4px;
  133. background: rgba(10, 12, 14, 0.86);
  134. color: #f3f8ff;
  135. }
  136. html[data-theme="light"] .roi .tag {
  137. background: rgba(24, 33, 49, 0.82);
  138. }
  139. .roi .resize-handle {
  140. position: absolute;
  141. width: 10px;
  142. height: 10px;
  143. background: #fff;
  144. border: 1px solid currentColor;
  145. border-radius: 2px;
  146. z-index: 1;
  147. }
  148. .roi .resize-handle-nw {
  149. left: -5px;
  150. top: -5px;
  151. cursor: nwse-resize;
  152. }
  153. .roi .resize-handle-ne {
  154. right: -5px;
  155. top: -5px;
  156. cursor: nesw-resize;
  157. }
  158. .roi .resize-handle-sw {
  159. left: -5px;
  160. bottom: -5px;
  161. cursor: nesw-resize;
  162. }
  163. .roi .resize-handle-se {
  164. right: -5px;
  165. bottom: -5px;
  166. cursor: nwse-resize;
  167. }
  168. .roi-front {
  169. border-width: 2px;
  170. border-color: #ff6b6b;
  171. color: #ff6b6b;
  172. }
  173. .roi-back {
  174. border-width: 2px;
  175. border-color: #7fd67f;
  176. color: #7fd67f;
  177. }
  178. .roi-test-front {
  179. border-width: 2px;
  180. border-color: #7fa7ff;
  181. color: #7fa7ff;
  182. border-style: dashed;
  183. pointer-events: none;
  184. }
  185. .roi-test-back {
  186. border-width: 2px;
  187. border-color: #58c7c7;
  188. color: #58c7c7;
  189. border-style: dashed;
  190. pointer-events: none;
  191. }
  192. .roi-values {
  193. display: grid;
  194. grid-template-columns: 1fr 1fr;
  195. gap: 8px;
  196. margin-top: 8px;
  197. flex-shrink: 0;
  198. }
  199. .output-panel {
  200. margin-top: 8px;
  201. border: 1px solid var(--line-main);
  202. border-radius: 8px;
  203. background: var(--bg-subpanel);
  204. display: flex;
  205. flex-direction: column;
  206. min-height: 120px;
  207. max-height: 240px;
  208. flex: 0 0 auto;
  209. overflow: hidden;
  210. }
  211. .center-output-panel {
  212. flex: 0 0 auto;
  213. height: clamp(130px, 18vh, 220px);
  214. min-height: 120px;
  215. max-height: 240px;
  216. }
  217. .output-header {
  218. display: flex;
  219. align-items: center;
  220. justify-content: space-between;
  221. border-bottom: 1px solid var(--line-main);
  222. padding: 8px 10px;
  223. }
  224. .output-log {
  225. margin: 0;
  226. padding: 8px 10px;
  227. font-size: 12px;
  228. line-height: 1.5;
  229. white-space: pre-wrap;
  230. word-break: break-word;
  231. overflow: auto;
  232. flex: 1;
  233. color: var(--text-main);
  234. background: var(--bg-output);
  235. }
  236. @media (max-width: 1800px) {
  237. .center-panel {
  238. min-width: 520px;
  239. }
  240. }
  241. @media (max-height: 900px) {
  242. .stage-wrap {
  243. min-height: 150px;
  244. }
  245. .center-output-panel {
  246. height: clamp(110px, 16vh, 180px);
  247. min-height: 110px;
  248. max-height: 180px;
  249. }
  250. }
  251. @media (max-width: 720px) {
  252. .layout {
  253. padding: 6px;
  254. gap: 6px;
  255. }
  256. .roi-values {
  257. grid-template-columns: 1fr;
  258. }
  259. }