style.css 10 KB

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