style.css 10 KB

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