babylon.inspector.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  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. .insp-wrapper .gutter {
  21. background-color: #2c2c2c; }
  22. .insp-wrapper .gutter.gutter-vertical:not(.blocked) {
  23. cursor: ns-resize; }
  24. .insp-wrapper .gutter.gutter-horizontal:not(.blocked) {
  25. cursor: ew-resize; }
  26. .insp-wrapper .insp-right-panel {
  27. width: 750px;
  28. display: flex;
  29. flex-direction: column;
  30. flex-shrink: 0; }
  31. .insp-wrapper .insp-right-panel.popupmode {
  32. width: 100% !important; }
  33. .insp-wrapper .insp-right-panel .top-panel {
  34. width: 100%;
  35. height: 100%;
  36. position: relative;
  37. background-color: #242424;
  38. color: #ccc;
  39. font-size: 1em; }
  40. .insp-wrapper .insp-right-panel .top-panel .tab-panel-content {
  41. width: 100%;
  42. height: calc(100% - 32px); }
  43. .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel {
  44. position: absolute;
  45. z-index: 10;
  46. top: 32px;
  47. right: 0;
  48. width: 100px;
  49. display: none;
  50. flex-direction: column;
  51. align-items: center;
  52. justify-content: center;
  53. border: 1px solid #454545;
  54. background-color: #242424; }
  55. .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel .invisible-tab {
  56. height: 25px;
  57. width: 100%;
  58. line-height: 25px;
  59. text-align: center;
  60. background-color: #2c2c2c;
  61. cursor: pointer; }
  62. .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel .invisible-tab:hover {
  63. background-color: #383838; }
  64. .insp-wrapper .insp-right-panel .top-panel .more-tabs-panel .invisible-tab:active {
  65. background-color: #454545; }
  66. .insp-wrapper .tooltip {
  67. position: absolute;
  68. top: 32px;
  69. right: 0;
  70. color: #f29766;
  71. display: none;
  72. z-index: 4;
  73. font-family: "Inconsolata", sans-serif;
  74. padding: 2px;
  75. background-color: #242424;
  76. border: 1px solid #454545; }
  77. .insp-wrapper .treeTool {
  78. margin: 3px 8px 3px 3px;
  79. cursor: pointer;
  80. position: relative; }
  81. .insp-wrapper .treeTool:hover {
  82. color: #5db0d7; }
  83. .insp-wrapper .treeTool.active {
  84. color: #5db0d7; }
  85. .insp-wrapper .tab-panel {
  86. height: 100%; }
  87. .insp-wrapper .tab-panel.searchable {
  88. height: calc(100% - 30px - 10px); }
  89. .insp-wrapper .tab-panel .texture-image {
  90. max-height: 400px; }
  91. .insp-wrapper .tab-panel .scene-actions {
  92. overflow-y: auto; }
  93. .insp-wrapper .tab-panel .scene-actions .actions-title {
  94. font-size: 1.1em;
  95. padding-bottom: 10px;
  96. border-bottom: 1px solid #5db0d7;
  97. margin: 10px 0 10px 0; }
  98. .insp-wrapper .tab-panel .scene-actions .defaut-action, .insp-wrapper .tab-panel .scene-actions .action-radio, .insp-wrapper .tab-panel .scene-actions .action {
  99. height: 20px;
  100. line-height: 20px;
  101. width: 100%;
  102. cursor: pointer; }
  103. .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 {
  104. background-color: #2c2c2c; }
  105. .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 {
  106. background-color: #383838; }
  107. .insp-wrapper .tab-panel .scene-actions .action-radio:before {
  108. width: 1em;
  109. height: 1em;
  110. line-height: 1em;
  111. display: inline-block;
  112. font-family: 'FontAwesome', sans-serif;
  113. content: "\f10c";
  114. margin-right: 10px; }
  115. .insp-wrapper .tab-panel .scene-actions .action-radio.active:before {
  116. width: 1em;
  117. height: 1em;
  118. line-height: 1em;
  119. display: inline-block;
  120. font-family: 'FontAwesome', sans-serif;
  121. content: "\f192";
  122. color: #5db0d7;
  123. margin-right: 10px; }
  124. .insp-wrapper .tab-panel .scene-actions .action:before {
  125. width: 1em;
  126. height: 1em;
  127. line-height: 1em;
  128. display: inline-block;
  129. font-family: 'FontAwesome', sans-serif;
  130. content: "\f096";
  131. margin-right: 10px; }
  132. .insp-wrapper .tab-panel .scene-actions .action.active:before {
  133. width: 1em;
  134. height: 1em;
  135. line-height: 1em;
  136. display: inline-block;
  137. font-family: 'FontAwesome', sans-serif;
  138. content: "\f14a";
  139. color: #5db0d7;
  140. margin-right: 10px; }
  141. .insp-wrapper .tab-panel .shader-tree-panel {
  142. height: 30px; }
  143. .insp-wrapper .tab-panel .shader-tree-panel select {
  144. height: 30px;
  145. background-color: transparent;
  146. color: #ccc;
  147. height: 30px;
  148. width: 100%;
  149. max-width: 300px;
  150. padding-left: 15px;
  151. border: 1px solid #2c2c2c;
  152. outline: 1px solid #454545; }
  153. .insp-wrapper .tab-panel .shader-tree-panel select option {
  154. padding: 5px;
  155. color: gray; }
  156. .insp-wrapper .tab-panel .shader-panel {
  157. min-height: 100px;
  158. user-select: text;
  159. box-sizing: border-box;
  160. padding: 0 15px; }
  161. .insp-wrapper .tab-panel .shader-panel pre {
  162. margin: 0;
  163. white-space: pre-wrap; }
  164. .insp-wrapper .tab-panel .shader-panel pre code {
  165. background-color: #242424 !important;
  166. padding: 0;
  167. margin: 0; }
  168. .insp-wrapper .tab-panel .shader-panel .shader-panel-title {
  169. height: 25px;
  170. border-bottom: 1px solid #383838;
  171. text-transform: uppercase;
  172. line-height: 25px;
  173. margin-bottom: 10px; }
  174. .insp-wrapper .tab-panel .console-panel {
  175. min-height: 100px;
  176. user-select: text;
  177. box-sizing: border-box;
  178. padding: 0 15px; }
  179. .insp-wrapper .tab-panel .console-panel .console-panel-title {
  180. height: 25px;
  181. border-bottom: 1px solid #383838;
  182. text-transform: uppercase;
  183. line-height: 25px;
  184. margin-bottom: 10px; }
  185. .insp-wrapper .tab-panel .console-panel .console-panel-content {
  186. overflow-y: auto;
  187. overflow-x: hidden;
  188. height: calc(100% - 30px); }
  189. .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 {
  190. word-wrap: break-word;
  191. padding: 3px 0 3px 5px; }
  192. .insp-wrapper .tab-panel .console-panel .caller {
  193. padding: 3px 0 3px 0;
  194. color: #349ccd; }
  195. .insp-wrapper .tab-panel .console-panel .log {
  196. color: white; }
  197. .insp-wrapper .tab-panel .console-panel .warn {
  198. color: orange; }
  199. .insp-wrapper .tab-panel .console-panel .error {
  200. color: orangered; }
  201. .insp-wrapper .tab-panel .console-panel .object {
  202. color: #5db0d7; }
  203. .insp-wrapper .tab-panel.stats-panel {
  204. overflow-y: auto; }
  205. .insp-wrapper .tab-panel .stats-fps {
  206. font-weight: 600;
  207. color: #f29766; }
  208. .insp-wrapper .tab-panel .stat-title1 {
  209. font-size: 1.1em;
  210. padding: 10px; }
  211. .insp-wrapper .tab-panel .stat-title2 {
  212. margin: 10px 0 10px 0;
  213. font-size: 1.05em;
  214. border-bottom: 1px solid #5db0d7;
  215. box-sizing: border-box; }
  216. .insp-wrapper .tab-panel .stat-label {
  217. display: inline-block;
  218. width: 80%;
  219. padding: 2px;
  220. background-color: #2c2c2c;
  221. border-bottom: 1px solid #242424;
  222. border-top: 1px solid #242424;
  223. height: 30px;
  224. line-height: 30px;
  225. box-sizing: border-box; }
  226. .insp-wrapper .tab-panel .stat-value {
  227. display: inline-block;
  228. width: 20%;
  229. padding: 2px;
  230. background-color: #2c2c2c;
  231. border-top: 1px solid #242424;
  232. border-bottom: 1px solid #242424;
  233. height: 30px;
  234. line-height: 30px;
  235. box-sizing: border-box; }
  236. .insp-wrapper .tab-panel .stat-infos {
  237. width: 100%;
  238. padding: 4px; }
  239. .insp-wrapper .property-type {
  240. color: #5db0d7; }
  241. .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 {
  242. color: #f29766; }
  243. .insp-wrapper .insp-tree {
  244. overflow-y: auto;
  245. overflow-x: hidden;
  246. height: calc(50% - 32px - 30px); }
  247. .insp-wrapper .insp-tree .line {
  248. padding: 3px;
  249. cursor: pointer; }
  250. .insp-wrapper .insp-tree .line:hover {
  251. background-color: #2c2c2c; }
  252. .insp-wrapper .insp-tree .line.active {
  253. background-color: #454545; }
  254. .insp-wrapper .insp-tree .line.active .line-content {
  255. background-color: #242424; }
  256. .insp-wrapper .insp-tree .line.unfolded:before {
  257. width: 1em;
  258. height: 1em;
  259. line-height: 1em;
  260. display: inline-block;
  261. font-family: 'FontAwesome', sans-serif;
  262. content: "\f078"; }
  263. .insp-wrapper .insp-tree .line.folded:before {
  264. width: 1em;
  265. height: 1em;
  266. line-height: 1em;
  267. display: inline-block;
  268. font-family: 'FontAwesome', sans-serif;
  269. content: "\f054"; }
  270. .insp-wrapper .insp-tree .line .line-content {
  271. padding-left: 15px; }
  272. .insp-wrapper .insp-tree .line .line-content:hover {
  273. background-color: #242424; }
  274. .insp-wrapper .insp-tree .line .line-content .line:hover:first-child {
  275. background-color: #383838; }
  276. .insp-wrapper .insp-details {
  277. background-color: #242424;
  278. overflow-y: auto;
  279. overflow-x: hidden;
  280. color: #ccc;
  281. font-family: "Inconsolata", sans-serif; }
  282. .insp-wrapper .insp-details .base-row, .insp-wrapper .insp-details .row, .insp-wrapper .insp-details .header-row {
  283. display: flex;
  284. width: 100%; }
  285. .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 {
  286. word-wrap: break-word;
  287. padding: 2px 0 2px 0; }
  288. .insp-wrapper .insp-details .base-row .prop-name, .insp-wrapper .insp-details .row .prop-name, .insp-wrapper .insp-details .header-row .prop-name {
  289. width: 35%; }
  290. .insp-wrapper .insp-details .base-row .prop-value, .insp-wrapper .insp-details .row .prop-value, .insp-wrapper .insp-details .header-row .prop-value {
  291. width: 59%;
  292. padding-left: 10px; }
  293. .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 {
  294. cursor: pointer; }
  295. .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 {
  296. background-color: #383838; }
  297. .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 {
  298. font-family: 'FontAwesome', sans-serif;
  299. content: "\00a0 \00a0 \00a0 \f054"; }
  300. .insp-wrapper .insp-details .row:nth-child(even) {
  301. background-color: #2c2c2c; }
  302. .insp-wrapper .insp-details .row.unfolded .prop-value.clickable:after {
  303. font-family: 'FontAwesome', sans-serif;
  304. content: "\00a0 \00a0 \00a0 \f078"; }
  305. .insp-wrapper .insp-details .header-row {
  306. background-color: #2c2c2c;
  307. color: #ccc;
  308. width: 100%;
  309. max-width: 100%; }
  310. .insp-wrapper .insp-details .header-row > * {
  311. color: #ccc !important;
  312. padding: 5px 0 5px 5px !important;
  313. cursor: pointer; }
  314. .insp-wrapper .insp-details .header-row > *:hover {
  315. background-color: #383838; }
  316. .insp-wrapper .insp-details .header-row .header-col {
  317. display: flex;
  318. justify-content: space-between;
  319. align-items: center; }
  320. .insp-wrapper .insp-details .header-row .header-col .sort-direction {
  321. margin-right: 5px; }
  322. .insp-wrapper .insp-details .element-viewer, .insp-wrapper .insp-details .color-element, .insp-wrapper .insp-details .texture-element {
  323. position: relative;
  324. width: 10px;
  325. height: 10px;
  326. display: inline-block;
  327. margin-left: 5px; }
  328. .insp-wrapper .insp-details .texture-element {
  329. color: #f29766;
  330. margin-left: 10px; }
  331. .insp-wrapper .insp-details .texture-element .texture-viewer {
  332. color: #ccc;
  333. position: absolute;
  334. z-index: 10;
  335. bottom: 0;
  336. right: 0;
  337. display: block;
  338. width: 150px;
  339. height: 150px;
  340. border: 1px solid #454545;
  341. background-color: #242424;
  342. transform: translateX(100%) translateY(100%);
  343. display: none;
  344. flex-direction: column;
  345. justify-content: flex-start;
  346. align-items: center; }
  347. .insp-wrapper .insp-details .texture-element .texture-viewer .texture-viewer-img {
  348. margin: 10px 0 10px 0;
  349. max-width: 110px;
  350. max-height: 110px; }
  351. .insp-wrapper .tabbar {
  352. height: 32px;
  353. display: flex;
  354. align-items: center;
  355. border-bottom: 1px solid #383838;
  356. width: 100%;
  357. overflow-x: auto;
  358. overflow-y: hidden;
  359. box-sizing: border-box; }
  360. .insp-wrapper .tabbar .tab {
  361. height: calc(32px - 2px);
  362. width: auto;
  363. padding: 0 10px 0 10px;
  364. color: #ccc;
  365. line-height: 32px;
  366. text-align: center;
  367. cursor: pointer;
  368. margin: 0 5px 0 5px;
  369. box-sizing: border-box; }
  370. .insp-wrapper .tabbar .tab:hover {
  371. border-bottom: 1px solid #f29766;
  372. background-color: #2c2c2c; }
  373. .insp-wrapper .tabbar .tab:active {
  374. background-color: #383838; }
  375. .insp-wrapper .tabbar .tab.active {
  376. border-bottom: 1px solid #f29766; }
  377. .insp-wrapper .tabbar .more-tabs {
  378. width: 32px;
  379. height: 32px;
  380. display: flex;
  381. justify-content: center;
  382. align-items: center;
  383. cursor: pointer;
  384. position: relative;
  385. border-right: 1px solid #383838; }
  386. .insp-wrapper .tabbar .more-tabs:hover {
  387. background-color: #383838; }
  388. .insp-wrapper .tabbar .more-tabs:active {
  389. color: #f29766;
  390. background-color: #454545; }
  391. .insp-wrapper .tabbar .more-tabs.active {
  392. color: #f29766; }
  393. .insp-wrapper .toolbar {
  394. display: flex; }
  395. .insp-wrapper .toolbar .tool {
  396. width: 32px;
  397. height: 32px;
  398. display: flex;
  399. justify-content: center;
  400. align-items: center;
  401. cursor: pointer;
  402. position: relative;
  403. border-right: 1px solid #383838; }
  404. .insp-wrapper .toolbar .tool:hover {
  405. background-color: #383838; }
  406. .insp-wrapper .toolbar .tool:active {
  407. color: #f29766;
  408. background-color: #454545; }
  409. .insp-wrapper .toolbar .tool.active {
  410. color: #f29766; }
  411. .insp-wrapper .searchbar {
  412. border: 1px solid #2c2c2c;
  413. margin-bottom: 5px;
  414. display: flex;
  415. align-items: center;
  416. color: #b3b3b3; }
  417. .insp-wrapper .searchbar input {
  418. background-color: #242424;
  419. border: none;
  420. width: 100%;
  421. outline: none;
  422. font-family: "Inconsolata", sans-serif;
  423. color: #b3b3b3;
  424. padding: 3px 0 3px 10px;
  425. margin: 6px 0 6px 0; }