babylon.inspector.css 16 KB

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