Style.js 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724
  1. export class Style {
  2. static init( container ) {
  3. const css = /* css */`
  4. @scope (.three-inspector) {
  5. :scope {
  6. --profiler-background: #1e1e24f5;
  7. --profiler-header-background: #2a2a33aa;
  8. --profiler-header: #2a2a33;
  9. --profiler-border: #4a4a5a;
  10. --text-primary: #e0e0e0;
  11. --text-secondary: #9a9aab;
  12. --color-accent: #00aaff;
  13. --color-green: #4caf50;
  14. --color-yellow: #ffc107;
  15. --color-red: #f44336;
  16. --color-fps: rgb(63, 81, 181);
  17. --color-call: rgba(255, 185, 34, 1);
  18. --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  19. --font-mono: 'Courier New', Courier, monospace;
  20. }
  21. .profiler-panel *, .profiler-toggle * {
  22. text-transform: initial;
  23. line-height: normal;
  24. box-sizing: border-box;
  25. -webkit-font-smoothing: antialiased;
  26. -moz-osx-font-smoothing: grayscale;
  27. }
  28. .profiler-toggle {
  29. position: fixed;
  30. top: 15px;
  31. right: 15px;
  32. background-color: rgba(30, 30, 36, 0.85);
  33. border: 1px solid #4a4a5a54;
  34. border-radius: 12px 6px 6px 12px;
  35. color: var(--text-primary);
  36. cursor: pointer;
  37. z-index: 1001;
  38. transition: all 0.2s ease-in-out;
  39. /*font-size: 14px;*/
  40. font-size: 15px;
  41. backdrop-filter: blur(8px);
  42. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  43. display: flex;
  44. align-items: stretch;
  45. padding: 0;
  46. overflow: hidden;
  47. font-family: var(--font-family);
  48. }
  49. .profiler-toggle.position-right.panel-open {
  50. right: auto;
  51. left: 15px;
  52. border-radius: 6px 12px 12px 6px;
  53. flex-direction: row-reverse;
  54. }
  55. .profiler-toggle.position-right.panel-open .builtin-tabs-container {
  56. border-right: none;
  57. border-left: 1px solid #262636;
  58. }
  59. .profiler-toggle:hover {
  60. border-color: var(--color-accent);
  61. }
  62. .profiler-toggle.panel-open .toggle-icon {
  63. background-color: rgba(0, 170, 255, 0.2);
  64. color: var(--color-accent);
  65. }
  66. .toggle-icon {
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. width: 40px;
  71. font-size: 20px;
  72. transition: background-color 0.2s;
  73. }
  74. .profiler-toggle:hover .toggle-icon {
  75. background-color: rgba(255, 255, 255, 0.05);
  76. }
  77. .profiler-toggle.panel-open:hover .toggle-icon {
  78. background-color: rgba(0, 170, 255, 0.3);
  79. }
  80. .toggle-separator {
  81. width: 1px;
  82. background-color: var(--profiler-border);
  83. }
  84. .toggle-text {
  85. display: flex;
  86. align-items: baseline;
  87. padding: 8px 14px;
  88. min-width: 80px;
  89. justify-content: right;
  90. }
  91. .toggle-text .fps-label {
  92. font-size: 0.7em;
  93. margin-left: 10px;
  94. color: #999;
  95. }
  96. .builtin-tabs-container {
  97. display: flex;
  98. align-items: stretch;
  99. gap: 0;
  100. border-right: 1px solid #262636;
  101. order: -1;
  102. }
  103. .builtin-tab-btn {
  104. background: transparent;
  105. border: none;
  106. color: var(--text-secondary);
  107. cursor: pointer;
  108. padding: 8px 14px;
  109. font-family: var(--font-family);
  110. font-size: 13px;
  111. font-weight: 600;
  112. transition: all 0.2s;
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. min-width: 32px;
  117. position: relative;
  118. }
  119. .builtin-tab-btn svg {
  120. width: 20px;
  121. height: 20px;
  122. stroke: currentColor;
  123. }
  124. .builtin-tab-btn:hover {
  125. background-color: rgba(255, 255, 255, 0.08);
  126. color: var(--color-accent);
  127. }
  128. .builtin-tab-btn:active {
  129. background-color: rgba(255, 255, 255, 0.12);
  130. }
  131. .builtin-tab-btn.active {
  132. background-color: rgba(0, 170, 255, 0.2);
  133. color: var(--color-accent);
  134. }
  135. .builtin-tab-btn.active:hover {
  136. background-color: rgba(0, 170, 255, 0.3);
  137. }
  138. .profiler-mini-panel {
  139. position: fixed;
  140. top: 60px;
  141. right: 15px;
  142. background-color: rgba(30, 30, 36, 0.85);
  143. border: 1px solid #4a4a5a54;
  144. border-radius: 8px;
  145. color: var(--text-primary);
  146. z-index: 9999;
  147. backdrop-filter: blur(8px);
  148. box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  149. font-family: var(--font-family);
  150. font-size: 11px;
  151. width: 350px;
  152. max-height: calc(100vh - 100px);
  153. overflow-y: auto;
  154. overflow-x: hidden;
  155. display: none;
  156. opacity: 0;
  157. transform: translateY(-10px) scale(0.98);
  158. transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
  159. transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  160. }
  161. .profiler-mini-panel.position-right.panel-open {
  162. right: auto;
  163. left: 15px;
  164. }
  165. .profiler-mini-panel.visible {
  166. display: block;
  167. opacity: 1;
  168. transform: translateY(0) scale(1);
  169. }
  170. .profiler-mini-panel::-webkit-scrollbar {
  171. width: 6px;
  172. }
  173. .profiler-mini-panel::-webkit-scrollbar-track {
  174. background: transparent;
  175. }
  176. .profiler-mini-panel::-webkit-scrollbar-thumb {
  177. background: rgba(255, 255, 255, 0.15);
  178. border-radius: 3px;
  179. transition: background 0.2s;
  180. }
  181. .profiler-mini-panel::-webkit-scrollbar-thumb:hover {
  182. background: rgba(255, 255, 255, 0.25);
  183. }
  184. .mini-panel-content {
  185. padding: 0;
  186. font-size: 11px;
  187. line-height: 1.5;
  188. font-family: var(--font-mono);
  189. letter-spacing: 0.3px;
  190. user-select: none;
  191. -webkit-user-select: none;
  192. }
  193. .mini-panel-content .profiler-content {
  194. display: block !important;
  195. background: transparent;
  196. }
  197. .mini-panel-content .list-scroll-wrapper {
  198. max-height: calc(100vh - 120px);
  199. overflow-y: auto;
  200. overflow-x: hidden;
  201. width: 100%;
  202. }
  203. .mini-panel-content .list-scroll-wrapper::-webkit-scrollbar {
  204. width: 4px;
  205. }
  206. .mini-panel-content .list-scroll-wrapper::-webkit-scrollbar-track {
  207. background: transparent;
  208. }
  209. .mini-panel-content .list-scroll-wrapper::-webkit-scrollbar-thumb {
  210. background: rgba(255, 255, 255, 0.1);
  211. border-radius: 2px;
  212. }
  213. .mini-panel-content .list-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  214. background: rgba(255, 255, 255, 0.2);
  215. }
  216. .mini-panel-content .parameters {
  217. background: transparent;
  218. border: none;
  219. box-shadow: none;
  220. padding: 4px;
  221. }
  222. .mini-panel-content .list-container.parameters {
  223. padding: 2px 6px 0px 6px !important;
  224. }
  225. .mini-panel-content .list-header {
  226. display: none;
  227. padding: 2px 4px;
  228. font-size: 11px;
  229. font-weight: 600;
  230. text-transform: uppercase;
  231. letter-spacing: 0.5px;
  232. }
  233. .mini-panel-content .list-item {
  234. border-bottom: 1px solid rgba(74, 74, 90, 0.2);
  235. transition: background-color 0.15s;
  236. }
  237. .mini-panel-content .list-item:last-child {
  238. border-bottom: none;
  239. }
  240. .mini-panel-content .list-item:hover {
  241. background-color: rgba(255, 255, 255, 0.04);
  242. }
  243. .mini-panel-content .list-item.actionable:hover {
  244. background-color: rgba(255, 255, 255, 0.06);
  245. cursor: pointer;
  246. }
  247. .info-icon {
  248. display: inline-flex;
  249. align-items: center;
  250. justify-content: center;
  251. width: 14px;
  252. height: 14px;
  253. border-radius: 50%;
  254. background-color: rgba(255, 255, 255, 0.1);
  255. color: var(--text-secondary);
  256. font-size: 10px;
  257. font-style: italic;
  258. margin-left: 6px;
  259. cursor: help;
  260. position: relative;
  261. }
  262. .info-icon:hover {
  263. background-color: var(--color-accent);
  264. color: white;
  265. }
  266. .info-tooltip {
  267. position: fixed;
  268. transform: translate(-50%, -100%);
  269. background-color: rgba(30, 30, 36, 0.95);
  270. border: 1px solid var(--profiler-border);
  271. border-radius: 6px;
  272. padding: 10px 14px;
  273. color: var(--text-primary);
  274. font-size: 12px;
  275. width: max-content;
  276. max-width: 250px;
  277. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  278. pointer-events: none;
  279. opacity: 0;
  280. visibility: hidden;
  281. transition: opacity 0.2s, visibility 0.2s;
  282. z-index: 999999;
  283. font-style: normal;
  284. font-family: var(--font-family);
  285. text-align: left;
  286. white-space: normal;
  287. }
  288. .info-tooltip h3 {
  289. margin: 0 0 6px 0;
  290. font-size: 13px;
  291. color: var(--color-accent);
  292. }
  293. .info-tooltip strong {
  294. font-weight: 600;
  295. color: white;
  296. }
  297. /* Style adjustments for lil-gui look */
  298. .mini-panel-content .item-row {
  299. padding: 3px 8px;
  300. min-height: 24px;
  301. }
  302. .mini-panel-content .list-item-row {
  303. padding: 1px 4px;
  304. gap: 8px;
  305. min-height: 21px;
  306. align-items: center;
  307. }
  308. .mini-panel-content input[type="checkbox"] {
  309. width: 12px;
  310. height: 12px;
  311. }
  312. .mini-panel-content input[type="range"] {
  313. height: 18px;
  314. }
  315. .mini-panel-content .value-number input,
  316. .mini-panel-content .value-slider input {
  317. background-color: rgba(0, 0, 0, 0.3);
  318. border: 1px solid rgba(74, 74, 90, 0.5);
  319. font-size: 10px;
  320. }
  321. .mini-panel-content .value-number input:focus,
  322. .mini-panel-content .value-slider input:focus {
  323. border-color: var(--color-accent);
  324. }
  325. .mini-panel-content .value-slider {
  326. gap: 6px;
  327. }
  328. /* Compact nested items */
  329. .mini-panel-content .list-item .list-item {
  330. margin-left: 8px;
  331. }
  332. .mini-panel-content .list-item .list-item .item-row,
  333. .mini-panel-content .list-item .list-item .list-item-row {
  334. padding: 2px 6px;
  335. min-height: 22px;
  336. }
  337. /* Compact collapsible headers */
  338. .mini-panel-content .collapsible .item-row,
  339. .mini-panel-content .list-item-row.collapsible {
  340. padding: 2px 8px;
  341. font-weight: 600;
  342. min-height: 16px;
  343. display: flex;
  344. align-items: center;
  345. }
  346. .mini-panel-content .collapsible-icon {
  347. font-size: 10px;
  348. width: 14px;
  349. height: 14px;
  350. }
  351. .mini-panel-content .param-control input[type="range"] {
  352. height: 12px;
  353. margin-top: 1px;
  354. padding-top: 5px;
  355. user-select: none;
  356. -webkit-user-select: none;
  357. outline: none;
  358. }
  359. .mini-panel-content .param-control input[type="range"]::-webkit-slider-thumb {
  360. width: 14px;
  361. height: 14px;
  362. margin-top: -5px;
  363. user-select: none;
  364. -webkit-user-select: none;
  365. }
  366. .mini-panel-content .param-control input[type="range"]::-moz-range-thumb {
  367. width: 14px;
  368. height: 14px;
  369. user-select: none;
  370. -moz-user-select: none;
  371. }
  372. .mini-panel-content .list-children-container {
  373. padding-left: 0;
  374. }
  375. .mini-panel-content .param-control input[type="number"] {
  376. flex-basis: 60px !important;
  377. }
  378. .mini-panel-content .param-control {
  379. align-items: center;
  380. }
  381. .mini-panel-content .param-control select {
  382. font-size: 11px;
  383. }
  384. .mini-panel-content .list-item-wrapper {
  385. margin-top: 0;
  386. margin-bottom: 0;
  387. }
  388. .profiler-panel {
  389. position: fixed;
  390. z-index: 1001 !important;
  391. bottom: 0;
  392. left: 0;
  393. right: 0;
  394. height: 350px;
  395. background-color: var(--profiler-background);
  396. backdrop-filter: blur(8px);
  397. border-top: 2px solid var(--profiler-border);
  398. color: var(--text-primary);
  399. display: flex;
  400. flex-direction: column;
  401. z-index: 1000;
  402. /*box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);*/
  403. transform: translateY(100%);
  404. transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.3s ease-out, width 0.3s ease-out;
  405. font-family: var(--font-mono);
  406. }
  407. .profiler-panel.resizing,
  408. .profiler-panel.dragging {
  409. transition: none;
  410. }
  411. .profiler-panel.visible {
  412. transform: translateY(0);
  413. }
  414. .profiler-panel.maximized {
  415. height: 100vh;
  416. }
  417. /* Position-specific styles */
  418. .profiler-panel.position-top {
  419. bottom: auto;
  420. top: 0;
  421. border-top: none;
  422. border-bottom: 2px solid var(--profiler-border);
  423. transform: translateY(-100%);
  424. }
  425. .profiler-panel.position-top.visible {
  426. transform: translateY(0);
  427. }
  428. .profiler-panel.position-bottom {
  429. /* Default position - already defined above */
  430. }
  431. .profiler-panel.position-left {
  432. top: 0;
  433. bottom: 0;
  434. left: 0;
  435. right: auto;
  436. width: 350px;
  437. height: 100%;
  438. border-top: none;
  439. border-right: 2px solid var(--profiler-border);
  440. transform: translateX(-100%);
  441. }
  442. .profiler-panel.position-left.visible {
  443. transform: translateX(0);
  444. }
  445. .profiler-panel.position-right {
  446. top: 0;
  447. bottom: 0;
  448. left: auto;
  449. right: 0;
  450. width: 350px;
  451. height: 100%;
  452. border-top: none;
  453. border-left: 2px solid var(--profiler-border);
  454. transform: translateX(100%);
  455. }
  456. .profiler-panel.position-right.visible {
  457. transform: translateX(0);
  458. }
  459. .profiler-panel.position-floating {
  460. border: 2px solid var(--profiler-border);
  461. border-radius: 8px;
  462. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  463. transform: none !important;
  464. overflow: hidden;
  465. }
  466. .profiler-panel.position-floating.visible {
  467. transform: none !important;
  468. }
  469. .profiler-panel.position-floating .profiler-header {
  470. border-radius: 6px 6px 0 0;
  471. }
  472. .profiler-panel.position-floating .panel-resizer {
  473. bottom: 0;
  474. right: 0;
  475. top: auto;
  476. left: auto;
  477. width: 16px;
  478. height: 16px;
  479. cursor: nwse-resize;
  480. border-radius: 0 0 6px 0;
  481. }
  482. .profiler-panel.position-floating .panel-resizer::after {
  483. content: '';
  484. position: absolute;
  485. right: 2px;
  486. bottom: 2px;
  487. width: 10px;
  488. height: 10px;
  489. background: linear-gradient(135deg, transparent 0%, transparent 45%, var(--profiler-border) 45%, var(--profiler-border) 55%, transparent 55%);
  490. }
  491. .panel-resizer {
  492. position: absolute;
  493. top: -2px;
  494. left: 0;
  495. width: 100%;
  496. height: 5px;
  497. cursor: ns-resize;
  498. z-index: 1001;
  499. touch-action: none;
  500. }
  501. .profiler-panel.position-top .panel-resizer {
  502. top: auto;
  503. bottom: -2px;
  504. }
  505. .profiler-panel.position-left .panel-resizer {
  506. top: 0;
  507. left: auto;
  508. right: -2px;
  509. width: 5px;
  510. height: 100%;
  511. cursor: ew-resize;
  512. }
  513. .profiler-panel.position-right .panel-resizer {
  514. top: 0;
  515. left: -2px;
  516. right: auto;
  517. width: 5px;
  518. height: 100%;
  519. cursor: ew-resize;
  520. }
  521. .profiler-header {
  522. display: flex;
  523. background-color: var(--profiler-header-background);
  524. border-bottom: 1px solid var(--profiler-border);
  525. flex-shrink: 0;
  526. justify-content: space-between;
  527. align-items: stretch;
  528. overflow-x: auto;
  529. overflow-y: hidden;
  530. width: calc(100% - 134px);
  531. height: 38px;
  532. user-select: none;
  533. -webkit-user-select: none;
  534. }
  535. /* Adjust header width based on panel position */
  536. .profiler-panel.position-right .profiler-header,
  537. .profiler-panel.position-left .profiler-header {
  538. width: calc(100% - 134px);
  539. }
  540. .profiler-panel.position-bottom .profiler-header,
  541. .profiler-panel.position-top .profiler-header {
  542. width: calc(100% - 134px);
  543. }
  544. /* Adjust header width when position toggle button is hidden (mobile) */
  545. .profiler-panel.hide-position-toggle .profiler-header {
  546. width: calc(100% - 90px);
  547. }
  548. /* ===== RULES FOR WHEN THERE ARE NO TABS ===== */
  549. /* Horizontal mode (bottom/top) without tabs */
  550. .profiler-panel.position-bottom.no-tabs:not(.maximized),
  551. .profiler-panel.position-top.no-tabs:not(.maximized) {
  552. height: 38px !important;
  553. min-height: 38px !important;
  554. }
  555. .profiler-panel.position-bottom.no-tabs .profiler-header,
  556. .profiler-panel.position-top.no-tabs .profiler-header {
  557. width: 100%;
  558. height: 38px;
  559. border-bottom: none;
  560. }
  561. .profiler-panel.position-bottom.no-tabs .profiler-content-wrapper,
  562. .profiler-panel.position-top.no-tabs .profiler-content-wrapper {
  563. display: none;
  564. }
  565. .profiler-panel.position-bottom.no-tabs .panel-resizer,
  566. .profiler-panel.position-top.no-tabs .panel-resizer {
  567. display: none;
  568. }
  569. /* Vertical mode (right/left) without tabs */
  570. .profiler-panel.position-right.no-tabs:not(.maximized),
  571. .profiler-panel.position-left.no-tabs:not(.maximized) {
  572. width: 45px !important;
  573. min-width: 45px !important;
  574. }
  575. /* Vertical layout for header when no tabs */
  576. .profiler-panel.position-right.no-tabs .profiler-header,
  577. .profiler-panel.position-left.no-tabs .profiler-header {
  578. width: 100%;
  579. flex-direction: column;
  580. height: 100%;
  581. border-bottom: none;
  582. }
  583. /* Vertical layout for controls when no tabs */
  584. .profiler-panel.position-right.no-tabs .profiler-controls,
  585. .profiler-panel.position-left.no-tabs .profiler-controls {
  586. position: static;
  587. flex-direction: column-reverse;
  588. justify-content: flex-end;
  589. width: 100%;
  590. height: 100%;
  591. border-bottom: none;
  592. border-left: none;
  593. background: transparent;
  594. }
  595. .profiler-panel.position-right.no-tabs .profiler-controls button,
  596. .profiler-panel.position-left.no-tabs .profiler-controls button {
  597. width: 100%;
  598. height: 45px;
  599. border-left: none;
  600. border-top: none;
  601. border-bottom: 1px solid var(--profiler-border);
  602. }
  603. .profiler-panel.position-right.no-tabs .profiler-content-wrapper,
  604. .profiler-panel.position-left.no-tabs .profiler-content-wrapper {
  605. display: none;
  606. }
  607. .profiler-panel.position-right.no-tabs .profiler-tabs,
  608. .profiler-panel.position-left.no-tabs .profiler-tabs {
  609. display: none;
  610. }
  611. .profiler-panel.position-right.no-tabs .panel-resizer,
  612. .profiler-panel.position-left.no-tabs .panel-resizer {
  613. display: none;
  614. }
  615. /* Hide position toggle on mobile without tabs */
  616. .profiler-panel.hide-position-toggle.position-right.no-tabs:not(.maximized),
  617. .profiler-panel.hide-position-toggle.position-left.no-tabs:not(.maximized) {
  618. width: 45px !important;
  619. min-width: 45px !important;
  620. }
  621. /* Hide drag indicator on mobile devices */
  622. .profiler-panel.is-mobile .tab-btn.active::before {
  623. display: none;
  624. }
  625. .profiler-header::-webkit-scrollbar {
  626. width: 8px;
  627. height: 8px;
  628. }
  629. .profiler-header::-webkit-scrollbar-track {
  630. background: transparent;
  631. }
  632. .profiler-header::-webkit-scrollbar-thumb {
  633. background-color: rgba(0, 0, 0, 0.25);
  634. border-radius: 10px;
  635. transition: background 0.3s ease;
  636. }
  637. .profiler-header::-webkit-scrollbar-thumb:hover {
  638. background-color: rgba(0, 0, 0, 0.4);
  639. }
  640. .profiler-header::-webkit-scrollbar-corner {
  641. background: transparent;
  642. }
  643. .profiler-panel.dragging .profiler-header {
  644. cursor: grabbing !important;
  645. }
  646. .profiler-panel.dragging {
  647. opacity: 0.8;
  648. }
  649. .profiler-tabs {
  650. display: flex;
  651. cursor: grab;
  652. position: relative;
  653. }
  654. .profiler-tabs:active {
  655. cursor: grabbing;
  656. }
  657. .profiler-tabs::-webkit-scrollbar {
  658. width: 8px;
  659. height: 8px;
  660. }
  661. .profiler-tabs::-webkit-scrollbar-track {
  662. background: transparent;
  663. }
  664. .profiler-tabs::-webkit-scrollbar-thumb {
  665. background-color: rgba(0, 0, 0, 0.25);
  666. border-radius: 10px;
  667. transition: background 0.3s ease;
  668. }
  669. .profiler-tabs::-webkit-scrollbar-thumb:hover {
  670. background-color: rgba(0, 0, 0, 0.4);
  671. }
  672. .profiler-tabs::-webkit-scrollbar-corner {
  673. background: transparent;
  674. }
  675. .profiler-controls {
  676. display: flex;
  677. position: absolute;
  678. right: 0;
  679. top: 0;
  680. height: 38px;
  681. background: var(--profiler-header-background);
  682. border-bottom: 1px solid var(--profiler-border);
  683. }
  684. .tab-btn {
  685. position: relative;
  686. background: transparent;
  687. border: none;
  688. /*border-right: 1px solid var(--profiler-border);*/
  689. color: var(--text-secondary);
  690. padding: 8px 18px;
  691. cursor: default;
  692. display: flex;
  693. align-items: center;
  694. font-family: var(--font-family);
  695. font-weight: 600;
  696. font-size: 14px;
  697. user-select: none;
  698. transition: opacity 0.2s, transform 0.2s;
  699. touch-action: pan-x;
  700. white-space: nowrap;
  701. }
  702. .tab-btn.active {
  703. border-bottom: 2px solid var(--color-accent);
  704. color: white;
  705. }
  706. .tab-btn.active::before {
  707. content: '⋮⋮';
  708. position: absolute;
  709. left: 3px;
  710. top: calc(50% - .1rem);
  711. transform: translateY(-50%);
  712. color: var(--profiler-border);
  713. font-size: 18px;
  714. letter-spacing: -2px;
  715. opacity: 0.6;
  716. }
  717. .tab-btn.no-detach.active::before {
  718. display: none;
  719. }
  720. .floating-btn,
  721. .maximize-btn,
  722. .hide-panel-btn {
  723. background: transparent;
  724. border: none;
  725. border-left: 1px solid var(--profiler-border);
  726. color: var(--text-secondary);
  727. width: 45px;
  728. height: 100%;
  729. cursor: pointer;
  730. transition: all 0.2s;
  731. display: flex;
  732. align-items: center;
  733. justify-content: center;
  734. flex-shrink: 0;
  735. }
  736. /* Disable transitions in vertical mode to avoid broken animations */
  737. .profiler-panel.position-right .floating-btn,
  738. .profiler-panel.position-right .maximize-btn,
  739. .profiler-panel.position-right .hide-panel-btn,
  740. .profiler-panel.position-left .floating-btn,
  741. .profiler-panel.position-left .maximize-btn,
  742. .profiler-panel.position-left .hide-panel-btn {
  743. transition: background-color 0.2s, color 0.2s;
  744. }
  745. .floating-btn:hover,
  746. .maximize-btn:hover,
  747. .hide-panel-btn:hover {
  748. background-color: rgba(255, 255, 255, 0.1);
  749. color: var(--text-primary);
  750. }
  751. /* Hide maximize button when there are no tabs */
  752. .profiler-panel.position-right.no-tabs .maximize-btn,
  753. .profiler-panel.position-left.no-tabs .maximize-btn,
  754. .profiler-panel.position-bottom.no-tabs .maximize-btn,
  755. .profiler-panel.position-top.no-tabs .maximize-btn {
  756. display: none !important;
  757. }
  758. .profiler-content-wrapper {
  759. flex-grow: 1;
  760. overflow: hidden;
  761. position: relative;
  762. }
  763. .profiler-content {
  764. position: absolute;
  765. top: 0;
  766. left: 0;
  767. width: 100%;
  768. height: 100%;
  769. overflow-y: auto;
  770. font-size: 13px;
  771. visibility: hidden;
  772. opacity: 0;
  773. transition: opacity 0.2s, visibility 0.2s;
  774. box-sizing: border-box;
  775. display: flex;
  776. flex-direction: column;
  777. user-select: none;
  778. -webkit-user-select: none;
  779. }
  780. .profiler-content.active {
  781. visibility: visible;
  782. opacity: 1;
  783. }
  784. .profiler-content {
  785. overflow: auto; /* make sure scrollbars can appear */
  786. }
  787. .profiler-content::-webkit-scrollbar {
  788. width: 8px;
  789. height: 8px;
  790. }
  791. .profiler-content::-webkit-scrollbar-track {
  792. background: transparent;
  793. }
  794. .profiler-content::-webkit-scrollbar-thumb {
  795. background-color: rgba(0, 0, 0, 0.25);
  796. border-radius: 10px;
  797. transition: background 0.3s ease;
  798. }
  799. .profiler-content::-webkit-scrollbar-thumb:hover {
  800. background-color: rgba(0, 0, 0, 0.4);
  801. }
  802. .profiler-content::-webkit-scrollbar-corner {
  803. background: transparent;
  804. }
  805. .profiler-content {
  806. scrollbar-width: thin; /* "auto" | "thin" */
  807. scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
  808. }
  809. .list-item-row {
  810. display: grid;
  811. align-items: center;
  812. padding: 4px 8px;
  813. border-radius: 3px;
  814. transition: background-color 0.2s;
  815. gap: 10px;
  816. border-bottom: none;
  817. user-select: none;
  818. -webkit-user-select: none;
  819. }
  820. .parameters .list-item-row {
  821. min-height: 31px;
  822. }
  823. .mini-panel-content .parameters .list-item-row {
  824. min-height: 21px;
  825. }
  826. .list-item-wrapper {
  827. margin-top: 2px;
  828. margin-bottom: 2px;
  829. user-select: none;
  830. -webkit-user-select: none;
  831. }
  832. .list-item-wrapper:first-child {
  833. /*margin-top: 0;*/
  834. }
  835. .list-item-wrapper:not(.header-wrapper):nth-child(odd) > .list-item-row {
  836. background-color: rgba(0,0,0,0.1);
  837. }
  838. .list-item-wrapper.header-wrapper>.list-item-row {
  839. color: var(--color-accent);
  840. background-color: rgba(0, 170, 255, 0.1);
  841. }
  842. .list-item-wrapper.header-wrapper>.list-item-row>.list-item-cell:first-child {
  843. font-weight: 600;
  844. line-height: 1;
  845. }
  846. .list-item-row.collapsible,
  847. .list-item-row.actionable {
  848. cursor: pointer;
  849. }
  850. .list-item-row.collapsible {
  851. background-color: rgba(0, 170, 255, 0.15) !important;
  852. min-height: 23px;
  853. }
  854. .list-item-row.collapsible.alert,
  855. .list-item-row.alert {
  856. background-color: rgba(244, 67, 54, 0.1) !important;
  857. }
  858. @media (hover: hover) {
  859. .list-item-row:hover:not(.collapsible):not(.no-hover),
  860. .list-item-row:hover:not(.no-hover),
  861. .list-item-row.actionable:hover,
  862. .list-item-row.collapsible.actionable:hover {
  863. background-color: rgba(255, 255, 255, 0.05) !important;
  864. }
  865. .list-item-row.collapsible:hover {
  866. background-color: rgba(0, 170, 255, 0.25) !important;
  867. }
  868. }
  869. .list-item-cell {
  870. white-space: pre;
  871. display: flex;
  872. align-items: center;
  873. user-select: none;
  874. -webkit-user-select: none;
  875. }
  876. .list-item-cell:not(:first-child) {
  877. justify-content: flex-end;
  878. font-weight: 600;
  879. }
  880. .list-header {
  881. display: grid;
  882. align-items: center;
  883. padding: 4px 8px;
  884. font-weight: 600;
  885. color: var(--text-secondary);
  886. padding-bottom: 6px;
  887. border-bottom: 1px solid var(--profiler-border);
  888. margin-bottom: 5px;
  889. gap: 10px;
  890. user-select: none;
  891. -webkit-user-select: none;
  892. }
  893. .list-item-wrapper.section-start {
  894. margin-top: 5px;
  895. margin-bottom: 5px;
  896. }
  897. .list-header .list-header-cell:not(:first-child) {
  898. text-align: right;
  899. }
  900. .list-children-container {
  901. padding-left: 1.5em;
  902. overflow: hidden;
  903. transition: max-height 0.1s ease-out;
  904. margin-top: 2px;
  905. }
  906. .list-children-container.closed {
  907. max-height: 0;
  908. }
  909. .item-toggler {
  910. display: inline-block;
  911. margin-right: 0.8em;
  912. text-align: left;
  913. }
  914. .list-item-row.open .item-toggler::before {
  915. content: '-';
  916. }
  917. .list-item-row:not(.open) .item-toggler::before {
  918. content: '+';
  919. }
  920. .list-item-cell .value.good {
  921. color: var(--color-green);
  922. }
  923. .list-item-cell .value.warn {
  924. color: var(--color-yellow);
  925. }
  926. .list-item-cell .value.bad {
  927. color: var(--color-red);
  928. }
  929. .list-scroll-wrapper {
  930. width: max-content;
  931. min-width: 100%;
  932. display: flex;
  933. flex-direction: column;
  934. min-height: 100%;
  935. }
  936. .list-container.parameters .list-item-row:not(.collapsible) {
  937. }
  938. .graph-container {
  939. width: 100%;
  940. box-sizing: border-box;
  941. padding: 8px 0;
  942. position: relative;
  943. }
  944. .graph-svg {
  945. width: 100%;
  946. height: 80px;
  947. background-color: var(--profiler-header);
  948. border: 1px solid var(--profiler-border);
  949. border-radius: 4px;
  950. }
  951. .graph-path {
  952. stroke-width: 2;
  953. fill-opacity: 0.4;
  954. }
  955. .console-header {
  956. padding: 10px;
  957. border-bottom: 1px solid var(--profiler-border);
  958. display: flex;
  959. gap: 20px;
  960. flex-shrink: 0;
  961. align-items: center;
  962. justify-content: space-between;
  963. }
  964. .console-buttons-group {
  965. display: flex;
  966. gap: 20px;
  967. }
  968. .console-filter-input {
  969. background-color: var(--profiler-background);
  970. border: 1px solid var(--profiler-border);
  971. color: var(--text-primary);
  972. border-radius: 4px;
  973. padding: 4px 8px;
  974. font-family: var(--font-mono);
  975. flex-grow: 1;
  976. max-width: 300px;
  977. border-radius: 15px;
  978. }
  979. .console-filter-input:focus {
  980. outline: none;
  981. border-color: var(--text-secondary);
  982. }
  983. .console-copy-button {
  984. background: transparent;
  985. border: none;
  986. color: var(--text-secondary);
  987. cursor: pointer;
  988. padding: 4px;
  989. display: flex;
  990. align-items: center;
  991. justify-content: center;
  992. border-radius: 4px;
  993. transition: color 0.2s, background-color 0.2s;
  994. }
  995. .console-copy-button:hover {
  996. color: var(--text-primary);
  997. background-color: var(--profiler-hover);
  998. }
  999. .console-copy-button.copied {
  1000. color: var(--color-green);
  1001. }
  1002. .console-log {
  1003. display: flex;
  1004. flex-direction: column;
  1005. gap: 4px;
  1006. padding: 10px;
  1007. overflow-y: auto;
  1008. flex-grow: 1;
  1009. user-select: text;
  1010. -webkit-user-select: text;
  1011. }
  1012. .log-message {
  1013. padding: 2px 5px;
  1014. white-space: pre-wrap;
  1015. word-break: break-all;
  1016. border-radius: 3px;
  1017. line-height: 1.5 !important;
  1018. }
  1019. .log-message.hidden {
  1020. display: none;
  1021. }
  1022. .log-message.info {
  1023. color: var(--text-primary);
  1024. }
  1025. .log-message.warn {
  1026. color: var(--color-yellow);
  1027. }
  1028. .log-message.error {
  1029. color: #f9dedc;
  1030. background-color: rgba(244, 67, 54, 0.1);
  1031. }
  1032. .log-prefix {
  1033. color: var(--text-secondary);
  1034. margin-right: 8px;
  1035. }
  1036. .log-code {
  1037. background-color: rgba(255, 255, 255, 0.1);
  1038. border-radius: 3px;
  1039. padding: 1px 4px;
  1040. }
  1041. .thumbnail-container {
  1042. display: flex;
  1043. align-items: center;
  1044. }
  1045. .thumbnail-svg {
  1046. width: 40px;
  1047. height: 22.5px;
  1048. flex-shrink: 0;
  1049. margin-right: 8px;
  1050. }
  1051. .param-control {
  1052. display: flex;
  1053. align-items: center;
  1054. justify-content: flex-end;
  1055. gap: 10px;
  1056. width: 100%;
  1057. }
  1058. .param-control input,
  1059. .param-control select,
  1060. .param-control button {
  1061. background-color: var(--profiler-background);
  1062. border: 1px solid var(--profiler-border);
  1063. color: var(--text-primary);
  1064. border-radius: 4px;
  1065. padding: 4px 6px;
  1066. padding-bottom: 2px;
  1067. font-family: var(--font-mono);
  1068. width: 100%;
  1069. box-sizing: border-box;
  1070. }
  1071. .param-control input:focus {
  1072. outline: none;
  1073. border-color: var(--color-accent);
  1074. }
  1075. .param-control select {
  1076. padding-top: 3px;
  1077. padding-bottom: 1px;
  1078. }
  1079. .param-control input[type="number"] {
  1080. cursor: ns-resize;
  1081. }
  1082. .param-control input[type="color"] {
  1083. padding: 2px;
  1084. }
  1085. .param-control button {
  1086. cursor: pointer;
  1087. transition: background-color 0.2s;
  1088. }
  1089. .param-control button:hover {
  1090. background-color: var(--profiler-header);
  1091. }
  1092. .param-control-vector {
  1093. display: flex;
  1094. gap: 5px;
  1095. }
  1096. .custom-checkbox {
  1097. display: inline-flex;
  1098. align-items: center;
  1099. cursor: pointer;
  1100. gap: 8px;
  1101. will-change: transform;
  1102. }
  1103. .custom-checkbox input {
  1104. display: none;
  1105. }
  1106. .custom-checkbox .checkmark {
  1107. width: 14px;
  1108. height: 14px;
  1109. border: 1px solid var(--color-accent);
  1110. border-radius: 3px;
  1111. display: inline-flex;
  1112. justify-content: center;
  1113. align-items: center;
  1114. transition: background-color 0.2s, border-color 0.2s;
  1115. }
  1116. .custom-checkbox .checkmark::after {
  1117. content: '';
  1118. width: 6px;
  1119. height: 6px;
  1120. background-color: var(--color-accent);
  1121. border-radius: 1px;
  1122. display: block;
  1123. transform: scale(0);
  1124. transition: transform 0.2s;
  1125. }
  1126. .custom-checkbox input:checked+.checkmark {
  1127. border-color: var(--color-accent);
  1128. }
  1129. .custom-checkbox input:checked+.checkmark::after {
  1130. transform: scale(1);
  1131. }
  1132. .param-control input[type="range"] {
  1133. -webkit-appearance: none;
  1134. appearance: none;
  1135. width: 100%;
  1136. height: 16px;
  1137. background: var(--profiler-header);
  1138. border-radius: 5px;
  1139. border: 1px solid var(--profiler-border);
  1140. outline: none;
  1141. padding: 0px;
  1142. padding-top: 8px;
  1143. }
  1144. .param-control input[type="range"]::-webkit-slider-thumb {
  1145. -webkit-appearance: none;
  1146. appearance: none;
  1147. width: 18px;
  1148. height: 18px;
  1149. background: var(--profiler-background);
  1150. border: 1px solid var(--color-accent);
  1151. border-radius: 3px;
  1152. cursor: pointer;
  1153. margin-top: -8px;
  1154. }
  1155. .param-control input[type="range"]::-moz-range-thumb {
  1156. width: 18px;
  1157. height: 18px;
  1158. background: var(--profiler-background);
  1159. border: 2px solid var(--color-accent);
  1160. border-radius: 3px;
  1161. cursor: pointer;
  1162. }
  1163. .param-control input[type="range"]::-moz-range-track {
  1164. width: 100%;
  1165. height: 16px;
  1166. background: var(--profiler-header);
  1167. border-radius: 5px;
  1168. border: 1px solid var(--profiler-border);
  1169. }
  1170. /* Override .param-control styles for mini-panel-content */
  1171. .mini-panel-content input,
  1172. .mini-panel-content select,
  1173. .mini-panel-content button {
  1174. padding: 2px 4px;
  1175. height: 21px;
  1176. line-height: 1.4;
  1177. padding-top: 4px;
  1178. }
  1179. .mini-panel-content .param-control input,
  1180. .mini-panel-content .param-control select,
  1181. .mini-panel-content .param-control button {
  1182. background-color: #1e1e24c2;
  1183. line-height: 1.0;
  1184. }
  1185. .mini-panel-content .param-control select {
  1186. padding: 2px 2px;
  1187. padding-top: 3px;
  1188. }
  1189. .mini-panel-content .param-control input[type="number"]::-webkit-outer-spin-button,
  1190. .mini-panel-content .param-control input[type="number"]::-webkit-inner-spin-button {
  1191. -webkit-appearance: none;
  1192. margin: 0;
  1193. }
  1194. .mini-panel-content .param-control input[type="number"] {
  1195. -moz-appearance: textfield;
  1196. }
  1197. .mini-panel-content .list-item-cell span {
  1198. position: relative;
  1199. top: 1px;
  1200. margin-left: 2px;
  1201. }
  1202. .mini-panel-content .custom-checkbox .checkmark {
  1203. width: 12px;
  1204. height: 12px;
  1205. margin-bottom: 2px;
  1206. will-change: transform;
  1207. }
  1208. .mini-panel-content .list-container.parameters .list-item-row:not(.collapsible) {
  1209. margin-bottom: 2px;
  1210. }
  1211. @media screen and (max-width: 450px) and (orientation: portrait) {
  1212. .console-filter-input {
  1213. max-width: 100px;
  1214. }
  1215. }
  1216. /* Touch device optimizations */
  1217. @media (hover: none) and (pointer: coarse) {
  1218. .panel-resizer {
  1219. top: -10px !important;
  1220. height: 20px !important;
  1221. }
  1222. .profiler-panel.position-top .panel-resizer {
  1223. top: auto !important;
  1224. bottom: -10px !important;
  1225. height: 20px !important;
  1226. }
  1227. .profiler-panel.position-left .panel-resizer {
  1228. right: -10px !important;
  1229. width: 20px !important;
  1230. height: 100% !important;
  1231. }
  1232. .profiler-panel.position-right .panel-resizer {
  1233. left: -10px !important;
  1234. width: 20px !important;
  1235. height: 100% !important;
  1236. }
  1237. .detached-tab-resizer-top,
  1238. .detached-tab-resizer-bottom {
  1239. height: 10px !important;
  1240. }
  1241. .detached-tab-resizer-left,
  1242. .detached-tab-resizer-right {
  1243. width: 10px !important;
  1244. }
  1245. }
  1246. .drag-preview-indicator {
  1247. position: fixed;
  1248. background-color: rgba(0, 170, 255, 0.2);
  1249. border: 2px dashed var(--color-accent);
  1250. z-index: 999;
  1251. pointer-events: none;
  1252. transition: all 0.2s ease-out;
  1253. }
  1254. /* Detached Tab Windows */
  1255. .detached-tab-panel {
  1256. position: fixed;
  1257. width: 500px;
  1258. height: 400px;
  1259. background: var(--profiler-background);
  1260. border: 1px solid var(--profiler-border);
  1261. border-radius: 8px;
  1262. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  1263. z-index: 1002;
  1264. display: flex;
  1265. flex-direction: column;
  1266. backdrop-filter: blur(10px);
  1267. overflow: hidden;
  1268. opacity: 1;
  1269. visibility: visible;
  1270. transition: opacity 0.2s, visibility 0.2s;
  1271. }
  1272. .profiler-panel:not(.visible) ~ * .detached-tab-panel,
  1273. body:has(.profiler-panel:not(.visible)) .detached-tab-panel {
  1274. opacity: 0;
  1275. visibility: hidden;
  1276. pointer-events: none;
  1277. }
  1278. .detached-tab-header {
  1279. background: var(--profiler-header-background);
  1280. padding: 0 7px 0 15px;
  1281. font-family: var(--font-family);
  1282. font-size: 14px;
  1283. color: var(--text-primary);
  1284. font-weight: 600;
  1285. display: flex;
  1286. justify-content: space-between;
  1287. align-items: center;
  1288. border-bottom: 1px solid var(--profiler-border);
  1289. cursor: grab;
  1290. user-select: none;
  1291. height: 38px;
  1292. flex-shrink: 0;
  1293. -webkit-font-smoothing: antialiased;
  1294. -moz-osx-font-smoothing: grayscale;
  1295. touch-action: none;
  1296. }
  1297. .detached-tab-header:active {
  1298. cursor: grabbing;
  1299. }
  1300. .detached-header-controls {
  1301. display: flex;
  1302. gap: 5px;
  1303. }
  1304. .detached-reattach-btn {
  1305. background: transparent;
  1306. border: none;
  1307. color: var(--text-secondary);
  1308. font-family: var(--font-family);
  1309. font-size: 18px;
  1310. line-height: 1;
  1311. cursor: pointer;
  1312. padding: 4px 8px;
  1313. border-radius: 4px;
  1314. transition: all 0.2s;
  1315. display: flex;
  1316. align-items: center;
  1317. justify-content: center;
  1318. -webkit-font-smoothing: antialiased;
  1319. -moz-osx-font-smoothing: grayscale;
  1320. }
  1321. .detached-reattach-btn:hover {
  1322. background: rgba(0, 170, 255, 0.2);
  1323. color: var(--color-accent);
  1324. }
  1325. .detached-tab-content {
  1326. flex: 1;
  1327. overflow: auto;
  1328. position: relative;
  1329. background: var(--profiler-background);
  1330. }
  1331. .detached-tab-content::-webkit-scrollbar {
  1332. width: 8px;
  1333. height: 8px;
  1334. }
  1335. .detached-tab-content::-webkit-scrollbar-track {
  1336. background: transparent;
  1337. }
  1338. .detached-tab-content::-webkit-scrollbar-thumb {
  1339. background-color: rgba(0, 0, 0, 0.25);
  1340. border-radius: 10px;
  1341. transition: background 0.3s ease;
  1342. }
  1343. .detached-tab-content::-webkit-scrollbar-thumb:hover {
  1344. background-color: rgba(0, 0, 0, 0.4);
  1345. }
  1346. .detached-tab-content::-webkit-scrollbar-corner {
  1347. background: transparent;
  1348. }
  1349. .detached-tab-content .profiler-content {
  1350. display: block !important;
  1351. height: 100%;
  1352. visibility: visible !important;
  1353. opacity: 1 !important;
  1354. position: relative !important;
  1355. }
  1356. .detached-tab-content .profiler-content > * {
  1357. font-family: var(--font-mono);
  1358. color: var(--text-primary);
  1359. }
  1360. .detached-tab-resizer {
  1361. position: absolute;
  1362. bottom: 0;
  1363. right: 0;
  1364. width: 20px;
  1365. height: 20px;
  1366. cursor: nwse-resize;
  1367. z-index: 10;
  1368. touch-action: none;
  1369. }
  1370. .detached-tab-resizer::after {
  1371. content: '';
  1372. position: absolute;
  1373. bottom: 2px;
  1374. right: 2px;
  1375. width: 12px;
  1376. height: 12px;
  1377. border-right: 2px solid var(--profiler-border);
  1378. border-bottom: 2px solid var(--profiler-border);
  1379. border-bottom-right-radius: 6px;
  1380. opacity: 0.5;
  1381. }
  1382. .detached-tab-resizer:hover::after {
  1383. opacity: 1;
  1384. border-color: var(--color-accent);
  1385. }
  1386. /* Edge resizers */
  1387. .detached-tab-resizer-top {
  1388. position: absolute;
  1389. top: 0;
  1390. left: 0;
  1391. right: 0;
  1392. height: 5px;
  1393. cursor: ns-resize;
  1394. z-index: 10;
  1395. touch-action: none;
  1396. }
  1397. .detached-tab-resizer-right {
  1398. position: absolute;
  1399. top: 0;
  1400. right: 0;
  1401. bottom: 0;
  1402. width: 5px;
  1403. cursor: ew-resize;
  1404. z-index: 10;
  1405. touch-action: none;
  1406. }
  1407. .detached-tab-resizer-bottom {
  1408. position: absolute;
  1409. bottom: 0;
  1410. left: 0;
  1411. right: 0;
  1412. height: 5px;
  1413. cursor: ns-resize;
  1414. z-index: 10;
  1415. touch-action: none;
  1416. }
  1417. .detached-tab-resizer-left {
  1418. position: absolute;
  1419. top: 0;
  1420. left: 0;
  1421. bottom: 0;
  1422. width: 5px;
  1423. cursor: ew-resize;
  1424. z-index: 10;
  1425. touch-action: none;
  1426. }
  1427. /* Input number spin buttons - hide arrows */
  1428. /* Chrome, Safari, Edge, Opera */
  1429. .profiler-panel input[type="number"]::-webkit-outer-spin-button,
  1430. .profiler-panel input[type="number"]::-webkit-inner-spin-button,
  1431. .detached-tab-content input[type="number"]::-webkit-outer-spin-button,
  1432. .detached-tab-content input[type="number"]::-webkit-inner-spin-button {
  1433. -webkit-appearance: none;
  1434. margin: 0;
  1435. }
  1436. /* Firefox */
  1437. .profiler-panel input[type="number"],
  1438. .detached-tab-content input[type="number"] {
  1439. -moz-appearance: textfield;
  1440. }
  1441. .panel-action-btn {
  1442. background: transparent;
  1443. color: var(--text-primary);
  1444. border: 1px solid var(--profiler-border);
  1445. border-radius: 4px;
  1446. padding: 6px 12px;
  1447. cursor: pointer;
  1448. font-family: var(--font-family);
  1449. font-size: 12px;
  1450. transition: background-color 0.2s;
  1451. display: flex;
  1452. align-items: center;
  1453. justify-content: center;
  1454. }
  1455. .panel-action-btn:hover {
  1456. background-color: rgba(255, 255, 255, 0.05);
  1457. }
  1458. }
  1459. `;
  1460. const styleElement = document.createElement( 'style' );
  1461. styleElement.textContent = css;
  1462. container.appendChild( styleElement );
  1463. }
  1464. }
粤ICP备19079148号