index.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  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. pointer-events: none;
  120. user-select: none;
  121. }
  122. .navbar {
  123. height: 40px;
  124. width: 100%;
  125. font-family: "Montserrat";
  126. font-weight: 400;
  127. -webkit-user-select: none;
  128. -moz-user-select: none;
  129. -ms-user-select: none;
  130. user-select: none;
  131. position: relative;
  132. z-index:5;
  133. line-height: 40px;
  134. }
  135. .navbar.dark {
  136. background-color: #333;
  137. box-shadow: 0 3px 10px #000;
  138. }
  139. .navbar.light {
  140. background-color: #efefef;
  141. box-shadow: 0 3px 10px #999;
  142. }
  143. .navbar .title {
  144. height: 40px;
  145. padding-left: 10px;
  146. color: #15A4FA;
  147. display: inline-block;
  148. }
  149. .navbar .version {
  150. height: 40px;
  151. display: inline-block;
  152. color: #7283a0;
  153. margin-right: 20px;
  154. }
  155. .navbar .category {
  156. height: 40px;
  157. margin: 0 15px 0 15px;
  158. display: inline-block;
  159. }
  160. .navbar .category.right {
  161. position: absolute;
  162. right: 0;
  163. top: 0;
  164. }
  165. .button {
  166. display: inline-block;
  167. height: 25px;
  168. line-height: 25px;
  169. color: white;
  170. background-color: #7283a0;
  171. margin: 0 2px 0 2px;
  172. padding: 0 10px 0 10px;
  173. font-size: 0.85em;
  174. border-radius: 3px;
  175. }
  176. .button i {
  177. margin-left: 10px;
  178. }
  179. .button:hover {
  180. cursor: pointer;
  181. background-color: #15A4FA;
  182. }
  183. .navbar .button.run {
  184. height: 30px;
  185. line-height: 30px;
  186. background-color: #15A4FA;
  187. font-size: 1.0em;
  188. }
  189. .navbar .select {
  190. position: relative;
  191. }
  192. .navbar .select .subSelect {
  193. position: relative;
  194. }
  195. .navbar .select:after {
  196. font-family: 'FontAwesome', sans-serif;
  197. content: "\00a0 \00a0 \00a0 \f078";
  198. }
  199. .navbar .select .toDisplay {
  200. border: 1px solid #7283a0;
  201. position: absolute;
  202. z-index: 10;
  203. left: 0;
  204. top: 25px;
  205. min-width: 100%;
  206. width: 150px;
  207. display: none;
  208. }
  209. .navbar .select .subSelect .toDisplaySub {
  210. border: 1px solid #7283a0;
  211. position: absolute;
  212. z-index: 10;
  213. left: 100%;
  214. top: 0;
  215. min-width: 100%;
  216. display: none;
  217. }
  218. .navbar .select .toDisplay .option {
  219. font-size: 0.9em;
  220. height: 35px;
  221. line-height: 35px;
  222. padding: 0px 5px 0px 5px;
  223. text-align: center;
  224. border-bottom : 1px solid rgba(0,0,0,0.1);
  225. }
  226. .navbar .select .toDisplay .option.light:hover {
  227. cursor: pointer;
  228. background-color: #d9d9d9;
  229. }
  230. .navbar .select .toDisplay .option.dark {
  231. background-color: #333;
  232. color: white;
  233. }
  234. .navbar .select .toDisplay .option.light {
  235. background-color: white;
  236. color: #7283a0;
  237. }
  238. .navbar .select .toDisplay .option.dark:hover {
  239. cursor: pointer;
  240. background-color: #555;
  241. }
  242. .navbar .select .toDisplayBig {
  243. border: 1px solid #7283a0;
  244. border-radius: 5px;
  245. position: absolute;
  246. z-index: 10;
  247. top: 32px;
  248. width:550px;
  249. max-height:390px;
  250. overflow-y: auto;
  251. right:0;
  252. position:absolute;
  253. font-size:0.8em;
  254. display: none;
  255. }
  256. .navbar .select .toDisplayBig.light {
  257. background-color: white;
  258. color: #15A4FA;
  259. }
  260. .navbar .select .toDisplayBig.dark {
  261. background-color: #333;
  262. color:white;
  263. }
  264. .navbar .select .toDisplayBig ul {
  265. column-count: 3;
  266. padding:0;
  267. margin:0;
  268. list-style: none;
  269. }
  270. .navbar .select .toDisplayBig ul li {
  271. padding:0 5px 0 5px;
  272. }
  273. .navbar .select .toDisplayBig ul li:hover {
  274. cursor: pointer;
  275. }
  276. .navbar .select .toDisplayBig ul li.light:hover {
  277. background-color: #d9d9d9;
  278. }
  279. .navbar .select .toDisplayBig ul li.dark:hover {
  280. background-color: #555;
  281. }
  282. .navbar .select .toDisplayBig a {
  283. text-decoration: none;
  284. }
  285. .navbar .select .toDisplayBig a.dark {
  286. color: white;
  287. }
  288. .navbar .select .toDisplayBig a.light {
  289. color: #7283a0;
  290. }
  291. .navbar .check:after {
  292. font-family: 'FontAwesome', sans-serif;
  293. content: "\00a0 \00a0 \00a0 \f14a";
  294. }
  295. .navbar .check.uncheck {
  296. background-color: #8290aa;
  297. }
  298. .navbar .check.uncheck:after {
  299. font-family: 'FontAwesome', sans-serif;
  300. content: "\00a0 \00a0 \00a0 \f096";
  301. }
  302. #errorZone {
  303. display:none;
  304. position: absolute;
  305. width: 50%;
  306. left: 25%;
  307. bottom: 40px;
  308. background-color: #C73228;
  309. padding:20px;
  310. border-radius: 5px;
  311. color:white;
  312. font-family: 'Inconsolata';
  313. }
  314. #errorZone button {
  315. position:absolute;
  316. top : 3px;
  317. right: 10px;
  318. padding: 0;
  319. cursor: pointer;
  320. background: transparent;
  321. border: 0;
  322. -webkit-appearance: none;
  323. color: #000;
  324. text-shadow: 0 1px 0 #fff;
  325. opacity: .4;
  326. font-size: 1.8em;
  327. }
  328. /* Navbar bottom */
  329. .navbarBottom {
  330. height:30px;
  331. width:100%;
  332. line-height:30px;
  333. position:relative;
  334. font-family: 'Montserrat';
  335. }
  336. .navbarBottom.dark {
  337. background-color: #333;
  338. }
  339. .navbarBottom.light {
  340. background-color: #efefef;
  341. }
  342. .navbarBottom #statusBar {
  343. line-height:30px;
  344. color: #E74C3C;
  345. font-family: 'Inconsolata';
  346. padding-left:20px;
  347. }
  348. .navbarBottom .links {
  349. position:absolute;
  350. right : 0;
  351. top:-1px;
  352. height:30px;
  353. padding-right:20px;
  354. }
  355. .navbarBottom .links .link{
  356. height:30px;
  357. display:inline-block;
  358. color:#999;
  359. padding: 0 10px 0 10px;
  360. margin : 0 5px 0 5px;
  361. font-size:0.8em;
  362. }
  363. .navbarBottom .links .link.light:hover{
  364. color:#999;
  365. background-color:#333;
  366. }
  367. .navbarBottom .links .link.dark:hover{
  368. color:#333;
  369. background-color:#eee;
  370. }
  371. .navbarBottom .links .link a{
  372. text-decoration: none;
  373. color:#999;
  374. display: inline-block;
  375. }
  376. /* Save form & co */
  377. .save-message {
  378. display: none;
  379. position:absolute;
  380. top:40px; /* navbar top */
  381. width: 100%;
  382. z-index:5;
  383. text-align: center;
  384. font-size: 0.8em;
  385. line-height: 2em;
  386. cursor:pointer;
  387. }
  388. .save-message.light {
  389. background-color: rgba(239, 239, 239, 0.9);
  390. color: #7283a0;
  391. }
  392. .save-message.dark {
  393. background-color: rgba(51, 51, 51, 0.9);
  394. color: #eee;
  395. }
  396. .save-layer {
  397. display: none;
  398. position: absolute;
  399. top: 0;
  400. left: 0;
  401. width: 100%;
  402. height: 100%;
  403. background-color: rgba(120, 120, 120, .5);
  404. text-align: center;
  405. }
  406. .save-layer .save-form {
  407. position: absolute;
  408. top: 150px;
  409. left: calc(50% - 205px);
  410. width: 410px;
  411. height: 370px;
  412. padding-top: 15px;
  413. -webkit-border-radius: 6px;
  414. -moz-border-radius: 6px;
  415. border-radius: 6px;
  416. background-color: rgba(27, 27, 27, 0.75);
  417. border-color: #252525;
  418. color: white;
  419. font-family: "Montserrat";
  420. font-size: 14px;
  421. }
  422. .save-layer .save-form .separator {
  423. width: 350px;
  424. border-bottom: 1px solid #999;
  425. margin: auto;
  426. margin-bottom: 10px;
  427. }
  428. .save-layer .save-form input,
  429. .save-layer .save-form textarea {
  430. display:block;
  431. width: 350px;
  432. margin:auto;
  433. margin-bottom: 20px;
  434. font-family: "Montserrat";
  435. padding:5px;
  436. }
  437. /*Media queries*/
  438. @media (min-width: 1475px) {
  439. .navBar1600 { display: block; }
  440. .navBar1475 { display: none; }
  441. .navBar1030 { display: none; }
  442. .navBar750 { display: none; }
  443. .navbar .select .toDisplayBig ul {
  444. column-count: 3;
  445. }
  446. }
  447. @media (max-width: 1475px) {
  448. .navBar1600 { display: none; }
  449. .navBar1475 { display: none; }
  450. .navBar1030 { display: block; }
  451. .navBar750 { display: none; }
  452. .navbar .select .toDisplayBig ul {
  453. column-count: 2;
  454. }
  455. }
  456. @media (max-width: 750px) {
  457. .navBar1600 { display: none; }
  458. .navBar1475 { display: none; }
  459. .navBar1030 { display: none; }
  460. .navBar750 { display: block; }
  461. .removeOnPhone {
  462. display : none !important;
  463. }
  464. .navbar .select .toDisplayBig {
  465. width:350px;
  466. }
  467. .navbar .select .toDisplayBig ul {
  468. column-count: 1;
  469. }
  470. }