index.css 11 KB

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