Style.js 32 KB

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