style.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. @font-face {
  2. font-family: "Play";
  3. src: url("/fonts/Play/Play-Regular.ttf") format("truetype");
  4. font-weight: 400;
  5. }
  6. @font-face {
  7. font-family: "Play";
  8. src: url("/fonts/Play/Play-Bold.ttf") format("truetype");
  9. font-weight: 700;
  10. }
  11. body {
  12. margin: 0;
  13. padding: 0;
  14. background-color: #443f3b;
  15. font-family: 'Play', monospace, sans-serif;
  16. font-weight: 400;
  17. -webkit-font-smoothing: antialiased;
  18. -moz-osx-font-smoothing: grayscale;
  19. }
  20. .left {
  21. display: flex;
  22. flex-direction: column;
  23. align-items: center;
  24. }
  25. .left > .left-header {
  26. display: flex;
  27. flex-direction: column;
  28. align-items: center;
  29. }
  30. .left > .left-header > .search-module {
  31. width: 100%;
  32. }
  33. .sources-updating {
  34. display: flex;
  35. flex-direction: column;
  36. height: 100%;
  37. justify-content: center;
  38. align-items: center;
  39. }
  40. .sources-updating > .message-container {
  41. display: flex;
  42. flex-direction: column;
  43. align-items: center;
  44. width: 400px;
  45. border: 2px dashed #d1d1d1;
  46. padding: 10px;
  47. }
  48. .main-title {
  49. display: flex;
  50. align-items: center;
  51. justify-content: space-around;
  52. color: #f36;
  53. font-size: 40px;
  54. user-select: none;
  55. cursor: pointer;
  56. width: 340px;
  57. }
  58. .sources-updating > .message-container > .message {
  59. color: #d1d1d1;
  60. font-size: 24px;
  61. }
  62. .main-title > .logo {
  63. background: url(/favicon.png);
  64. background-size: cover;
  65. width: 50px;
  66. height: 50px;
  67. }
  68. /* >>> 404 page */
  69. body.page-not-found {
  70. display: flex;
  71. justify-content: center;
  72. }
  73. body.page-not-found > .message-container {
  74. display: flex;
  75. flex-direction: column;
  76. align-items: center;
  77. justify-content: center;
  78. color: #d1d1d1;
  79. }
  80. body.page-not-found > .message-container > .page-not-found-text {
  81. font-size: 30px;
  82. text-align: center;
  83. margin-top: 30px;
  84. }
  85. body.page-not-found > .message-container > .page-not-found-image {
  86. margin-top: 20px;
  87. background: url(/img/404.svg);
  88. background-size: cover;
  89. width: 256px;
  90. height: 256px;
  91. }
  92. /* <<< 404 page */
  93. .main {
  94. display: flex;
  95. flex-direction: row;
  96. height: 100%;
  97. }
  98. .right {
  99. width: 80%;
  100. min-width: 800px;
  101. height: 100vh;
  102. min-height: 1000px;
  103. }
  104. .left {
  105. min-width: 350px;
  106. width: 20%;
  107. }
  108. .left > .left-header > .left-header-toolbar {
  109. display: flex;
  110. align-items: center;
  111. padding-bottom: 10px;
  112. width: 100%;
  113. justify-content: center;
  114. }
  115. .left > .left-header > .left-header-toolbar > .class-list-mode-text {
  116. color: #d1d1d1;
  117. margin-right: 15px;
  118. }
  119. .left > .left-header > .left-header-toolbar > .class-list-mode-button,
  120. .left > .left-header > .left-header-toolbar > .faq-button,
  121. .left > .left-header > .left-header-toolbar > .refresh-button {
  122. width: 24px;
  123. height: 24px;
  124. border: 1px solid #d1d1d1;
  125. border-radius: 5px;
  126. background-size: 18px;
  127. background-repeat: no-repeat;
  128. background-position: center;
  129. cursor: pointer;
  130. }
  131. .left > .left-header > .left-header-toolbar > .class-list-mode-button.selected,
  132. .left > .left-header > .left-header-toolbar > .class-list-mode-button:hover,
  133. .left > .left-header > .left-header-toolbar > .faq-button:hover,
  134. .left > .left-header > .left-header-toolbar > .refresh-button:hover {
  135. background-color: #ffffff40;
  136. }
  137. .left > .left-header > .left-header-toolbar > .class-list-mode-button.structurized {
  138. background-image: url(/img/file-structure.svg);
  139. margin-right: 5px;
  140. }
  141. .left > .left-header > .left-header-toolbar > .class-list-mode-button.unstructurized {
  142. background-image: url(/img/fa-bars.svg);
  143. }
  144. .left > .left-header > .left-header-toolbar > .faq-button {
  145. background-image: url(/img/faq.svg);
  146. margin-left: 10px;
  147. }
  148. .left > .left-header > .left-header-toolbar > .refresh-button {
  149. background-image: url(/img/refresh.svg);
  150. margin-left: 10px;
  151. }
  152. .left > .left-header > .left-header-toolbar > .auth-button {
  153. width: 24px;
  154. height: 24px;
  155. background-size: cover;
  156. margin-right: 40px;
  157. cursor: pointer;
  158. }
  159. .left > .left-header > .left-header-toolbar > .auth-button.login-button {
  160. background-image: url(/img/user.svg);
  161. }
  162. .left > .left-header > .left-header-toolbar > .auth-button.logout-button {
  163. background-image: url(/img/logout.svg);
  164. }
  165. /* Class/Dir items >>> */
  166. .class-item, .dir-item>.dir-name {
  167. align-items: center;
  168. cursor: pointer;
  169. padding: 3px 0;
  170. min-width: 100%;
  171. white-space: nowrap;
  172. }
  173. .class-item.selected,
  174. .class-item:hover,
  175. .dir-item>.dir-name:hover {
  176. background-color: rgba(0, 0, 0, 0.2);
  177. }
  178. .class-item > .class-icon {
  179. background: url(/img/jsfile.svg);
  180. width: 16px;
  181. height: 16px;
  182. background-size: cover;
  183. margin-right: 5px;
  184. display: inline-block;
  185. }
  186. .class-item > .class-name {
  187. display: inline-block;
  188. color: #d1d1d1;
  189. }
  190. .dir-item {
  191. color: #d1d1d1;
  192. }
  193. .dir-item > .dir-name > .dir-collapsed-icon {
  194. background: url(/img/chevron.svg);
  195. transform: rotate(90deg);
  196. width: 16px;
  197. height: 16px;
  198. background-size: cover;
  199. margin-right: 5px;
  200. display: inline-block;
  201. transition: transform 0.2s ease-in-out;
  202. }
  203. .dir-item.collapsed > .dir-name > .dir-collapsed-icon {
  204. transform: rotate(0deg);
  205. }
  206. .dir-item > .dir-name > .dir-icon {
  207. background: url(/img/folder.svg);
  208. width: 16px;
  209. height: 16px;
  210. background-size: cover;
  211. margin-right: 5px;
  212. display: inline-block;
  213. }
  214. .dir-item > .dir-content {
  215. padding-left: 8px;
  216. overflow: hidden;
  217. border-left: 1px solid #d1d1d1;
  218. margin-left: 8px;
  219. }
  220. .dir-item.collapsed > .dir-content {
  221. height: 0 !important;
  222. }
  223. a, a:visited {
  224. color: #d1d1d1;
  225. }
  226. /* <<< Class/Dir items */
  227. .context-menu {
  228. position: absolute;
  229. display: flex;
  230. flex-direction: column;
  231. z-index: 10000;
  232. color: #d1d1d1;
  233. width: fit-content;
  234. background-color: #312d2a;
  235. border: 1px solid #d1d1d1;
  236. box-shadow: 3px 3px 3px #0004;
  237. }
  238. .context-menu > .context-menu-item {
  239. padding: 5px 10px;
  240. user-select: none;
  241. cursor: pointer;
  242. }
  243. .context-menu > .context-menu-item {
  244. margin: 3px 0;
  245. }
  246. .context-menu > .context-menu-item:hover {
  247. background-color: #ffffff40;
  248. }
  249. .context-menu > .context-menu-delimiter {
  250. border-bottom: 1px solid #d1d1d1;
  251. width: 100%;
  252. }
  253. .context-menu-overlay {
  254. position: absolute;
  255. top: 0;
  256. left: 0;
  257. right: 0;
  258. bottom: 0;
  259. margin: auto;
  260. z-index: 9999;
  261. }
  262. .hidden {
  263. display: none !important;
  264. visibility: hidden !important;
  265. opacity: 0 !important;
  266. }
  267. ::-webkit-scrollbar {
  268. width: 8px;
  269. height: 8px;
  270. }
  271. ::-webkit-scrollbar-track {
  272. background: #00000015;
  273. }
  274. ::-webkit-scrollbar-thumb {
  275. background: #888;
  276. border-radius: 5px;
  277. }
  278. ::-webkit-scrollbar-thumb:hover {
  279. background: #555;
  280. }
  281. ::-webkit-scrollbar-corner {
  282. background: #00000015;
  283. }