Style.js 33 KB

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