index.css 9.3 KB

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