index.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. html {
  2. height: calc(100% - 48px);
  3. }
  4. body {
  5. font-family: Whitney,Helvetica Neue,Helvetica,Arial,sans-serif;
  6. text-rendering: optimizeLegibility;
  7. background: #36393f;
  8. color: #dcddde;
  9. position: relative;
  10. min-height: 100%;
  11. margin: 0;
  12. }
  13. a {
  14. text-decoration: none;
  15. color: inherit;
  16. }
  17. a[alt]:hover:after {
  18. content: attr(alt);
  19. position: absolute;
  20. background: #000000;
  21. color: #dcddde;
  22. font-weight: bold;
  23. font-size: 90%;
  24. word-break: break-word;
  25. border-radius: 4px;
  26. padding: 8px;
  27. }
  28. .description a,
  29. a .description,
  30. .notice a {
  31. color: #00b0f4;
  32. }
  33. .description a:hover,
  34. a:hover .description,
  35. .notice a:hover {
  36. text-decoration: underline;
  37. }
  38. code {
  39. background: #2f3136;
  40. padding: 1px 3px;
  41. margin: -2px 0;
  42. border: 1px solid #202225;
  43. border-radius: 3px;
  44. white-space: pre-wrap;
  45. font-size: 120%;
  46. }
  47. #text {
  48. position: relative;
  49. padding: 8px;
  50. width: calc(100% - 328px);
  51. top: 48px;
  52. left: 312px;
  53. }
  54. .user-select {
  55. -webkit-user-select: all;
  56. -moz-user-select: all;
  57. -ms-user-select: all;
  58. user-select: all;
  59. }
  60. .notice {
  61. padding: 5px 10px;
  62. line-height: 1.6;
  63. text-align: center;
  64. margin: 0 auto 1em;
  65. width: fit-content;
  66. border: 2px solid;
  67. }
  68. .notice-success {
  69. background-color: #020;
  70. border-color: #050;
  71. }
  72. .notice-info {
  73. background-color: #220;
  74. border-color: #550;
  75. }
  76. .notice-error {
  77. background-color: #200;
  78. border-color: #500;
  79. }
  80. .server-selector {
  81. display: flex;
  82. flex-wrap: wrap;
  83. }
  84. .server {
  85. background-color: rgba(0,0,0,0.5);
  86. text-align: center;
  87. border-radius: 10%;
  88. width: 200px;
  89. margin: 5px;
  90. }
  91. .server:hover {
  92. background: rgba(0,0,0,0.3);
  93. filter: brightness(1.2);
  94. }
  95. .server .avatar {
  96. border-radius: 10%;
  97. width: 200px;
  98. height: 200px;
  99. }
  100. .server .noicon {
  101. font-size: 416%;
  102. background-color: unset;
  103. }
  104. .server .server-name {
  105. padding: 8px 12px;
  106. word-break: break-word;
  107. font-weight: bold;
  108. font-size: 90%;
  109. }
  110. #navbar {
  111. background: #2f3136;
  112. position: fixed;
  113. top: 0;
  114. left: 72px;
  115. right: 0;
  116. display: flex;
  117. align-items: center;
  118. justify-content: space-between;
  119. height: 48px;
  120. font-size: 16px;
  121. line-height: 20px;
  122. font-weight: bold;
  123. box-shadow: 0 1px 0 rgba(4,4,5,0.2),
  124. 0 1.5px 0 rgba(6,6,7,0.05),
  125. 0 2px 0 rgba(4,4,5,0.05);
  126. }
  127. :target::before {
  128. content: "";
  129. display: block;
  130. height: 48px;
  131. margin: -48px 0 0;
  132. }
  133. #navbar a {
  134. display: flex;
  135. align-items: center;
  136. justify-content: center;
  137. height: 100%;
  138. padding-left: 10px;
  139. }
  140. #navbar a:hover {
  141. background: #202225;
  142. }
  143. #navbar a[alt]:hover:after {
  144. top: 48px;
  145. }
  146. #navbar .avatar {
  147. width: 32px;
  148. height: 32px;
  149. }
  150. #navbar span {
  151. padding: 0 10px;
  152. }
  153. .scrollbar {
  154. -ms-overflow-style: none;
  155. scrollbar-width: none;
  156. }
  157. .scrollbar::-webkit-scrollbar {
  158. display: none;
  159. }
  160. #sidebar {
  161. position: fixed;
  162. display: flex;
  163. top: 0;
  164. left: 0;
  165. bottom: 0;
  166. width: 312px;
  167. overflow: visible scroll;
  168. }
  169. #guildlist {
  170. background: #202225;
  171. position: absolute;
  172. padding: 12px 0;
  173. flex: 1 1 auto;
  174. min-height: calc(100% - 24px);
  175. width: 72px;
  176. }
  177. .guild {
  178. margin: 0 0 8px;
  179. position: relative;
  180. display: flex;
  181. justify-content: center;
  182. }
  183. .avatar {
  184. border-radius: 50%;
  185. width: 48px;
  186. height: 48px;
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. line-height: 1.2em;
  191. white-space: nowrap;
  192. overflow: hidden;
  193. color: #dcddde;
  194. font-weight: bold;
  195. }
  196. #navbar a:hover .avatar,
  197. .guild.selected .avatar,
  198. .guild:hover .avatar {
  199. border-radius: 30%;
  200. color: #ffffff;
  201. }
  202. .noicon {
  203. width: 48px;
  204. height: 48px;
  205. background: #36393f;
  206. }
  207. .guild.selected .noicon,
  208. .guild:hover .noicon {
  209. background-color: #7289da;
  210. }
  211. .svg-avatar {
  212. color: #43b581;
  213. background: #36393f;
  214. }
  215. .guild:hover .svg-avatar {
  216. color: #ffffff;
  217. background-color: #43b581;
  218. }
  219. .separator {
  220. height: 2px;
  221. width: 32px;
  222. border-radius: 1px;
  223. background-color: rgba(255,255,255,0.06);
  224. }
  225. .bar {
  226. position: absolute;
  227. left: 0;
  228. top: 0;
  229. display: block;
  230. width: 8px;
  231. border-radius: 0 4px 4px 0;
  232. margin-left: -4px;
  233. background-color: #ffffff;
  234. }
  235. .guild:hover .bar {
  236. margin-top: 14px;
  237. height: 20px;
  238. }
  239. .guild.selected .bar {
  240. margin-top: 4px;
  241. height: 40px;
  242. }
  243. .guild a[alt]:hover:after {
  244. top: 20%;
  245. left: 72px;
  246. max-width: 224px;
  247. width: max-content;
  248. }
  249. #channellist {
  250. background: #2f3136;
  251. position: fixed;
  252. overflow: hidden scroll;
  253. padding: 16px 0;
  254. width: 240px;
  255. top: 48px;
  256. left: 72px;
  257. bottom: 0;
  258. }
  259. .channel {
  260. padding: 0 8px;
  261. margin: 0 8px 2px 12px;
  262. height: 32px;
  263. border-radius: 4px;
  264. display: flex;
  265. align-items: center;
  266. color: #8e9297;
  267. }
  268. .channel img {
  269. margin-right: 6px;
  270. width: 20px;
  271. height: 20px;
  272. }
  273. .channel div {
  274. font-size: 16px;
  275. line-height: 20px;
  276. text-shadow: 0 0 1px;
  277. white-space: nowrap;
  278. overflow: hidden;
  279. }
  280. .channel:hover {
  281. background: rgba(79,84,92,0.16);
  282. }
  283. .channel.selected {
  284. background: rgba(79,84,92,0.32);
  285. }
  286. .channel:hover div {
  287. color: #dcddde;
  288. }
  289. .channel.selected div {
  290. color: #ffffff;
  291. }
  292. .channel-header {
  293. margin-left: 8px;
  294. height: 44px;
  295. }
  296. .channel-header img {
  297. width: 24px;
  298. height: 24px;
  299. }
  300. .channel-header div {
  301. font-size: 20px;
  302. line-height: 24px;
  303. font-weight: bold;
  304. text-shadow: none;
  305. }
  306. fieldset > div {
  307. margin: 10px 0;
  308. }
  309. fieldset label,
  310. fieldset span {
  311. display: inline-block;
  312. min-width: 20%;
  313. }
  314. fieldset input[type="url"] {
  315. min-width: 30%;
  316. margin-right: 5px;
  317. }
  318. fieldset input:invalid {
  319. background: #FFAAAA;
  320. }
  321. .wb-settings-display:first-of-type {
  322. display: inline-block;
  323. }
  324. .wb-settings-display:not(:first-of-type),
  325. .wb-settings-additional-select,
  326. #wb-settings-wiki-check-notice,
  327. button.addmore:not([hidden]) {
  328. display: block;
  329. margin-left: 20%;
  330. }
  331. .wb-settings-error {
  332. color: red;
  333. }
  334. .wb-settings-error:disabled {
  335. color: darkred;
  336. }
  337. #wb-settings-delete {
  338. float: right;
  339. color: red;
  340. font-weight: bold;
  341. }
  342. #wb-settings-lang-widget {
  343. vertical-align: top;
  344. }
  345. #login-button {
  346. display: flex;
  347. margin: 20px auto;
  348. padding: 20px 50px;
  349. width: fit-content;
  350. justify-content: center;
  351. align-items: center;
  352. font-size: 300%;
  353. background: #2f3136;
  354. border: 5px solid #202225;
  355. border-radius: 30px;
  356. }
  357. #login-button:hover {
  358. background-color:#36393f;
  359. }
  360. #login-button img {
  361. width: 60px;
  362. height: 60px;
  363. padding-right: 10px;
  364. }