index.css 11 KB

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