index.css 11 KB

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