style.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. font-size: 24px;
  60. }
  61. .main-title > .logo {
  62. background: url(/favicon.png);
  63. background-size: cover;
  64. width: 50px;
  65. height: 50px;
  66. }
  67. .sources-updating .main-title > .logo {
  68. background: url(/img/loading_pink.svg);
  69. }
  70. /* >>> 404 page */
  71. body.page-not-found {
  72. display: flex;
  73. justify-content: center;
  74. }
  75. body.page-not-found > .message-container {
  76. display: flex;
  77. flex-direction: column;
  78. align-items: center;
  79. justify-content: center;
  80. }
  81. body.page-not-found > .message-container > .page-not-found-text {
  82. font-size: 30px;
  83. text-align: center;
  84. margin-top: 30px;
  85. }
  86. body.page-not-found > .message-container > .page-not-found-image {
  87. margin-top: 20px;
  88. background: url(/img/404.svg);
  89. background-size: cover;
  90. width: 256px;
  91. height: 256px;
  92. }
  93. /* <<< 404 page */
  94. .main {
  95. display: flex;
  96. flex-direction: row;
  97. height: 100%;
  98. color: #d1d1d1;
  99. }
  100. .right {
  101. width: 100%;
  102. min-width: 800px;
  103. height: 100vh;
  104. min-height: 1000px;
  105. }
  106. .left {
  107. min-width: 350px;
  108. width: 20%;
  109. }
  110. .left > .left-header > .left-header-toolbar {
  111. display: flex;
  112. align-items: center;
  113. padding-bottom: 10px;
  114. width: 100%;
  115. justify-content: center;
  116. }
  117. .left > .left-header > .left-header-toolbar > .class-list-mode-text {
  118. margin-right: 15px;
  119. }
  120. .left > .left-header > .left-header-toolbar > .button {
  121. width: 24px;
  122. height: 24px;
  123. border: 1px solid #d1d1d1;
  124. border-radius: 5px;
  125. background-size: 18px;
  126. background-repeat: no-repeat;
  127. background-position: center;
  128. cursor: pointer;
  129. }
  130. .left > .left-header > .left-header-toolbar > .button:hover,
  131. .left > .left-header > .left-header-toolbar > .button.selected {
  132. background-color: #ffffff40;
  133. }
  134. .left > .left-header > .left-header-toolbar > .class-list-mode-button.structurized {
  135. background-image: url(/img/file-structure.svg);
  136. margin-right: 5px;
  137. }
  138. .left > .left-header > .left-header-toolbar > .class-list-mode-button.unstructurized {
  139. background-image: url(/img/fa-bars.svg);
  140. }
  141. .left > .left-header > .left-header-toolbar > .faq-button {
  142. background-image: url(/img/faq.svg);
  143. margin-left: 10px;
  144. }
  145. .left > .left-header > .left-header-toolbar > .refresh-button {
  146. background-image: url(/img/refresh.svg);
  147. margin-left: 10px;
  148. }
  149. .left > .left-header > .left-header-toolbar > .statistics-button {
  150. background-image: url(/img/statistics.svg);
  151. margin-left: 5px;
  152. }
  153. .left > .left-header > .left-header-toolbar > .auth-button {
  154. width: 24px;
  155. height: 24px;
  156. background-size: cover;
  157. margin-right: 20px;
  158. cursor: pointer;
  159. border: 0;
  160. }
  161. .left > .left-header > .left-header-toolbar > .auth-button:hover {
  162. background-color: transparent;
  163. }
  164. .left > .left-header > .left-header-toolbar > .auth-button.login-button {
  165. background-image: url(/img/user.svg);
  166. }
  167. .left > .left-header > .left-header-toolbar > .auth-button.logout-button {
  168. background-image: url(/img/logout.svg);
  169. }
  170. /* Class/Dir items >>> */
  171. .dir-item {
  172. min-width: 100%;
  173. }
  174. .class-item, .dir-item>.dir-name {
  175. align-items: center;
  176. cursor: pointer;
  177. padding: 3px 0;
  178. min-width: 100%;
  179. white-space: nowrap;
  180. }
  181. .class-item.selected,
  182. .class-item:hover,
  183. .dir-item>.dir-name:hover,
  184. .dir-item.selected>.dir-name {
  185. background-color: rgba(0, 0, 0, 0.2);
  186. }
  187. .class-item > .class-icon {
  188. background: url(/img/jsfile.svg);
  189. width: 16px;
  190. height: 16px;
  191. background-size: cover;
  192. margin-right: 5px;
  193. display: inline-block;
  194. }
  195. .class-item > .class-name {
  196. display: inline-block;
  197. }
  198. .dir-item > .dir-name > .dir-collapsed-icon {
  199. background: url(/img/chevron.svg);
  200. transform: rotate(90deg);
  201. width: 16px;
  202. height: 16px;
  203. background-size: cover;
  204. margin-right: 5px;
  205. display: inline-block;
  206. transition: transform 0.2s ease-in-out;
  207. }
  208. .dir-item.collapsed > .dir-name > .dir-collapsed-icon {
  209. transform: rotate(0deg);
  210. }
  211. .dir-item > .dir-name > .dir-icon {
  212. background: url(/img/folder.svg);
  213. width: 16px;
  214. height: 16px;
  215. background-size: cover;
  216. margin-right: 5px;
  217. display: inline-block;
  218. }
  219. .dir-item > .dir-content {
  220. padding-left: 8px;
  221. overflow: hidden;
  222. border-left: 1px solid #d1d1d1;
  223. margin-left: 8px;
  224. }
  225. .dir-item.collapsed > .dir-content {
  226. height: 0 !important;
  227. display: none;
  228. }
  229. a, a:visited {
  230. color: #d1d1d1;
  231. }
  232. /* <<< Class/Dir items */
  233. .hidden {
  234. display: none !important;
  235. visibility: hidden !important;
  236. opacity: 0 !important;
  237. }
  238. ::-webkit-scrollbar {
  239. width: 8px;
  240. height: 8px;
  241. }
  242. ::-webkit-scrollbar-track {
  243. background: #00000015;
  244. }
  245. ::-webkit-scrollbar-thumb {
  246. background: #888;
  247. border-radius: 5px;
  248. }
  249. ::-webkit-scrollbar-thumb:hover {
  250. background: #555;
  251. }
  252. ::-webkit-scrollbar-corner {
  253. background: #00000015;
  254. }