style.css 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. .CodeMirror {
  2. height: 100%;
  3. }
  4. .cm-link {
  5. color: #008cff !important;
  6. text-decoration: none !important;
  7. }
  8. .cm-link:hover, .cm-this-prop:hover {
  9. text-decoration: underline !important;
  10. }
  11. .CodeMirror.ctrl-pressed .cm-link:hover,
  12. .CodeMirror.ctrl-pressed .cm-this-prop:hover {
  13. cursor: pointer !important;
  14. }
  15. .CodeMirror .z8-locale {
  16. background-color: #89d4ff21;
  17. font-style: italic;
  18. }
  19. .right.mode-list {
  20. height: fit-content;
  21. }
  22. .right-header {
  23. padding: 8px 10px 0 10px;
  24. color: #d1d1d1;
  25. }
  26. .right-header.class-not-found {
  27. padding-top: 200px;
  28. display: flex;
  29. flex-direction: column;
  30. align-items: center;
  31. }
  32. .right-header.class-not-found > .class-not-found-text {
  33. font-size: 30px;
  34. text-align: center;
  35. margin-top: 30px;
  36. }
  37. .right-header.class-not-found > .class-not-found-image {
  38. background: url(/img/404.svg);
  39. background-size: cover;
  40. width: 256px;
  41. height: 256px;
  42. }
  43. .right-header > .right-header-top {
  44. display: flex;
  45. flex-direction: row;
  46. justify-content: space-between;
  47. padding-bottom: 7px;
  48. }
  49. .right-header > .right-header-top > .class-name {
  50. font-size: 24px;
  51. }
  52. .right-header > .right-header-top > .class-name > .class-icon {
  53. background: url(/img/jsfile.svg);
  54. width: 30px;
  55. height: 30px;
  56. background-size: cover;
  57. margin-right: 5px;
  58. display: inline-block;
  59. }
  60. .right-header > .right-header-top > .display-mode-buttons {
  61. display: flex;
  62. flex-direction: row;
  63. width: 58px;
  64. justify-content: space-between;
  65. }
  66. .right-header > .right-header-top > .display-mode-buttons > .display-mode-button {
  67. width: 24px;
  68. height: 24px;
  69. border: 1px solid #d1d1d1;
  70. border-radius: 5px;
  71. background-size: 18px;
  72. background-repeat: no-repeat;
  73. background-position: center;
  74. cursor: pointer;
  75. }
  76. .right-header > .right-header-top > .display-mode-buttons > .display-mode-button.selected,
  77. .right-header > .right-header-top > .display-mode-buttons > .display-mode-button:hover {
  78. background-color: #ffffff40;
  79. }
  80. .right-header > .right-header-top > .display-mode-buttons > .display-mode-button.mode-tabs {
  81. background-image: url(/img/fa-tabs.svg);
  82. }
  83. .right-header > .right-header-top > .display-mode-buttons > .display-mode-button.mode-list {
  84. background-image: url(/img/fa-bars.svg);
  85. }
  86. .right-header > .tabs {
  87. display: flex;
  88. flex-direction: row;
  89. border-bottom: 1px solid #d1d1d1;
  90. padding: 0 10px;
  91. user-select: none;
  92. }
  93. .right-header > .tabs > .tab {
  94. border: 1px solid #d1d1d1;
  95. border-bottom: 0;
  96. padding: 5px 10px;
  97. cursor: pointer;
  98. position: relative;
  99. }
  100. .right-header > .tabs > .tab > .filler {
  101. position: absolute;
  102. width: 100%;
  103. height: 1px;
  104. left: 0;
  105. background: #443f3b;
  106. bottom: -1px;
  107. }
  108. .right-header > .tabs > .tab:not(.selected):hover {
  109. background-color: #ffffff40;
  110. }
  111. .right-header > .tabs > .tab.selected {
  112. border-bottom: 0;
  113. }
  114. .right > .content {
  115. margin-left: 10px;
  116. border: 1px solid #d1d1d1;
  117. border-top: 0;
  118. width: calc(100% - 22px);
  119. }
  120. .right.mode-list > .content {
  121. border: 0;
  122. }
  123. .right:not(.mode-list) > .content > .content-tab-title {
  124. display: none;
  125. }
  126. .right > .content > .content-tab {
  127. display: none;
  128. position: relative;
  129. color: #d1d1d1;
  130. }
  131. .right.mode-list > .content > .content-tab,
  132. .right > .content > .content-tab.active {
  133. display: block;
  134. }
  135. .right.mode-list > .content > .content-tab {
  136. padding: 10px;
  137. }
  138. .right.mode-list > .content > .content-tab.empty {
  139. display: none !important;
  140. }
  141. .right.mode-list > .content > .content-tab:not(:last-child) {
  142. display: block;
  143. border-bottom: 1px solid #d1d1d1;
  144. }
  145. .right.mode-list > .content {
  146. padding-bottom: 20px;
  147. }
  148. .right.mode-list > .content > .content-tab#editor > .CodeMirror {
  149. border: 1px solid #d1d1d1;
  150. height: 1080px;
  151. }
  152. .right.mode-tabs > .content > .content-tab > .content-tab-title {
  153. display: none;
  154. }
  155. .right > .content > .content-tab#editor {
  156. height: calc(100% - 85px);
  157. }
  158. .right:not(.mode-list) > .content > .content-tab:not(#editor) {
  159. height: calc(100% - 105px);
  160. overflow-y: auto;
  161. padding: 10px;
  162. }
  163. .right.mode-list > .right-header > .tabs {
  164. display: none;
  165. }
  166. .right > .content > .content-tab > .properties-header {
  167. display: flex;
  168. align-items: center;
  169. font-size: 20px;
  170. user-select: none;
  171. cursor: pointer;
  172. margin-bottom: 10px;
  173. }
  174. .right > .content > .content-tab > .properties-header > .properties-header-collapsed-icon {
  175. background: url(/img/chevron.svg);
  176. transform: rotate(90deg);
  177. width: 20px;
  178. height: 20px;
  179. background-size: cover;
  180. margin-right: 5px;
  181. display: inline-block;
  182. transition: transform 0.2s ease-in-out;
  183. }
  184. .right > .content > .content-tab > .properties-header.collapsed > .properties-header-collapsed-icon {
  185. transform: rotate(0deg);
  186. }
  187. .right > .content > .content-tab > .properties-list {
  188. padding-left: 20px;
  189. }
  190. .right > .content > .content-tab > .properties-list > .property-item.highlighted {
  191. transition: background-color 1s ease-in-out;
  192. }
  193. .right > .content > .content-tab > .properties-list > .property-item.highlighted.white {
  194. background-color: #ffffff8a;
  195. }
  196. .right > .content > .content-tab > .properties-list > .property-item {
  197. margin-bottom: 15px;
  198. padding: 10px;
  199. border: 1px solid #d1d1d1;
  200. background-color: #00000020;
  201. border-radius: 8px;
  202. cursor: pointer;
  203. user-select: none;
  204. position: relative;
  205. }
  206. .right > .content > .content-tab > .properties-list > .property-item:hover {
  207. background-color: #00000040;
  208. }
  209. .right > .content > .content-tab > .properties-list > .property-item > div:not(:last-child) {
  210. margin-bottom: 8px;
  211. }
  212. .right > .content > .content-tab > .properties-list > .property-item > .property-item-name > .property-item-name-span,
  213. .right > .content > .content-tab > .properties-list > .property-item > .property-item-type > .property-item-type-span,
  214. .right > .content > .content-tab > .properties-list > .property-item > .property-item-default-value > .property-item-default-value-span {
  215. font-family: monospace;
  216. background-color: #00000090;
  217. padding: 2px 5px;
  218. cursor: default;
  219. }
  220. .right > .content > .content-tab > .properties-list > .property-item > .property-item-default-value > .property-item-default-value-span {
  221. word-wrap: break-word;
  222. }
  223. .right > .content > .content-tab > .properties-list > .property-item > .property-item-nearest-parent > .property-item-nearest-parent-span {
  224. text-decoration: underline;
  225. cursor: pointer;
  226. }
  227. .right > .content > .content-tab > .properties-list > .property-item > .property-item-nearest-parent > .property-item-nearest-parent-span:hover {
  228. background-color: #00000090;
  229. }
  230. .right > .content > .content-tab > .properties-list > .property-item > .property-item-saving-filler {
  231. display: none;
  232. position: absolute;
  233. top: 0;
  234. bottom: 0;
  235. left: 0;
  236. right: 0;
  237. margin: auto !important;
  238. background-color: #ffffff40;
  239. background-image: url(/img/loading.svg);
  240. background-size: 50px;
  241. background-repeat: no-repeat;
  242. background-position: center;
  243. z-index: 2;
  244. }
  245. .right > .content > .content-tab > .properties-list > .property-item.saving > .property-item-saving-filler {
  246. display: block;
  247. }
  248. .right > .content > .content-tab > .properties-list > .property-item > .property-item-comment > .property-item-comment-input,
  249. .right > .content > .content-tab > .properties-list > .property-item > .property-item-comment > .property-item-comment-static {
  250. width: 100%;
  251. padding: 10px;
  252. min-height: 100px;
  253. border: 1px solid #d1d1d1;
  254. background-color: #0000;
  255. resize: none;
  256. color: #d1d1d1;
  257. font-style: italic;
  258. border-radius: 4px;
  259. outline: none;
  260. font-family: 'Play';
  261. font-size: 16px;
  262. }
  263. .right > .content > .content-tab > .properties-list > .property-item > .property-item-comment > .property-item-comment-input {
  264. min-height: 122px;
  265. }
  266. .right > .content > .content-tab > .properties-list > .property-item > .property-item-comment > .property-item-comment-static {
  267. width: auto;
  268. max-height: 400px;
  269. overflow: auto;
  270. }
  271. .right > .content > .content-tab > .properties-list > .property-item > .property-item-comment > .property-item-comment-static:after {
  272. content: '\2060';
  273. }
  274. .right > .content > .content-tab > .properties-list > .property-item > .property-item-comment > .property-item-comment-static.empty {
  275. color: #999;
  276. }
  277. .right > .content > .content-tab > .properties-list > .property-item > .property-item-comment > .property-item-comment-date {
  278. margin-top: 15px;
  279. height: 25px;
  280. }
  281. .right > .content > .content-tab > .properties-list > .property-item > .property-item-comment > .property-item-comment-button {
  282. width: 50px;
  283. text-align: center;
  284. border: 1px solid #d1d1d1;
  285. position: absolute;
  286. bottom: 18px;
  287. right: 18px;
  288. border-radius: 5px;
  289. padding: 3px 0;
  290. cursor: pointer;
  291. }
  292. .right > .content > .content-tab > .properties-list > .property-item > .property-item-comment > .property-item-comment-button:hover {
  293. background-color: #ffffff40;
  294. }
  295. /* Full Source Prompt >>> */
  296. .right > .content > .content-tab#editor > .full-source-prompt {
  297. position: absolute;
  298. opacity: 0.2;
  299. top: 20px;
  300. right: 20px;
  301. width: 250px;
  302. display: flex;
  303. flex-direction: column;
  304. align-items: flex-end;
  305. border: 1px solid #d1d1d1;
  306. padding: 10px;
  307. background: #1a1a1a;
  308. user-select: none;
  309. }
  310. .right.mode-list > .content > .content-tab#editor > .full-source-prompt {
  311. top: 80px;
  312. right: 25px;
  313. }
  314. .right > .content > .content-tab#editor > .full-source-prompt:hover {
  315. opacity: 0.95;
  316. }
  317. .right > .content > .content-tab#editor > .full-source-prompt > .full-source-prompt-text {
  318. color: #d1d1d1;
  319. }
  320. .right > .content > .content-tab#editor > .full-source-prompt > .full-source-prompt-button {
  321. padding: 5px 10px;
  322. border: 1px solid #d1d1d1;
  323. cursor: pointer;
  324. color: #d1d1d1;
  325. width: fit-content;
  326. border-radius: 5px;
  327. }
  328. .right > .content > .content-tab#editor > .full-source-prompt > .full-source-prompt-button:hover {
  329. background-color: #ffffff40;
  330. }
  331. /* <<< Full Source Prompt */
  332. /* Class items with indentation >>> */
  333. .right > .content > .content-tab .class-item.indent > .class-icon {
  334. position: relative;
  335. }
  336. .right > .content > .content-tab .class-item.indent:not(:first-child) > .class-icon:before {
  337. content: '↳';
  338. position: absolute;
  339. color: #d1d1d1;
  340. left: -10px;
  341. }
  342. .right > .content > .content-tab .class-item.indent > .spacing {
  343. display: inline-block;
  344. }
  345. /* <<< Class items with indentation */