style.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. @font-face {
  2. font-family:IBMPlexSans;
  3. src:url(/static/font.woff2) format('woff2');
  4. }
  5. @font-face {
  6. font-family:redesignFont;
  7. src:url(/static/icons.woff) format('woff');
  8. }
  9. * {
  10. border-radius: 2px;
  11. font-family: IBMPlexSans;
  12. }
  13. html {
  14. height:100vh;
  15. }
  16. body {
  17. position:absolute;
  18. top: 0;
  19. bottom: 0;
  20. left: 0;
  21. right: 0;
  22. color:#CCCCCC;
  23. background-color:#000;
  24. display: flex;
  25. flex-direction: column;
  26. flex-wrap: nowrap;
  27. margin:0;
  28. }
  29. details {
  30. position:relative;
  31. background-color:#1a1a1b;
  32. z-index:1;
  33. bottom:0;
  34. }
  35. details > a {
  36. position: absolute;
  37. border-radius:0px !important;
  38. margin:0px !important;
  39. padding:0px !important;
  40. }
  41. pre code {
  42. display:inline-block;
  43. overflow:auto;
  44. max-width:100%;
  45. }
  46. code {
  47. background-color:white;
  48. color:black;
  49. text-align:left;
  50. }
  51. .header {
  52. padding:5px;
  53. display:flex;
  54. flex-direction: column;
  55. align-items: center;
  56. background-color:#1a1a1b;
  57. border-radius:0px;
  58. border-bottom: 1px solid #343536;
  59. }
  60. a {
  61. color:#D7DADC;
  62. font-weight: bold;
  63. outline:none;
  64. text-decoration:none;
  65. word-break:break-word;
  66. }
  67. .sub-header b {
  68. color:#7154AA;
  69. font-weight: bold;
  70. }
  71. .sub-header b:hover {
  72. color:#ffb734;
  73. }
  74. .title {
  75. display: inline-block;
  76. font-size: 28px;
  77. margin-right:10px;
  78. font-weight: bold;
  79. vertical-align:middle;
  80. color:#D7DADC;
  81. word-break:unset;
  82. }
  83. .button {
  84. max-width:300px;
  85. border:none;
  86. color:white;
  87. padding:5px;
  88. font-weight: bold;
  89. background-color:#1a1a1b;
  90. }
  91. .button:hover {
  92. background-color: #272729;
  93. }
  94. i {
  95. font-style:normal;
  96. margin-left:2.5px;
  97. border-radius:10px;
  98. padding:2px;
  99. }
  100. small {
  101. padding-left:2.5px;
  102. }
  103. form {
  104. color:#ACA4F6;
  105. display:flex;
  106. }
  107. textarea {
  108. color:#ACA4F6;
  109. height:100px;
  110. border: none;
  111. background: #0C0C0C;
  112. }
  113. hr {
  114. border:0px;
  115. }
  116. .footer hr{
  117. margin:0;
  118. }
  119. .footer {
  120. bottom:0;
  121. width:100%;
  122. text-align:center;
  123. color:#ACA4F6;
  124. flex-shrink: 0;
  125. background-color:#000;
  126. }
  127. .flair {
  128. background-color:#343536;
  129. color:#FFFFFF;
  130. font-size:12px;
  131. white-space: nowrap;
  132. display:inline-block;
  133. height: 16px;
  134. padding: 2px
  135. }
  136. .flair-emoji {
  137. display: inline-block;
  138. width: 16px;
  139. height:16px;
  140. background-size: contain;
  141. }
  142. .order {
  143. color:#ACA4F6;
  144. }
  145. .container {
  146. max-width: 60em;
  147. display: flex;
  148. align-items: center;
  149. margin: auto;
  150. }
  151. .content {
  152. flex-grow: 1;
  153. overflow: auto;
  154. background-size: contain;
  155. background-repeat: no-repeat;
  156. background-position: right;
  157. padding:20px 24px;
  158. word-break: break-word;
  159. }
  160. .comments {
  161. text-align:left;
  162. }
  163. .md p {
  164. font-size:14px;
  165. }
  166. .votes {
  167. font-size:12px;
  168. display:block;
  169. position: absolute;
  170. top:0;
  171. left:0;
  172. width:40px;
  173. text-align:center;
  174. }
  175. .votes span {
  176. display:block;
  177. }
  178. .main-icon {
  179. width:38px;
  180. height:38px;
  181. margin-right:10px;
  182. }
  183. .main-icon img {
  184. max-width:100%;
  185. max-height:100%;
  186. }
  187. .icon {
  188. display:inline-block;
  189. width:16px;
  190. height:16px;
  191. background-size:contain;
  192. padding:2px;
  193. margin:auto;
  194. }
  195. .icon-downvote {
  196. background-image: url(/static/downvote-icon.png);
  197. }
  198. .icon-upvote {
  199. background-image: url(/static/upvote-icon.png);
  200. }
  201. .post hr {
  202. border:1px solid #555;
  203. }
  204. .post {
  205. max-width:100%;
  206. background-color:#151516;
  207. padding-left:40px;
  208. margin-bottom:10px;
  209. border:1px solid #343536;
  210. position:relative;
  211. }
  212. .reply {
  213. border-left:1px solid white;
  214. border-radius:0px;
  215. padding:5px;
  216. background-color:#282828;
  217. margin-bottom:10px;
  218. max-width:100%;
  219. background-color:#151516;
  220. margin-bottom:10px;
  221. position:relative;
  222. padding-left:10px;
  223. }
  224. .comment {
  225. background-color:#282828;
  226. margin-bottom:10px;
  227. max-width:100%;
  228. background-color:#151516;
  229. margin-bottom:10px;
  230. border:1px solid #343536;
  231. position:relative;
  232. padding-left:10px;
  233. padding-top: 5px;
  234. }
  235. .comment hr {
  236. border:1px solid white;
  237. }
  238. .comment-content a, .reply a, .post-content a {
  239. color:#0079D3;
  240. text-decoration:underline;
  241. }
  242. .post .post {
  243. margin-top:5px;
  244. }
  245. .post-content > :first-child {
  246. margin:1px;
  247. }
  248. .post:hover {
  249. border:1px solid #818384;
  250. }
  251. .post-info, .post-info a {
  252. color:#818384;
  253. font-size:12px;
  254. }
  255. .post-info .sub-link {
  256. color:#d7dadc;
  257. font-weight: 700;
  258. }
  259. .comment-info {
  260. color:#818384;
  261. font-size:12px;
  262. }
  263. .comment-info a {
  264. color:#D7DADC;
  265. font-size:12px;
  266. text-decoration:none;
  267. }
  268. .post-link {
  269. display:block;
  270. color:#0079D3;
  271. font-size:12px;
  272. font-weight:400;
  273. white-space: nowrap;
  274. overflow: hidden;
  275. text-overflow: ellipsis;
  276. }
  277. .sub-link {
  278. font-size:14px;
  279. }
  280. .sub-link:hover, .post-info a:hover {
  281. text-decoration:underline;
  282. }
  283. .inner-post {
  284. background-color:#1a1a1b;
  285. padding:5px;
  286. }
  287. .post-content * {
  288. text-align: left;
  289. margin: 5px 0px;
  290. }
  291. .post-content {
  292. margin:auto;
  293. overflow:auto;
  294. }
  295. .media {
  296. justify-content:center;
  297. text-align:center;
  298. }
  299. .slide-gfx .media img {
  300. max-height: 50vh;
  301. }
  302. .media img, .media video {
  303. max-height: 80vh;
  304. max-width: 100%;
  305. display:block;
  306. margin:auto;
  307. }
  308. .poll {
  309. margin:auto;
  310. text-align:left;
  311. border:1px solid;
  312. margin-bottom:10px;
  313. padding:5px;
  314. border-radius:4px;
  315. }
  316. .poll input {
  317. display:inline;
  318. }
  319. table, th, td {
  320. border: 1px solid #ACA4F6;
  321. text-align:center;
  322. border-collapse: collapse;
  323. margin-left: auto;
  324. margin-right: auto;
  325. margin-top:5px;
  326. margin-bottom:10px;
  327. }
  328. .comments ul > li, .reply ul > li {
  329. list-style-type: none;
  330. margin:5px;
  331. padding:0;
  332. }
  333. li li {
  334. list-style-type:lower-alpha;
  335. }
  336. ul {
  337. list-style-type: none;
  338. margin:0;
  339. padding:0;
  340. margin-left: 5px;
  341. }
  342. blockquote {
  343. border-left: 3px solid #333;
  344. margin-left: 0px;
  345. padding-left: 15px;
  346. }
  347. .comments table, th, td {
  348. margin-left: 5px;
  349. margin-right: 5px;
  350. text-align:left;
  351. }
  352. .link {
  353. margin-right:5px;
  354. }
  355. p, h1, h2, h3 {
  356. margin:0;
  357. padding:0;
  358. }
  359. .nsfw, .hidden {
  360. display:none;
  361. }
  362. .nsfw + .media img {
  363. -webkit-filter: blur(8px);
  364. filter: blur(8px);
  365. }
  366. .nsfw:checked + .media img {
  367. -webkit-filter: none;
  368. filter: none;
  369. }
  370. .menu {
  371. position:relative;
  372. background-color:#1a1a1b;
  373. padding:0px 12px;
  374. height:56px;
  375. margin-bottom:10px;
  376. border:1px solid #343536;
  377. align-items:center;
  378. display:flex;
  379. }
  380. .nav {
  381. display:flex;
  382. max-width:max-content;
  383. }
  384. .nav .button {
  385. margin-right:5px;
  386. }
  387. .menu, .nav {
  388. margin:auto;
  389. margin-bottom:10px;
  390. overflow:auto;
  391. }
  392. .menu a, .nav a , .button {
  393. font-size:12px;
  394. padding:8px;
  395. white-space: nowrap;
  396. }
  397. .menu a:hover, .menu .focus, .button:hover {
  398. background-color:#272729;
  399. }
  400. .hidden + .button {
  401. display:none;
  402. }
  403. .hidden + .button + div br {
  404. display:none;
  405. }
  406. .flex {
  407. display:flex;
  408. align-items: center;
  409. padding: 8px;
  410. height:56px;
  411. }
  412. #search-bar {
  413. background-color: #272729;
  414. border-radius: 4px;
  415. border: 1px solid #343536;
  416. color: #D7DADC;
  417. height: 36px;
  418. outline: none;
  419. padding: 0 5px 0 10px;
  420. width: auto;
  421. margin:0 auto;
  422. max-width: 690px;
  423. flex-grow:1;
  424. }
  425. #search-bar ~ input {
  426. background-color: #272729;
  427. border-radius: 4px;
  428. border: 1px solid #343536;
  429. color: #D7DADC;
  430. height: 40px;
  431. width: 40px;
  432. background-image:url(/static/search.png);
  433. outline: none;
  434. margin:0 5px;
  435. flex-grow:1;
  436. background-size:contain;
  437. }
  438. @media only screen and (max-width: 768px) {
  439. .content {
  440. padding:10px 5px;
  441. width: 95vw;
  442. }
  443. .hidden + .button {
  444. display:inline-block;
  445. }
  446. .hidden + .button + div {
  447. display:none;
  448. position: absolute;
  449. z-index: 1;
  450. align-items: center;
  451. flex-direction: column;
  452. background-color: #1a1a1b;
  453. border: 1px solid #343536;
  454. top:40px;
  455. }
  456. .hidden:checked + .button + div {
  457. display:flex;
  458. }
  459. .hidden:checked + .button + div a {
  460. display:block;
  461. }
  462. .hidden + .button + div br {
  463. display:block;
  464. }
  465. }