base.css 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. body {
  2. overflow: hidden;
  3. font-family: sans-serif;
  4. }
  5. #mainarea {
  6. background-color: black;
  7. position: absolute;
  8. width: 100%;
  9. height: 100%;
  10. left: 0px;
  11. right: 0px;
  12. top: 0px;
  13. bottom: 0px;
  14. overflow: hidden;
  15. }
  16. #canvas {
  17. display: block;
  18. position: absolute;
  19. top: 50%;
  20. left: 50%;
  21. transform: translate(-50%, -50%);
  22. /*image-resolution: 2dppx;*/
  23. background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTAiIGhlaWdodD0iNTAiPjx0ZXh0IHN0eWxlPSJmb250OiAzMHB4IHNhbnMtc2VyaWY7IiBmaWxsPSJ3aGl0ZSIgeD0iNTAlIiB5PSI1MCUiIGRvbWluYW50LWJhc2VsaW5lPSJtaWRkbGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPkxvYWRpbmc8L3RleHQ+PC9zdmc+");
  24. background-repeat: no-repeat;
  25. background-position: center;
  26. z-index: 4;
  27. height: 100vh !important;
  28. width: auto !important;
  29. }
  30. #canvasmask {
  31. position: absolute;
  32. top: 50%;
  33. left: 50%;
  34. transform: translateX(-100vw) translate(-50%, -50%);
  35. z-index: 5;
  36. }
  37. @media (min-height: 75vw) {
  38. #canvas {
  39. height: auto !important;
  40. width: 100vw !important;
  41. }
  42. }
  43. #canvasmask>* {
  44. transform: translateX(100vw);
  45. }
  46. #canvas.textureSmooth {
  47. image-rendering: auto;
  48. }
  49. #canvas.texturePixelated {
  50. image-rendering: crisp-edges;
  51. image-rendering: pixelated;
  52. }
  53. .console, .consolemarker, .consoleinput {
  54. display: block;
  55. outline: none;
  56. appearance: none;
  57. margin: 0px;
  58. padding: 2px;
  59. border: none;
  60. background-color: black;
  61. color: #EEE;
  62. font-family: monospace;
  63. }
  64. .console {
  65. width: calc(100% - 4px);
  66. height: calc(100% - 24px);
  67. resize: none;
  68. overflow: auto;
  69. white-space: pre;
  70. }
  71. .console::selection, .consoleinput::selection {
  72. background-color: #f3f3f3;
  73. color: black;
  74. }
  75. .consolemarker {
  76. width: 16px;
  77. height: 16px;
  78. float: left;
  79. user-select: none;
  80. text-align: center;
  81. font-weight: bold;
  82. color: #367cf1;
  83. }
  84. .consolemarker::after {
  85. content: ">";
  86. }
  87. .consoleinput {
  88. width: calc(100% - 24px);
  89. height: 16px;
  90. float: right;
  91. }
  92. ul {
  93. list-style: none;
  94. padding: 0;
  95. margin: 0;
  96. }
  97. #menu {
  98. position: fixed;
  99. display: none;
  100. background-color: #ffffff;
  101. transition: opacity 0.3s ease;
  102. z-index: 20;
  103. opacity: 0;
  104. }
  105. #menu:hover, #menu.show {
  106. opacity: 0.9;
  107. }
  108. #menuindicator {
  109. position: absolute;
  110. display: none;
  111. left: 50%;
  112. transform: translateX(-50%);
  113. top: 50px;
  114. background-color: black;
  115. border-radius: 2px;
  116. color: white;
  117. text-align: center;
  118. padding: 20px;
  119. font-size: 20px;
  120. }
  121. #menuindicator.show {
  122. display: block;
  123. }
  124. #menuindicator h1, #menuindicator h2 {
  125. margin: 0px;
  126. }
  127. #menu li {
  128. white-space: nowrap;
  129. max-width: 250px;
  130. position: relative;
  131. }
  132. #menu>li {
  133. padding: 12px 16px;
  134. cursor: pointer;
  135. display: inline-block;
  136. float: left;
  137. }
  138. #menu li:not(.disabled, .menu-nohover):hover {
  139. background-color: rgba(0, 0, 0, .1);
  140. }
  141. #menu .menu-long {
  142. white-space: normal;
  143. }
  144. #menu li input {
  145. transform: scale(1.5);
  146. cursor: pointer;
  147. margin: 0px 12px 0px 0px;
  148. }
  149. #menu li a {
  150. text-decoration: underline;
  151. color: black;
  152. }
  153. /* both opacity AND visibility are important in this case */
  154. #menu li:hover>ul {
  155. visibility: visible;
  156. opacity: 1;
  157. }
  158. #menu ul {
  159. visibility: hidden;
  160. opacity: 0;
  161. position: absolute;
  162. top: 100%;
  163. left: 0;
  164. background-color: rgb(245, 245, 245);
  165. transition: opacity 0.3s ease;
  166. }
  167. #menu ul li {
  168. padding: 4px 12px;
  169. cursor: default;
  170. }
  171. #menu ul li.pointer {
  172. cursor: pointer;
  173. }
  174. #menu li.disabled {
  175. color: #666;
  176. cursor: not-allowed !important;
  177. }
  178. #menu ul.disabled li:hover, #menu ul.menu-nohover li:hover {
  179. background-color: rgb(245, 245, 245);
  180. }
  181. input[disabled] {
  182. cursor: not-allowed !important;
  183. }
  184. #menu ul.xlmenu li {
  185. max-width: none;
  186. }
  187. #ffd {
  188. height: 200px;
  189. width: 400px;
  190. position: absolute;
  191. background-color: #dddddd;
  192. top: 50%;
  193. left: 50%;
  194. transform: translate(-50%, -50%);
  195. text-align: center;
  196. border-radius: 2px;
  197. overflow: auto;
  198. z-index: 8;
  199. }
  200. #ffd::before {
  201. opacity: 0;
  202. width: 100%;
  203. height: 0px;
  204. background-color: #333333;
  205. content: "Drop File";
  206. position: absolute;
  207. top: 0px;
  208. left: 0px;
  209. z-index: 10;
  210. display: flex;
  211. align-items: center;
  212. justify-content: center;
  213. font-size: 30px;
  214. font-weight: bold;
  215. color: white;
  216. }
  217. #ffd.filehover::before {
  218. opacity: 1;
  219. height: 100%;
  220. }
  221. #ffd.filehover {
  222. border: 2px dashed #dddddd;
  223. background-color: #333333;
  224. }
  225. #ffd ul li {
  226. margin-bottom: 3px;
  227. }
  228. #ffd ul li a {
  229. text-decoration: none;
  230. color: black;
  231. }
  232. input[type="file"] {
  233. display: none;
  234. }
  235. .uploadbutton {
  236. margin: 8px 10px;
  237. display: inline-block;
  238. user-select: none;
  239. cursor: pointer;
  240. }
  241. .uploadimage {
  242. width: 20px;
  243. vertical-align: middle;
  244. }
  245. #upload {
  246. border: 1px solid rgb(118, 118, 118);
  247. border-radius: 2px;
  248. padding: 4px;
  249. font-size: 13px;
  250. background-color: white;
  251. transition: ease .1s;
  252. }
  253. #upload:hover {
  254. background-color: #eee;
  255. }
  256. #ffdcontent {
  257. height: calc(100% - 45px);
  258. padding: 10px;
  259. overflow: auto;
  260. }
  261. #ffd .source {
  262. width: calc(100% - 10px);
  263. height: 15px;
  264. padding: 5px;
  265. }
  266. #ffd .source * {
  267. text-decoration: none;
  268. color: black;
  269. font-size: 10px;
  270. margin: 0px 5px;
  271. vertical-align: top;
  272. display: inline-block;
  273. height: 15px;
  274. line-height: 15px;
  275. }
  276. #versionindicator {
  277. font-weight: bold;
  278. position: absolute;
  279. right: 5px;
  280. cursor: help;
  281. }
  282. .greyer {
  283. color: #404040 !important;
  284. }
  285. #resume {
  286. z-index: 10;
  287. position: absolute;
  288. height: 100%;
  289. width: 100%;
  290. user-select: none;
  291. display: none;
  292. }
  293. body.paused #canvas {
  294. filter: blur(10px);
  295. }
  296. body.paused #resume {
  297. display: block;
  298. }
  299. #resume div {
  300. position: absolute;
  301. top: 50%;
  302. left: 50%;
  303. transform: translate(-50%, -50%);
  304. background-color: black;
  305. color: white;
  306. padding: 20px;
  307. text-align: center;
  308. border-radius: 2px;
  309. }
  310. #resume div h1 {
  311. margin-top: 0px;
  312. }
  313. #resume div h3 {
  314. margin-bottom: 0px;
  315. }
  316. #sidealertholder {
  317. position: absolute;
  318. right: 10px;
  319. bottom: 0px;
  320. width: 200px;
  321. display: flex;
  322. flex-direction: column;
  323. justify-content: flex-end;
  324. }
  325. .sidealert {
  326. background-color: rgb(49, 113, 152);
  327. color: white;
  328. user-select: none;
  329. cursor: default;
  330. margin: 0px;
  331. padding: 5px 8px;
  332. opacity: 0;
  333. transition: all 0.1s ease-in;
  334. position: relative;
  335. }
  336. .sidealert.on {
  337. opacity: 1;
  338. margin-bottom: 10px;
  339. }
  340. #startbutton {
  341. position: absolute;
  342. top: 50%;
  343. left: 50%;
  344. transform: translate(-50%, -50%);
  345. font-size: 40px;
  346. padding: 10px 20px;
  347. z-index: 100;
  348. outline: none;
  349. border-radius: 4px;
  350. cursor: pointer;
  351. display: none;
  352. }
  353. #updatenotice {
  354. position: absolute;
  355. top: calc(50% + 120px);
  356. left: 50%;
  357. transform: translateX(-50%);
  358. max-height: calc(50% - 140px);
  359. max-width: 400px;
  360. overflow-y: auto;
  361. margin: 0px;
  362. padding: 0px 10px;
  363. color: white;
  364. white-space: pre-wrap;
  365. z-index: 8;
  366. display: none;
  367. }
  368. #modals {
  369. background-color: rgba(255, 255, 255, 0.5);
  370. position: absolute;
  371. width: 100%;
  372. height: 100%;
  373. left: 0px;
  374. right: 0px;
  375. top: 0px;
  376. bottom: 0px;
  377. overflow: hidden;
  378. z-index: 30;
  379. display: none;
  380. }
  381. #managers {
  382. background-color: white;
  383. position: absolute;
  384. top: 50%;
  385. left: 50%;
  386. transform: translate(-50%, -50%);
  387. height: calc(100vh - 50px);
  388. }
  389. .modaltop {
  390. height: 30px;
  391. line-height: 30px;
  392. padding: 10px;
  393. }
  394. .modaltop h2 {
  395. display: inline;
  396. margin: 5px;
  397. text-transform: capitalize;
  398. }
  399. .modaltop span {
  400. float: right;
  401. display: inline-block;
  402. width: 30px;
  403. text-align: center;
  404. cursor: pointer;
  405. font-size: 24px;
  406. }
  407. #keybindmanager, #screenshotmanager, #savemanager {
  408. height: calc(100% - 90px);
  409. padding: 20px;
  410. padding-top: 10px;
  411. }
  412. #keybindmanager {
  413. display: none;
  414. width: 500px;
  415. }
  416. #screenshotmanager {
  417. display: none;
  418. width: 1000px;
  419. }
  420. #savemanager {
  421. display: none;
  422. width: 750px;
  423. }
  424. .managertableparent {
  425. height: calc(100% - 78px);
  426. width: 100%;
  427. display: block;
  428. overflow: auto;
  429. margin-bottom: 20px;
  430. }
  431. .managertable {
  432. box-shadow: inset 0px 0px 5px 2px rgba(0, 0, 16, 0.15);
  433. display: block;
  434. width: 100%;
  435. vertical-align: top;
  436. }
  437. .managertable tr {
  438. display: block;
  439. width: 100%;
  440. }
  441. .managertable td {
  442. display: inline-block;
  443. height: 100%;
  444. padding: 2px;
  445. padding-left: 6px;
  446. white-space: nowrap;
  447. overflow-x: auto;
  448. scrollbar-width: none;
  449. }
  450. #keybindtable td {
  451. width: calc(50% - 8px);
  452. }
  453. .managertable td::-webkit-scrollbar {
  454. display: none;
  455. }
  456. .managertable tr:nth-child(even) {
  457. background-color: #ace9fa;
  458. }
  459. .managertable td:nth-child(even) {
  460. background-color: rgba(0, 0, 0, 0.05);
  461. }
  462. #keybindtable td:last-child {
  463. cursor: pointer;
  464. }
  465. #keybindtable td:last-child:hover {
  466. background-color: rgba(0, 0, 0, 0.1);
  467. }
  468. #savetable tr {
  469. display: flex;
  470. }
  471. #savetable td:first-child {
  472. flex-grow: 1;
  473. }
  474. #savetable td:last-child {
  475. flex-shrink: 0;
  476. padding-left: 2px;
  477. }
  478. #savetable td:last-child span {
  479. cursor: pointer;
  480. margin: 4px;
  481. padding: 1px 4px;
  482. user-select: none;
  483. background: white;
  484. background: linear-gradient(#ffffff, #f3f3f3);
  485. }
  486. #savetable td:last-child span:active {
  487. background: linear-gradient(#f3f3f3, #ffffff);
  488. }
  489. #modals input[type="button"] {
  490. background-color: white;
  491. border-radius: 0px;
  492. border: 2px solid black;
  493. padding: 4px 8px;
  494. cursor: pointer;
  495. }
  496. #modals input[type="button"]:active {
  497. background-color: #efefef;
  498. }
  499. #modals .specialblue {
  500. background-color: #1e90ff !important;
  501. color: white;
  502. }
  503. #modals input[type="button"].specialblue:active {
  504. background-color: #0e80ef !important;
  505. }
  506. #keybindtable .conflict {
  507. color: red;
  508. }
  509. #keybindmanager h4 {
  510. margin-top: 0px;
  511. }
  512. #screenshotsdiv {
  513. background-color: pink;
  514. height: calc(100% - 40px);
  515. width: calc(100% + 20px);
  516. overflow-y: auto;
  517. overflow-x: hidden;
  518. margin-bottom: 20px;
  519. display: flex;
  520. flex-wrap: wrap;
  521. background-color: #efefef;
  522. box-shadow: inset -20px 0px 0px 0px white;
  523. }
  524. #screenshotmanager h4 {
  525. display: inline-block;
  526. margin: 0px;
  527. margin-right: 10px;
  528. }
  529. #screenshotsdiv .screenshot {
  530. width: 180px;
  531. height: min-content;
  532. padding: 10px;
  533. image-rendering: crisp-edges;
  534. image-rendering: pixelated;
  535. }
  536. #screenshotsdiv .screenshot img {
  537. width: 180px;
  538. display: block;
  539. }
  540. #screenshotsdiv .screenshot input[type="button"] {
  541. width: 180px;
  542. display: block;
  543. margin-top: 5px;
  544. }
  545. dji-cowriter {
  546. display: none !important;
  547. }