index.css 9.7 KB

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