index.css 11 KB

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