babylon.inspector.css 14 KB

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