index.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. @import url("https://fonts.googleapis.com/css?family=Montserrat:300,400");
  2. @import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css");
  3. html,
  4. body {
  5. width: 100%;
  6. height: 100%;
  7. margin: 0;
  8. padding: 0;
  9. overflow: hidden;
  10. font-family: sans-serif;
  11. }
  12. .wrapper {
  13. height: calc(100% - 40px - 30px); /* nvabar top and bottom*/
  14. width: 100%;
  15. display: -ms-flexbox;
  16. display: flex;
  17. -ms-flex-direction: row;
  18. flex-direction: row;
  19. }
  20. .wrapper .gutter {
  21. background-color: #f7f7f7;
  22. background-repeat: no-repeat;
  23. background-position: 50%;
  24. }
  25. .wrapper .gutter.light {
  26. background-color: #f7f7f7;
  27. }
  28. .wrapper .gutter.dark {
  29. background-color: #333;
  30. }
  31. .wrapper .gutter:hover {
  32. cursor: ew-resize;
  33. }
  34. .wrapper .gutter.gutter-vertical {
  35. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=");
  36. }
  37. .wrapper .gutter.gutter-horizontal {
  38. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==");
  39. }
  40. .wrapper #jsEditor {
  41. padding-top:5px;
  42. height: calc(100% - 10px);
  43. }
  44. .wrapper #jsEditor.light {
  45. background-color: white;
  46. }
  47. .wrapper #jsEditor.dark {
  48. background-color: #1e1e1e;
  49. }
  50. .wrapper #canvasZone {
  51. height: 100%;
  52. }
  53. #renderCanvas {
  54. width: 100%;
  55. height: 100%;
  56. touch-action: none;
  57. }
  58. #fpsLabel {
  59. position: absolute;
  60. right: 10px;
  61. top: 50px;
  62. cursor: default;
  63. z-index:10;
  64. background-color: #7283a0;
  65. color:white;
  66. padding:5px;
  67. border-radius: 3px;
  68. font-family: 'Montserrat'
  69. }
  70. .navbar {
  71. height: 40px;
  72. width: 100%;
  73. font-family: "Montserrat";
  74. font-weight: 400;
  75. -webkit-user-select: none;
  76. -moz-user-select: none;
  77. -ms-user-select: none;
  78. user-select: none;
  79. position: relative;
  80. z-index:5;
  81. line-height: 40px;
  82. }
  83. .navbar.dark {
  84. background-color: #333;
  85. box-shadow: 0 3px 10px #000;
  86. }
  87. .navbar.light {
  88. background-color: #efefef;
  89. box-shadow: 0 3px 10px #999;
  90. }
  91. .navbar .title {
  92. height: 40px;
  93. padding-left: 10px;
  94. color: #15A4FA;
  95. display: inline-block;
  96. }
  97. .navbar .version {
  98. height: 40px;
  99. display: inline-block;
  100. color: #7283a0;
  101. margin-right: 20px;
  102. }
  103. .navbar .category {
  104. height: 40px;
  105. margin: 0 15px 0 15px;
  106. display: inline-block;
  107. }
  108. .navbar .category.right {
  109. position: absolute;
  110. right: 0;
  111. top: 0;
  112. }
  113. .button {
  114. display: inline-block;
  115. height: 25px;
  116. line-height: 25px;
  117. color: white;
  118. background-color: #7283a0;
  119. margin: 0 2px 0 2px;
  120. padding: 0 10px 0 10px;
  121. font-size: 0.85em;
  122. border-radius: 3px;
  123. }
  124. .button i {
  125. margin-left: 10px;
  126. }
  127. .button:hover {
  128. cursor: pointer;
  129. background-color: #15A4FA;
  130. }
  131. .navbar .button.run {
  132. height: 30px;
  133. line-height: 30px;
  134. background-color: #15A4FA;
  135. font-size: 1.0em;
  136. }
  137. .navbar .select {
  138. position: relative;
  139. }
  140. .navbar .select .subSelect {
  141. position: relative;
  142. }
  143. .navbar .select:after {
  144. font-family: 'FontAwesome', sans-serif;
  145. content: "\00a0 \00a0 \00a0 \f078";
  146. }
  147. .navbar .select .toDisplay {
  148. border: 1px solid #7283a0;
  149. position: absolute;
  150. z-index: 10;
  151. left: 0;
  152. top: 25px;
  153. min-width: 100%;
  154. width: 150px;
  155. display: none;
  156. }
  157. .navbar .select .subSelect .toDisplaySub {
  158. border: 1px solid #7283a0;
  159. position: absolute;
  160. z-index: 10;
  161. left: 100%;
  162. top: 0;
  163. min-width: 100%;
  164. display: none;
  165. }
  166. .navbar .select .toDisplay .option {
  167. font-size: 0.9em;
  168. height: 35px;
  169. line-height: 35px;
  170. padding: 0px 5px 0px 5px;
  171. text-align: center;
  172. border-bottom : 1px solid rgba(0,0,0,0.1);
  173. }
  174. .navbar .select .toDisplay .option.light:hover {
  175. cursor: pointer;
  176. background-color: #d9d9d9;
  177. }
  178. .navbar .select .toDisplay .option.dark {
  179. background-color: #333;
  180. color: white;
  181. }
  182. .navbar .select .toDisplay .option.light {
  183. background-color: white;
  184. color: #7283a0;
  185. }
  186. .navbar .select .toDisplay .option.dark:hover {
  187. cursor: pointer;
  188. background-color: #555;
  189. }
  190. .navbar .select .toDisplayBig {
  191. border: 1px solid #7283a0;
  192. border-radius: 5px;
  193. position: absolute;
  194. z-index: 10;
  195. top: 32px;
  196. width:550px;
  197. max-height:390px;
  198. overflow-y: auto;
  199. right:0;
  200. position:absolute;
  201. font-size:0.8em;
  202. display: none;
  203. }
  204. .navbar .select .toDisplayBig.light {
  205. background-color: white;
  206. color: #15A4FA;
  207. }
  208. .navbar .select .toDisplayBig.dark {
  209. background-color: #333;
  210. color:white;
  211. }
  212. .navbar .select .toDisplayBig ul {
  213. column-count: 3;
  214. padding:0;
  215. margin:0;
  216. list-style: none;
  217. }
  218. .navbar .select .toDisplayBig ul li {
  219. padding:0 5px 0 5px;
  220. }
  221. .navbar .select .toDisplayBig ul li:hover {
  222. cursor: pointer;
  223. }
  224. .navbar .select .toDisplayBig ul li.light:hover {
  225. background-color: #d9d9d9;
  226. }
  227. .navbar .select .toDisplayBig ul li.dark:hover {
  228. background-color: #555;
  229. }
  230. .navbar .select .toDisplayBig a {
  231. text-decoration: none;
  232. }
  233. .navbar .select .toDisplayBig a.dark {
  234. color: white;
  235. }
  236. .navbar .select .toDisplayBig a.light {
  237. color: #7283a0;
  238. }
  239. .navbar .check:after {
  240. font-family: 'FontAwesome', sans-serif;
  241. content: "\00a0 \00a0 \00a0 \f14a";
  242. }
  243. .navbar .check.uncheck {
  244. background-color: #8290aa;
  245. }
  246. .navbar .check.uncheck:after {
  247. font-family: 'FontAwesome', sans-serif;
  248. content: "\00a0 \00a0 \00a0 \f096";
  249. }
  250. #errorZone {
  251. display:none;
  252. position: absolute;
  253. width: 50%;
  254. left: 25%;
  255. bottom: 40px;
  256. background-color: #C73228;
  257. padding:20px;
  258. border-radius: 5px;
  259. color:white;
  260. font-family: 'Inconsolata';
  261. }
  262. #errorZone button {
  263. position:absolute;
  264. top : 3px;
  265. right: 10px;
  266. padding: 0;
  267. cursor: pointer;
  268. background: transparent;
  269. border: 0;
  270. -webkit-appearance: none;
  271. color: #000;
  272. text-shadow: 0 1px 0 #fff;
  273. opacity: .4;
  274. font-size: 1.8em;
  275. }
  276. /* Navbar bottom */
  277. .navbarBottom {
  278. height:30px;
  279. width:100%;
  280. line-height:30px;
  281. position:relative;
  282. font-family: 'Montserrat';
  283. }
  284. .navbarBottom.dark {
  285. background-color: #333;
  286. }
  287. .navbarBottom.light {
  288. background-color: #efefef;
  289. }
  290. .navbarBottom #statusBar {
  291. line-height:30px;
  292. color: #E74C3C;
  293. font-family: 'Inconsolata';
  294. padding-left:20px;
  295. }
  296. .navbarBottom .links {
  297. position:absolute;
  298. right : 0;
  299. top:-1px;
  300. height:30px;
  301. padding-right:20px;
  302. }
  303. .navbarBottom .links .link{
  304. height:30px;
  305. display:inline-block;
  306. color:#999;
  307. padding: 0 10px 0 10px;
  308. margin : 0 5px 0 5px;
  309. font-size:0.8em;
  310. }
  311. .navbarBottom .links .link.light:hover{
  312. color:#999;
  313. background-color:#333;
  314. }
  315. .navbarBottom .links .link.dark:hover{
  316. color:#333;
  317. background-color:#eee;
  318. }
  319. .navbarBottom .links .link a{
  320. text-decoration: none;
  321. color:#999;
  322. display: inline-block;
  323. }
  324. /* MONACO */
  325. .monaco-editor .container:before,
  326. .monaco-editor .row:before {
  327. content: "";
  328. display: inherit;
  329. }
  330. .monaco-editor .container:after,
  331. .monaco-editor .row:after {
  332. clear: inherit;
  333. }
  334. .monaco-editor .container {
  335. width: auto;
  336. margin: inherit;
  337. padding: inherit;
  338. }
  339. .monaco-editor .close {
  340. float: none;
  341. font-size: inherit;
  342. font-weight: inherit;
  343. line-height: inherit;
  344. color: inherit;
  345. text-shadow: inherit;
  346. opacity: inherit;
  347. filter: inherit;
  348. }
  349. .monaco-editor .row {
  350. margin: inherit;
  351. }
  352. .monaco-editor .invisible {
  353. visibility: visible;
  354. }
  355. .monaco-editor .view-lines {
  356. font-family: 'Inconsolata' !important;
  357. }
  358. /* Save form & co */
  359. .save-message {
  360. display: none;
  361. position:absolute;
  362. top:40px; /* navbar top */
  363. width: 100%;
  364. z-index:5;
  365. text-align: center;
  366. font-size: 0.8em;
  367. line-height: 2em;
  368. cursor:pointer;
  369. }
  370. .save-message.light {
  371. background-color: rgba(239, 239, 239, 0.9);
  372. color: #7283a0;
  373. }
  374. .save-message.dark {
  375. background-color: rgba(51, 51, 51, 0.9);
  376. color: #eee;
  377. }
  378. .save-layer {
  379. display: none;
  380. position: absolute;
  381. top: 0;
  382. left: 0;
  383. width: 100%;
  384. height: 100%;
  385. background-color: rgba(120, 120, 120, .5);
  386. text-align: center;
  387. }
  388. .save-layer .save-form {
  389. position: absolute;
  390. top: 150px;
  391. left: calc(50% - 205px);
  392. width: 410px;
  393. height: 370px;
  394. padding-top: 15px;
  395. -webkit-border-radius: 6px;
  396. -moz-border-radius: 6px;
  397. border-radius: 6px;
  398. background-color: rgba(27, 27, 27, 0.75);
  399. border-color: #252525;
  400. color: white;
  401. font-family: "Montserrat";
  402. font-size: 14px;
  403. }
  404. .save-layer .save-form .separator {
  405. width: 350px;
  406. border-bottom: 1px solid #999;
  407. margin: auto;
  408. margin-bottom: 10px;
  409. }
  410. .save-layer .save-form input,
  411. .save-layer .save-form textarea {
  412. display:block;
  413. width: 350px;
  414. margin:auto;
  415. margin-bottom: 20px;
  416. font-family: "Montserrat";
  417. padding:5px;
  418. }
  419. /*Media queries*/
  420. @media (min-width: 1475px) {
  421. .navBar1600 { display: block; }
  422. .navBar1475 { display: none; }
  423. .navBar1030 { display: none; }
  424. .navBar750 { display: none; }
  425. .navbar .select .toDisplayBig ul {
  426. column-count: 3;
  427. }
  428. }
  429. @media (max-width: 1475px) {
  430. .navBar1600 { display: none; }
  431. .navBar1475 { display: block; }
  432. .navBar1030 { display: none; }
  433. .navBar750 { display: none; }
  434. .navbar .select .toDisplayBig ul {
  435. column-count: 3;
  436. }
  437. }
  438. @media (max-width: 1030px) {
  439. .navBar1600 { display: none; }
  440. .navBar1475 { display: none; }
  441. .navBar1030 { display: block; }
  442. .navBar750 { display: none; }
  443. .navbar .select .toDisplayBig ul {
  444. column-count: 2;
  445. }
  446. }
  447. @media (max-width: 750px) {
  448. .navBar1600 { display: none; }
  449. .navBar1475 { display: none; }
  450. .navBar1030 { display: none; }
  451. .navBar750 { display: block; }
  452. .removeOnPhone {
  453. display : none !important;
  454. }
  455. .navbar .select .toDisplayBig ul {
  456. column-count: 1;
  457. }
  458. }