index.css 11 KB

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