index.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  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:10px;
  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: 80px;
  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. .navbar .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. .navbar .button i {
  125. margin-left: 10px;
  126. }
  127. .navbar .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. }
  203. .navbar .select .toDisplayBig ul li {
  204. padding:0 5px 0 5px;
  205. }
  206. .navbar .select .toDisplayBig ul li:hover {
  207. cursor: pointer;
  208. }
  209. .navbar .select .toDisplayBig ul li.light:hover {
  210. background-color: #d9d9d9;
  211. }
  212. .navbar .select .toDisplayBig ul li.dark:hover {
  213. background-color: #555;
  214. }
  215. .navbar .select .toDisplayBig a {
  216. text-decoration: none;
  217. }
  218. .navbar .select .toDisplayBig a.dark {
  219. color: white;
  220. }
  221. .navbar .select .toDisplayBig a.light {
  222. color: #7283a0;
  223. }
  224. .navbar .check:after {
  225. font-family: 'FontAwesome', sans-serif;
  226. content: "\00a0 \00a0 \00a0 \f14a";
  227. }
  228. .navbar .check.uncheck {
  229. background-color: #8290aa;
  230. }
  231. .navbar .check.uncheck:after {
  232. font-family: 'FontAwesome', sans-serif;
  233. content: "\00a0 \00a0 \00a0 \f096";
  234. }
  235. #errorZone {
  236. display:none;
  237. position: absolute;
  238. width: 50%;
  239. left: 25%;
  240. bottom: 40px;
  241. background-color: #C73228;
  242. padding:20px;
  243. border-radius: 5px;
  244. color:white;
  245. font-family: 'Inconsolata';
  246. }
  247. #errorZone button {
  248. position:absolute;
  249. top : 3px;
  250. right: 10px;
  251. padding: 0;
  252. cursor: pointer;
  253. background: transparent;
  254. border: 0;
  255. -webkit-appearance: none;
  256. color: #000;
  257. text-shadow: 0 1px 0 #fff;
  258. opacity: .4;
  259. font-size: 1.8em;
  260. }
  261. /* Navbar bottom */
  262. .navbarBottom {
  263. height:30px;
  264. width:100%;
  265. line-height:30px;
  266. position:relative;
  267. font-family: 'Montserrat';
  268. }
  269. .navbarBottom.dark {
  270. background-color: #333;
  271. }
  272. .navbarBottom.light {
  273. background-color: #efefef;
  274. }
  275. .navbarBottom #statusBar {
  276. line-height:30px;
  277. color: #999;
  278. font-family: 'Inconsolata';
  279. padding-left:20px;
  280. }
  281. .navbarBottom .links {
  282. position:absolute;
  283. right : 0;
  284. top:-1px;
  285. height:30px;
  286. padding-right:20px;
  287. }
  288. .navbarBottom .links .link{
  289. height:30px;
  290. display:inline-block;
  291. color:#999;
  292. padding: 0 10px 0 10px;
  293. margin : 0 5px 0 5px;
  294. font-size:0.8em;
  295. }
  296. .navbarBottom .links .link.light:hover{
  297. color:#999;
  298. background-color:#333;
  299. }
  300. .navbarBottom .links .link.dark:hover{
  301. color:#333;
  302. background-color:#eee;
  303. }
  304. .navbarBottom .links .link a{
  305. text-decoration: none;
  306. color:#999;
  307. display: inline-block;
  308. }
  309. /* MONACO */
  310. .monaco-editor .container:before,
  311. .monaco-editor .row:before {
  312. content: "";
  313. display: inherit;
  314. }
  315. .monaco-editor .container:after,
  316. .monaco-editor .row:after {
  317. clear: inherit;
  318. }
  319. .monaco-editor .container {
  320. width: auto;
  321. margin: inherit;
  322. padding: inherit;
  323. }
  324. .monaco-editor .close {
  325. float: none;
  326. font-size: inherit;
  327. font-weight: inherit;
  328. line-height: inherit;
  329. color: inherit;
  330. text-shadow: inherit;
  331. opacity: inherit;
  332. filter: inherit;
  333. }
  334. .monaco-editor .row {
  335. margin: inherit;
  336. }
  337. .monaco-editor .invisible {
  338. visibility: visible;
  339. }
  340. .monaco-editor .view-lines {
  341. font-family: 'Inconsolata' !important;
  342. }
  343. /* Save form & co */
  344. .save-message {
  345. display: none;
  346. position:absolute;
  347. top:40px; /* navbar top */
  348. width: 100%;
  349. z-index:5;
  350. text-align: center;
  351. font-size: 0.8em;
  352. line-height: 2em;
  353. cursor:pointer;
  354. }
  355. .save-message.light {
  356. background-color: rgba(239, 239, 239, 0.9);
  357. color: #7283a0;
  358. }
  359. .save-message.dark {
  360. background-color: rgba(51, 51, 51, 0.9);
  361. color: #eee;
  362. }
  363. .save-layer {
  364. display: none;
  365. position: absolute;
  366. top: 0;
  367. left: 0;
  368. width: 100%;
  369. height: 100%;
  370. background-color: rgba(120, 120, 120, .5);
  371. text-align: center;
  372. }
  373. .save-layer .save-form {
  374. position: absolute;
  375. top: 150px;
  376. left: calc(50% - 205px);
  377. width: 410px;
  378. height: 390px;
  379. padding-top: 15px;
  380. -webkit-border-radius: 6px;
  381. -moz-border-radius: 6px;
  382. border-radius: 6px;
  383. background-color: rgba(27, 27, 27, 0.75);
  384. /*#1b1b1b;*/
  385. background-image: -moz-linear-gradient(top, rgba(34, 34, 34, .75), rgba(17, 17, 17, .75));
  386. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(34, 34, 34, .75)), to(rgba(17, 17, 17, .75)));
  387. background-image: -webkit-linear-gradient(top, rgba(34, 34, 34, .75), rgba(17, 17, 17, .75));
  388. background-image: -o-linear-gradient(top, rgba(34, 34, 34, .75), rgba(17, 17, 17, .75));
  389. background-image: linear-gradient(to bottom, rgba(34, 34, 34, .75), rgba(17, 17, 17, .75));
  390. background-repeat: repeat-x;
  391. border-color: #252525;
  392. color: white;
  393. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  394. font-size: 14px;
  395. }
  396. .save-layer .save-form .separator {
  397. width: 350px;
  398. border-bottom: 1px solid #999;
  399. margin: auto;
  400. margin-top: -6px;
  401. margin-bottom: 10px;
  402. }
  403. .save-layer .save-form .save-form-buttons {
  404. margin-top: 10px;
  405. }
  406. .save-layer .save-form input,
  407. .save-layer .save-form textarea {
  408. width: 350px;
  409. }
  410. @media (max-width: 1600px) {
  411. .desktopOnly {
  412. display: none !important;
  413. }
  414. }
  415. @media (max-width: 1375px) {
  416. .desktopOnly {
  417. display: none !important;
  418. }
  419. .desktopTabletOnly {
  420. display: none !important;
  421. }
  422. }
  423. @media (max-width: 975px) {
  424. .title {
  425. display : none !important;
  426. }
  427. .version {
  428. display : none !important;
  429. }
  430. }
  431. @media (max-width: 850px) {
  432. #jsEditor {
  433. width : 0px !important;
  434. }
  435. #canvasZone {
  436. width : 100% !important;
  437. }
  438. }