babylon.inspector.css 16 KB

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