babylon.inspector.css 16 KB

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