babylon.inspector.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. @import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css);
  2. @import url(https://fonts.googleapis.com/css?family=Inconsolata);
  3. @import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css);
  4. @import url(https://fonts.googleapis.com/css?family=Inconsolata);
  5. .insp-wrapper {
  6. user-select: none;
  7. display: flex;
  8. font-size: 0.9em;
  9. font-family: "Inconsolata", sans-serif;
  10. background-color: #242424;
  11. /**
  12. * A tool contained in the tree panel (available for each item of the tree)
  13. */
  14. /**
  15. * The toolbar contains :
  16. * - a refresh tool - refresh the whole panel
  17. * - a popup tool - Open the inspector in a new panel
  18. * ...
  19. */
  20. /*
  21. * 1. Set to 0 height and width, and remove border for a slider without a thumb
  22. */ }
  23. .insp-wrapper .gutter {
  24. background-color: #2c2c2c; }
  25. .insp-wrapper .gutter.gutter-vertical:not(.blocked) {
  26. cursor: ns-resize; }
  27. .insp-wrapper .gutter.gutter-horizontal:not(.blocked) {
  28. cursor: ew-resize; }
  29. .insp-wrapper .insp-right-panel {
  30. width: 750px;
  31. overflow-y: auto;
  32. display: flex;
  33. flex-direction: column;
  34. flex-shrink: 0; }
  35. .insp-wrapper .insp-right-panel.popupmode {
  36. width: 100% !important; }
  37. .insp-wrapper .insp-right-panel .top-panel {
  38. width: 100%;
  39. height: 100%;
  40. position: relative;
  41. background-color: #242424;
  42. color: #ccc;
  43. font-size: 1em; }
  44. .insp-wrapper .insp-right-panel .top-panel .tab-panel-content {
  45. width: 100%;
  46. height: calc(100% - 40px); }
  47. .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel {
  48. position: absolute;
  49. z-index: 10;
  50. top: 40px;
  51. right: 0;
  52. width: 100px;
  53. display: none;
  54. flex-direction: column;
  55. align-items: center;
  56. justify-content: center;
  57. border: 1px solid #454545;
  58. background-color: #242424; }
  59. .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel .invisible-tab {
  60. height: 25px;
  61. width: 100%;
  62. line-height: 25px;
  63. text-align: center;
  64. background-color: #2c2c2c;
  65. cursor: pointer; }
  66. .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel .invisible-tab:hover {
  67. background-color: #383838; }
  68. .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel .invisible-tab:active {
  69. background-color: #454545; }
  70. .insp-wrapper .tooltip {
  71. position: absolute;
  72. top: 40px;
  73. right: 0;
  74. color: #f29766;
  75. display: none;
  76. z-index: 4;
  77. font-family: "Inconsolata", sans-serif;
  78. padding: 2px;
  79. background-color: #242424;
  80. border: 1px solid #454545; }
  81. .insp-wrapper .treeTool {
  82. margin: 3px 8px 3px 3px;
  83. cursor: pointer;
  84. position: relative; }
  85. .insp-wrapper .treeTool:hover {
  86. color: #5db0d7; }
  87. .insp-wrapper .treeTool.active {
  88. color: #5db0d7; }
  89. .insp-wrapper .tab-panel {
  90. height: 100%; }
  91. .insp-wrapper .tab-panel.searchable {
  92. height: calc(100% - 30px - 10px); }
  93. .insp-wrapper .tab-panel .texture-image {
  94. max-height: 400px; }
  95. .insp-wrapper .tab-panel .scene-actions {
  96. overflow-y: auto;
  97. padding-left: 5px; }
  98. .insp-wrapper .tab-panel .scene-actions .actions-title {
  99. font-size: 1.1em;
  100. padding-bottom: 10px;
  101. border-bottom: 1px solid #5db0d7;
  102. margin: 10px 0 10px 0; }
  103. .insp-wrapper .tab-panel .scene-actions .defaut-action, .insp-wrapper .tab-panel .scene-actions .action-radio, .insp-wrapper .tab-panel .scene-actions .action {
  104. height: 20px;
  105. line-height: 20px;
  106. width: 100%;
  107. cursor: pointer; }
  108. .insp-wrapper .tab-panel .scene-actions .defaut-action:hover, .insp-wrapper .tab-panel .scene-actions .action-radio:hover, .insp-wrapper .tab-panel .scene-actions .action:hover {
  109. background-color: #2c2c2c; }
  110. .insp-wrapper .tab-panel .scene-actions .defaut-action:active, .insp-wrapper .tab-panel .scene-actions .action-radio:active, .insp-wrapper .tab-panel .scene-actions .action:active {
  111. background-color: #383838; }
  112. .insp-wrapper .tab-panel .scene-actions .action-radio:before {
  113. width: 1em;
  114. height: 1em;
  115. line-height: 1em;
  116. display: inline-block;
  117. font-family: 'FontAwesome', sans-serif;
  118. content: "\f10c";
  119. margin-right: 10px; }
  120. .insp-wrapper .tab-panel .scene-actions .action-radio.active:before {
  121. width: 1em;
  122. height: 1em;
  123. line-height: 1em;
  124. display: inline-block;
  125. font-family: 'FontAwesome', sans-serif;
  126. content: "\f192";
  127. color: #5db0d7;
  128. margin-right: 10px; }
  129. .insp-wrapper .tab-panel .scene-actions .action:before {
  130. width: 1em;
  131. height: 1em;
  132. line-height: 1em;
  133. display: inline-block;
  134. font-family: 'FontAwesome', sans-serif;
  135. content: "\f096";
  136. margin-right: 10px; }
  137. .insp-wrapper .tab-panel .scene-actions .action.active:before {
  138. width: 1em;
  139. height: 1em;
  140. line-height: 1em;
  141. display: inline-block;
  142. font-family: 'FontAwesome', sans-serif;
  143. content: "\f14a";
  144. color: #5db0d7;
  145. margin-right: 10px; }
  146. .insp-wrapper .tab-panel .shader-tree-panel {
  147. height: 30px; }
  148. .insp-wrapper .tab-panel .shader-tree-panel select {
  149. height: 30px;
  150. background-color: transparent;
  151. color: #ccc;
  152. height: 30px;
  153. width: 100%;
  154. max-width: 300px;
  155. padding-left: 15px;
  156. border: 1px solid #2c2c2c;
  157. outline: 1px solid #454545; }
  158. .insp-wrapper .tab-panel .shader-tree-panel select option {
  159. padding: 5px;
  160. color: gray; }
  161. .insp-wrapper .tab-panel .shader-panel {
  162. min-height: 100px;
  163. user-select: text;
  164. box-sizing: border-box;
  165. padding: 0 15px; }
  166. .insp-wrapper .tab-panel .shader-panel pre {
  167. margin: 0;
  168. white-space: pre-wrap; }
  169. .insp-wrapper .tab-panel .shader-panel pre code {
  170. background-color: #242424 !important;
  171. padding: 0;
  172. margin: 0; }
  173. .insp-wrapper .tab-panel .shader-panel .shader-panel-title {
  174. height: 25px;
  175. border-bottom: 1px solid #383838;
  176. text-transform: uppercase;
  177. line-height: 25px;
  178. margin-bottom: 10px; }
  179. .insp-wrapper .tab-panel .console-panel {
  180. min-height: 100px;
  181. user-select: text;
  182. box-sizing: border-box;
  183. padding: 0 15px; }
  184. .insp-wrapper .tab-panel .console-panel .console-panel-title {
  185. height: 25px;
  186. border-bottom: 1px solid #383838;
  187. text-transform: uppercase;
  188. line-height: 25px;
  189. margin-bottom: 10px; }
  190. .insp-wrapper .tab-panel .console-panel .console-panel-content {
  191. overflow-y: auto;
  192. overflow-x: hidden;
  193. height: calc(100% - 30px); }
  194. .insp-wrapper .tab-panel .console-panel .defaut-line, .insp-wrapper .tab-panel .console-panel .log, .insp-wrapper .tab-panel .console-panel .warn, .insp-wrapper .tab-panel .console-panel .error, .insp-wrapper .tab-panel .console-panel .object {
  195. word-wrap: break-word;
  196. padding: 3px 0 3px 5px; }
  197. .insp-wrapper .tab-panel .console-panel .caller {
  198. padding: 3px 0 3px 0;
  199. color: #349ccd; }
  200. .insp-wrapper .tab-panel .console-panel .log {
  201. color: white; }
  202. .insp-wrapper .tab-panel .console-panel .warn {
  203. color: orange; }
  204. .insp-wrapper .tab-panel .console-panel .error {
  205. color: orangered; }
  206. .insp-wrapper .tab-panel .console-panel .object {
  207. color: #5db0d7; }
  208. .insp-wrapper .tab-panel.stats-panel {
  209. overflow-y: auto; }
  210. .insp-wrapper .tab-panel .stats-fps {
  211. font-weight: 600;
  212. color: #f29766; }
  213. .insp-wrapper .tab-panel .stat-title1 {
  214. font-size: 1.1em;
  215. padding: 10px; }
  216. .insp-wrapper .tab-panel .stat-title2 {
  217. margin: 10px 0 10px 0;
  218. font-size: 1.05em;
  219. border-bottom: 1px solid #5db0d7;
  220. box-sizing: border-box; }
  221. .insp-wrapper .tab-panel .stat-label {
  222. display: inline-block;
  223. width: 80%;
  224. padding: 2px;
  225. background-color: #2c2c2c;
  226. border-bottom: 1px solid #242424;
  227. border-top: 1px solid #242424;
  228. height: 30px;
  229. line-height: 30px;
  230. box-sizing: border-box; }
  231. .insp-wrapper .tab-panel .stat-value {
  232. display: inline-block;
  233. width: 20%;
  234. padding: 2px;
  235. background-color: #2c2c2c;
  236. border-top: 1px solid #242424;
  237. border-bottom: 1px solid #242424;
  238. height: 30px;
  239. line-height: 30px;
  240. box-sizing: border-box; }
  241. .insp-wrapper .tab-panel .stat-infos {
  242. width: 100%;
  243. padding: 4px; }
  244. .insp-wrapper .tab-panel .gltf-actions {
  245. overflow-y: auto;
  246. padding-left: 5px; }
  247. .insp-wrapper .tab-panel .gltf-actions .gltf-title {
  248. font-size: 1.1em;
  249. padding-bottom: 10px;
  250. border-bottom: 1px solid #5db0d7;
  251. margin: 10px 0 10px 0; }
  252. .insp-wrapper .tab-panel .gltf-actions .gltf-input {
  253. background-color: #2c2c2c;
  254. border: none;
  255. outline: none;
  256. font-family: "Inconsolata", sans-serif;
  257. color: #b3b3b3;
  258. padding: 5px;
  259. margin: 0px 6px 0px 0; }
  260. .insp-wrapper .tab-panel .gltf-actions .gltf-input:hover {
  261. background-color: #383838; }
  262. .insp-wrapper .tab-panel .gltf-actions .gltf-button {
  263. background-color: #2c2c2c;
  264. border: none;
  265. outline: none;
  266. font-family: "Inconsolata", sans-serif;
  267. color: #ccc;
  268. padding: 5px 10px;
  269. margin: 0px 6px 0px 0; }
  270. .insp-wrapper .tab-panel .gltf-actions .gltf-button:hover {
  271. background-color: #383838; }
  272. .insp-wrapper .tab-panel .gltf-actions .gltf-button:active {
  273. background-color: #454545; }
  274. .insp-wrapper .property-type {
  275. color: #5db0d7; }
  276. .insp-wrapper .property-name, .insp-wrapper .insp-details .base-row .prop-name, .insp-wrapper .insp-details .row .prop-name, .insp-wrapper .insp-details .header-row .prop-name {
  277. color: #f29766; }
  278. .insp-wrapper .insp-tree {
  279. overflow-y: auto;
  280. overflow-x: hidden;
  281. height: calc(50% - 40px - 30px); }
  282. .insp-wrapper .insp-tree .line {
  283. padding: 3px;
  284. cursor: pointer; }
  285. .insp-wrapper .insp-tree .line:hover {
  286. background-color: #2c2c2c; }
  287. .insp-wrapper .insp-tree .line.active {
  288. background-color: #454545; }
  289. .insp-wrapper .insp-tree .line.active .line-content {
  290. background-color: #242424; }
  291. .insp-wrapper .insp-tree .line.unfolded:before {
  292. width: 1em;
  293. height: 1em;
  294. line-height: 1em;
  295. display: inline-block;
  296. font-family: 'FontAwesome', sans-serif;
  297. content: "\f078"; }
  298. .insp-wrapper .insp-tree .line.folded:before {
  299. width: 1em;
  300. height: 1em;
  301. line-height: 1em;
  302. display: inline-block;
  303. font-family: 'FontAwesome', sans-serif;
  304. content: "\f054"; }
  305. .insp-wrapper .insp-tree .line.unfolded.transformNode > span:first-of-type {
  306. color: #f29766; }
  307. .insp-wrapper .insp-tree .line.folded.transformNode > span:first-of-type {
  308. color: #f29766; }
  309. .insp-wrapper .insp-tree .line .line-content {
  310. padding-left: 15px; }
  311. .insp-wrapper .insp-tree .line .line-content:hover {
  312. background-color: #242424; }
  313. .insp-wrapper .insp-tree .line .line-content .line:hover:first-child {
  314. background-color: #383838; }
  315. .insp-wrapper .insp-tree .line_invisible {
  316. display: none; }
  317. .insp-wrapper .insp-details {
  318. background-color: #242424;
  319. overflow-y: auto;
  320. overflow-x: auto;
  321. color: #ccc;
  322. font-family: "Inconsolata", sans-serif; }
  323. .insp-wrapper .insp-details .details {
  324. padding-left: 5px; }
  325. .insp-wrapper .insp-details .base-row, .insp-wrapper .insp-details .row, .insp-wrapper .insp-details .header-row {
  326. display: flex;
  327. width: 100%; }
  328. .insp-wrapper .insp-details .base-row .base-property, .insp-wrapper .insp-details .row .base-property, .insp-wrapper .insp-details .header-row .base-property, .insp-wrapper .insp-details .base-row .prop-name, .insp-wrapper .insp-details .row .prop-name, .insp-wrapper .insp-details .header-row .prop-name, .insp-wrapper .insp-details .base-row .prop-value, .insp-wrapper .insp-details .row .prop-value, .insp-wrapper .insp-details .header-row .prop-value {
  329. padding: 2px 0 2px 0;
  330. text-overflow: ellipsis;
  331. white-space: nowrap;
  332. overflow: hidden; }
  333. .insp-wrapper .insp-details .base-row .prop-name, .insp-wrapper .insp-details .row .prop-name, .insp-wrapper .insp-details .header-row .prop-name {
  334. width: 35%; }
  335. .insp-wrapper .insp-details .base-row .prop-value, .insp-wrapper .insp-details .row .prop-value, .insp-wrapper .insp-details .header-row .prop-value {
  336. width: 59%;
  337. padding-left: 5px; }
  338. .insp-wrapper .insp-details .base-row .prop-value.clickable, .insp-wrapper .insp-details .row .prop-value.clickable, .insp-wrapper .insp-details .header-row .prop-value.clickable {
  339. cursor: pointer; }
  340. .insp-wrapper .insp-details .base-row .prop-value.clickable:hover, .insp-wrapper .insp-details .row .prop-value.clickable:hover, .insp-wrapper .insp-details .header-row .prop-value.clickable:hover {
  341. background-color: #383838; }
  342. .insp-wrapper .insp-details .base-row .prop-value.clickable:after, .insp-wrapper .insp-details .row .prop-value.clickable:after, .insp-wrapper .insp-details .header-row .prop-value.clickable:after {
  343. font-family: 'FontAwesome', sans-serif;
  344. content: "\00a0 \00a0 \00a0 \f054"; }
  345. .insp-wrapper .insp-details .row:nth-child(even) {
  346. background-color: #2c2c2c; }
  347. .insp-wrapper .insp-details .row.unfolded .prop-value.clickable:after {
  348. font-family: 'FontAwesome', sans-serif;
  349. content: "\00a0 \00a0 \00a0 \f078"; }
  350. .insp-wrapper .insp-details .header-row {
  351. background-color: #2c2c2c;
  352. color: #ccc;
  353. width: 100%;
  354. max-width: 100%; }
  355. .insp-wrapper .insp-details .header-row > * {
  356. color: #ccc !important;
  357. padding: 5px 0 5px 5px !important;
  358. cursor: pointer; }
  359. .insp-wrapper .insp-details .header-row > *:hover {
  360. background-color: #383838; }
  361. .insp-wrapper .insp-details .header-row .header-col {
  362. display: flex;
  363. justify-content: space-between;
  364. align-items: center; }
  365. .insp-wrapper .insp-details .header-row .header-col .sort-direction {
  366. margin-right: 5px; }
  367. .insp-wrapper .insp-details .element-viewer, .insp-wrapper .insp-details .color-element, .insp-wrapper .insp-details .texture-element {
  368. position: relative;
  369. width: 10px;
  370. height: 10px;
  371. display: inline-block;
  372. margin-left: 5px; }
  373. .insp-wrapper .insp-details .color-element {
  374. width: 20px;
  375. height: 15px; }
  376. .insp-wrapper .insp-details .texture-element {
  377. color: #f29766;
  378. margin-left: 10px; }
  379. .insp-wrapper .insp-details .texture-element .texture-viewer {
  380. color: #ccc;
  381. position: absolute;
  382. z-index: 10;
  383. bottom: 0;
  384. right: 0;
  385. display: block;
  386. width: 150px;
  387. height: 150px;
  388. border: 1px solid #454545;
  389. background-color: #242424;
  390. transform: translateX(100%) translateY(100%);
  391. display: none;
  392. flex-direction: column;
  393. justify-content: flex-start;
  394. align-items: center; }
  395. .insp-wrapper .insp-details .texture-element .texture-viewer .texture-viewer-img {
  396. margin: 10px 0 10px 0;
  397. max-width: 110px;
  398. max-height: 110px; }
  399. .insp-wrapper .tabbar {
  400. height: 40px;
  401. display: flex;
  402. align-items: center;
  403. border-bottom: 1px solid #383838;
  404. width: 100%;
  405. overflow-x: auto;
  406. overflow-y: hidden;
  407. box-sizing: border-box; }
  408. .insp-wrapper .tabbar .tab {
  409. height: calc(40px - 2px);
  410. width: auto;
  411. padding: 0 10px 0 10px;
  412. color: #ccc;
  413. line-height: 40px;
  414. text-align: center;
  415. cursor: pointer;
  416. margin: 0 5px 0 5px;
  417. box-sizing: border-box; }
  418. .insp-wrapper .tabbar .tab:hover {
  419. border-bottom: 1px solid #f29766;
  420. background-color: #2c2c2c; }
  421. .insp-wrapper .tabbar .tab:active {
  422. background-color: #383838; }
  423. .insp-wrapper .tabbar .tab.active {
  424. border-bottom: 1px solid #f29766; }
  425. .insp-wrapper .tabbar .more-tabs {
  426. width: 40px;
  427. height: 40px;
  428. display: flex;
  429. justify-content: center;
  430. align-items: center;
  431. cursor: pointer;
  432. position: relative;
  433. border-right: 1px solid #383838; }
  434. .insp-wrapper .tabbar .more-tabs:hover {
  435. background-color: #383838; }
  436. .insp-wrapper .tabbar .more-tabs:active {
  437. color: #f29766;
  438. background-color: #454545; }
  439. .insp-wrapper .tabbar .more-tabs.active {
  440. color: #f29766; }
  441. .insp-wrapper .toolbar {
  442. display: flex; }
  443. .insp-wrapper .toolbar .tool {
  444. width: 40px;
  445. height: 40px;
  446. display: flex;
  447. justify-content: center;
  448. align-items: center;
  449. cursor: pointer;
  450. position: relative;
  451. border-right: 1px solid #383838; }
  452. .insp-wrapper .toolbar .tool:hover {
  453. background-color: #383838; }
  454. .insp-wrapper .toolbar .tool:active {
  455. color: #f29766;
  456. background-color: #454545; }
  457. .insp-wrapper .toolbar .tool.active {
  458. color: #f29766; }
  459. .insp-wrapper .searchbar {
  460. border: 1px solid #2c2c2c;
  461. margin-bottom: 5px;
  462. display: flex;
  463. align-items: center;
  464. color: #b3b3b3; }
  465. .insp-wrapper .searchbar input {
  466. background-color: #242424;
  467. border: none;
  468. width: 100%;
  469. outline: none;
  470. font-family: "Inconsolata", sans-serif;
  471. color: #b3b3b3;
  472. padding: 3px 0 3px 10px;
  473. margin: 6px 0 6px 0; }
  474. .insp-wrapper input[type="range"] {
  475. margin: auto;
  476. -webkit-appearance: none;
  477. position: relative;
  478. overflow: hidden;
  479. height: 15px;
  480. width: 50%;
  481. cursor: pointer;
  482. border-radius: 0;
  483. /* iOS */ }
  484. .insp-wrapper ::-webkit-slider-runnable-track {
  485. background: #ddd; }
  486. .insp-wrapper ::-webkit-slider-thumb {
  487. -webkit-appearance: none;
  488. width: 20px;
  489. /* 1 */
  490. height: 15px;
  491. /* 1 */
  492. background: #fff;
  493. box-shadow: -100vw 0 0 100vw dodgerblue;
  494. border: 0px solid #999;
  495. /* 1 */ }
  496. .insp-wrapper ::-moz-range-track {
  497. height: 15px;
  498. background: #ddd; }
  499. .insp-wrapper ::-moz-range-thumb {
  500. background: #fff;
  501. height: 15px;
  502. width: 20px;
  503. border: 0px solid #999;
  504. border-radius: 0 !important;
  505. box-shadow: -100vw 0 0 100vw dodgerblue;
  506. box-sizing: border-box; }
  507. .insp-wrapper ::-ms-fill-lower {
  508. background: dodgerblue; }
  509. .insp-wrapper ::-ms-thumb {
  510. background: #fff;
  511. border: 0px solid #999;
  512. height: 15px;
  513. width: 20px;
  514. box-sizing: border-box; }
  515. .insp-wrapper ::-ms-ticks-after {
  516. display: none; }
  517. .insp-wrapper ::-ms-ticks-before {
  518. display: none; }
  519. .insp-wrapper ::-ms-track {
  520. background: #ddd;
  521. color: transparent;
  522. height: 15px;
  523. border: none; }
  524. .insp-wrapper ::-ms-tooltip {
  525. display: none; }