Style.js 32 KB

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