site.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. /* A frontend file! Wow.
  2. * This file is just loaded statically 8y <link>s in the HTML files, so there's
  3. * no need to re-run upd8.js when tweaking values here. Handy!
  4. */
  5. /* Pages can specify their own theme colors (used for links, and may8e other
  6. * things) by changing this CSS varia8le through their 8ody's style attri8ute.
  7. * And yes, CSS varia8les are supported in 8asically every major 8rowser.
  8. * No, I don't care a8out Internet Explorer.
  9. */
  10. :root {
  11. --fg-color: #0088ff;
  12. --bg-color: #222222;
  13. --theme: 0; /* 0: dark (below light), 1: light (below dark) */
  14. }
  15. body {
  16. --bg-shade: calc(255 * var(--theme));
  17. --fg-shade: calc(255 * (1 - var(--theme)));
  18. background: black;
  19. margin: 10px;
  20. overflow-y: scroll;
  21. }
  22. body::before {
  23. content: "";
  24. position: fixed;
  25. top: 0;
  26. left: 0;
  27. width: 100%;
  28. height: 100%;
  29. z-index: -1;
  30. background-image: url("bg.jpg");
  31. background-position: center;
  32. background-size: cover;
  33. opacity: 0.5;
  34. }
  35. #page-container {
  36. background-color: var(--bg-color);
  37. color: rgb(var(--fg-shade), var(--fg-shade), var(--fg-shade));
  38. max-width: 1100px;
  39. margin: 10px auto 50px;
  40. padding: 15px;
  41. box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  42. }
  43. a {
  44. color: var(--fg-color);
  45. text-decoration: none;
  46. }
  47. a:hover {
  48. text-decoration: underline;
  49. }
  50. #skippers {
  51. position: absolute;
  52. left: -100px;
  53. top: auto;
  54. width: 1px;
  55. height: 1px;
  56. }
  57. #skippers:focus-within {
  58. position: static;
  59. width: unset;
  60. height: unset;
  61. }
  62. #skippers > .skipper:not(:last-child)::after {
  63. content: " \00b7 ";
  64. font-weight: 800;
  65. }
  66. .layout-columns {
  67. display: flex;
  68. }
  69. #header, #skippers {
  70. margin-bottom: 10px;
  71. padding: 5px;
  72. font-size: 0.85em;
  73. }
  74. #header {
  75. display: flex;
  76. }
  77. #header > h2 {
  78. font-size: 1em;
  79. margin: 0 20px 0 0;
  80. font-weight: normal;
  81. }
  82. #header > h2 a.current,
  83. #header > h2.highlight-last-link > a:last-of-type {
  84. font-weight: 800;
  85. }
  86. #header > h2.dot-between-spans > span:not(:last-child)::after {
  87. content: " \00b7 ";
  88. font-weight: 800;
  89. }
  90. #header > h2 > span {
  91. white-space: nowrap;
  92. }
  93. #header > div {
  94. flex-grow: 1;
  95. }
  96. #header > div > *:not(:last-child)::after {
  97. content: " \00b7 ";
  98. font-weight: 800;
  99. }
  100. #header .chronology {
  101. display: inline-block;
  102. }
  103. #header .chronology .heading,
  104. #header .chronology .buttons {
  105. display: inline-block;
  106. }
  107. .nowrap {
  108. white-space: nowrap;
  109. }
  110. .icons {
  111. font-style: normal;
  112. white-space: nowrap;
  113. }
  114. .icon {
  115. display: inline-block;
  116. width: 24px;
  117. height: 1em;
  118. position: relative;
  119. }
  120. .icon > svg {
  121. width: 24px;
  122. height: 24px;
  123. top: -0.25em;
  124. position: absolute;
  125. fill: var(--fg-color);
  126. }
  127. .rerelease {
  128. opacity: 0.7;
  129. font-style: oblique;
  130. }
  131. .content-columns {
  132. columns: 2;
  133. }
  134. .content-columns .column {
  135. break-inside: avoid;
  136. }
  137. .content-columns .column h2 {
  138. margin-top: 0;
  139. font-size: 1em;
  140. }
  141. .sidebar, #content, #header, #skippers {
  142. background-color: rgba(var(--bg-shade), var(--bg-shade), var(--bg-shade), 0.6);
  143. border: 1px dotted var(--fg-color);
  144. border-radius: 3px;
  145. }
  146. .sidebar-column {
  147. flex: 1 1 20%;
  148. min-width: 150px;
  149. max-width: 250px;
  150. flex-basis: 250px;
  151. height: 100%;
  152. }
  153. .sidebar-multiple {
  154. display: flex;
  155. flex-direction: column;
  156. }
  157. .sidebar-multiple .sidebar:not(:first-child) {
  158. margin-top: 10px;
  159. }
  160. .sidebar {
  161. padding: 5px;
  162. font-size: 0.85em;
  163. }
  164. #sidebar-left {
  165. margin-right: 10px;
  166. }
  167. #sidebar-right {
  168. margin-left: 10px;
  169. }
  170. .sidebar.wide {
  171. max-width: 350px;
  172. flex-basis: 300px;
  173. flex-shrink: 0;
  174. flex-grow: 1;
  175. }
  176. #content {
  177. padding: 20px;
  178. flex-grow: 1;
  179. flex-shrink: 3;
  180. }
  181. .sidebar > h1,
  182. .sidebar > h2,
  183. .sidebar > h3,
  184. .sidebar > p {
  185. text-align: center;
  186. }
  187. .sidebar h1 {
  188. font-size: 1.25em;
  189. }
  190. .sidebar h2 {
  191. font-size: 1.1em;
  192. margin: 0;
  193. }
  194. .sidebar h3 {
  195. font-size: 1.1em;
  196. font-style: oblique;
  197. font-variant: small-caps;
  198. margin-top: 0.3em;
  199. margin-bottom: 0em;
  200. }
  201. .sidebar > p {
  202. margin: 0.5em 0;
  203. padding: 0 5px;
  204. }
  205. .sidebar hr {
  206. color: #555;
  207. margin: 10px 5px;
  208. }
  209. .sidebar > ol, .sidebar > ul {
  210. padding-left: 30px;
  211. padding-right: 15px;
  212. }
  213. .sidebar > dl {
  214. padding-right: 15px;
  215. padding-left: 0;
  216. }
  217. .sidebar > dl dt {
  218. padding-left: 10px;
  219. margin-top: 0.5em;
  220. }
  221. .sidebar > dl dt.current {
  222. font-weight: 800;
  223. }
  224. .sidebar > dl dd {
  225. margin-left: 0;
  226. }
  227. .sidebar > dl dd ul {
  228. padding-left: 30px;
  229. margin-left: 0;
  230. }
  231. .sidebar > dl .side {
  232. padding-left: 10px;
  233. }
  234. .sidebar li.current {
  235. font-weight: 800;
  236. }
  237. .sidebar li {
  238. overflow-wrap: break-word;
  239. }
  240. .sidebar article {
  241. text-align: left;
  242. margin: 5px 5px 15px 5px;
  243. }
  244. .sidebar article:last-child {
  245. margin-bottom: 5px;
  246. }
  247. .sidebar article h2 {
  248. border-bottom: 1px dotted white;
  249. }
  250. .sidebar article h2 time {
  251. float: right;
  252. font-weight: normal;
  253. }
  254. #cover-art-container {
  255. float: right;
  256. width: 40%;
  257. max-width: 400px;
  258. margin: 0 0 10px 10px;
  259. font-size: 0.8em;
  260. }
  261. #cover-art img {
  262. display: block;
  263. width: 100%;
  264. height: 100%;
  265. }
  266. #cover-art-container p {
  267. margin-top: 5px;
  268. }
  269. .image-container {
  270. border: 2px solid var(--fg-color);
  271. box-sizing: border-box;
  272. position: relative;
  273. padding: 5px;
  274. text-align: left;
  275. background-color: var(--dim-color);
  276. color: white;
  277. display: inline-block;
  278. width: 100%;
  279. height: 100%;
  280. }
  281. .image-inner-area {
  282. overflow: hidden;
  283. width: 100%;
  284. height: 100%;
  285. }
  286. img {
  287. object-fit: cover;
  288. /* these unfortunately dont take effect while loading, so...
  289. text-align: center;
  290. line-height: 2em;
  291. text-shadow: 0 0 5px black;
  292. font-style: oblique;
  293. */
  294. }
  295. .js-hide,
  296. .js-show-once-data,
  297. .js-hide-once-data {
  298. display: none;
  299. }
  300. a.box:focus {
  301. outline: 3px double var(--fg-color);
  302. }
  303. a.box:focus:not(:focus-visible) {
  304. outline: none;
  305. }
  306. a.box img {
  307. display: block;
  308. width: 100%;
  309. height: 100%;
  310. }
  311. h1 {
  312. font-size: 1.5em;
  313. }
  314. #content li {
  315. margin-bottom: 4px;
  316. }
  317. #content li i {
  318. white-space: nowrap;
  319. }
  320. .grid-listing {
  321. display: flex;
  322. flex-wrap: wrap;
  323. justify-content: center;
  324. align-items: center;
  325. }
  326. .grid-item {
  327. display: inline-block;
  328. margin: 15px;
  329. text-align: center;
  330. background-color: #111111;
  331. border: 1px dotted var(--fg-color);
  332. border-radius: 2px;
  333. padding: 5px;
  334. }
  335. .grid-item img {
  336. width: 100%;
  337. height: 100%;
  338. margin-top: auto;
  339. margin-bottom: auto;
  340. }
  341. .grid-item span {
  342. overflow-wrap: break-word;
  343. hyphens: auto;
  344. }
  345. .grid-item:hover {
  346. text-decoration: none;
  347. }
  348. .grid-actions .grid-item:hover {
  349. text-decoration: underline;
  350. }
  351. .grid-item > span:first-of-type {
  352. margin-top: 0.45em;
  353. display: block;
  354. }
  355. .grid-item:hover > span:first-of-type {
  356. text-decoration: underline;
  357. }
  358. .grid-listing > .grid-item {
  359. flex: 1 1 26%;
  360. }
  361. .grid-actions {
  362. display: flex;
  363. flex-direction: column;
  364. margin: 15px;
  365. }
  366. .grid-actions > .grid-item {
  367. flex-basis: unset !important;
  368. margin: 5px;
  369. }
  370. .grid-item {
  371. flex-basis: 240px;
  372. min-width: 200px;
  373. max-width: 240px;
  374. }
  375. .grid-item:not(.large-grid-item) {
  376. flex-basis: 180px;
  377. min-width: 120px;
  378. max-width: 180px;
  379. font-size: 0.9em;
  380. }
  381. .square {
  382. position: relative;
  383. width: 100%;
  384. }
  385. .square::after {
  386. content: "";
  387. display: block;
  388. padding-bottom: 100%;
  389. }
  390. .square-content {
  391. position: absolute;
  392. width: 100%;
  393. height: 100%;
  394. }
  395. .vertical-square {
  396. position: relative;
  397. height: 100%;
  398. }
  399. .vertical-square::after {
  400. content: "";
  401. display: block;
  402. padding-right: 100%;
  403. }
  404. .reveal {
  405. position: relative;
  406. width: 100%;
  407. height: 100%;
  408. }
  409. .reveal img {
  410. filter: blur(20px);
  411. opacity: 0.4;
  412. }
  413. .reveal-text {
  414. color: white;
  415. position: absolute;
  416. top: 15px;
  417. left: 10px;
  418. right: 10px;
  419. text-align: center;
  420. font-weight: bold;
  421. }
  422. .reveal-interaction {
  423. opacity: 0.8;
  424. }
  425. .reveal.revealed img {
  426. filter: none;
  427. opacity: 1;
  428. }
  429. .reveal.revealed .reveal-text {
  430. display: none;
  431. }
  432. #content.top-index h1,
  433. #content.flash-index h1 {
  434. text-align: center;
  435. font-size: 2em;
  436. }
  437. #content.flash-index h2 {
  438. text-align: center;
  439. font-size: 2.5em;
  440. font-variant: small-caps;
  441. font-style: oblique;
  442. margin-bottom: 0;
  443. text-align: center;
  444. width: 100%;
  445. }
  446. #content.top-index h2 {
  447. text-align: center;
  448. font-size: 2em;
  449. font-weight: normal;
  450. margin-bottom: 0.25em;
  451. }
  452. .quick-info {
  453. text-align: center;
  454. }
  455. ul.quick-info {
  456. list-style: none;
  457. padding-left: 0;
  458. }
  459. ul.quick-info li {
  460. display: inline-block;
  461. }
  462. ul.quick-info li:not(:last-child)::after {
  463. content: " \00b7 ";
  464. font-weight: 800;
  465. }
  466. #intro-menu {
  467. margin: 24px 0;
  468. padding: 10px;
  469. background-color: #222222;
  470. text-align: center;
  471. border: 1px dotted var(--fg-color);
  472. border-radius: 2px;
  473. }
  474. #intro-menu p {
  475. margin: 12px 0;
  476. }
  477. #intro-menu a {
  478. margin: 0 6px;
  479. }
  480. li .by {
  481. white-space: nowrap;
  482. font-style: oblique;
  483. }
  484. p code {
  485. font-size: 1em;
  486. font-family: 'courier new';
  487. font-weight: 800;
  488. }
  489. blockquote {
  490. max-width: 600px;
  491. margin-right: 0;
  492. }
  493. .long-content {
  494. margin-left: 12%;
  495. margin-right: 12%;
  496. }
  497. p img {
  498. max-width: 100%;
  499. height: auto;
  500. }
  501. dl dt {
  502. padding-left: 2em;
  503. }
  504. dl dt {
  505. margin-bottom: 2px;
  506. }
  507. dl dd {
  508. margin-bottom: 1em;
  509. }
  510. dl ul, dl ol {
  511. margin-top: 0;
  512. margin-bottom: 0;
  513. }
  514. .album-group-list dt {
  515. font-style: oblique;
  516. padding-left: 0;
  517. }
  518. .album-group-list dd {
  519. margin-left: 0;
  520. }
  521. .group-chronology-link {
  522. font-style: oblique;
  523. }
  524. hr.split::before {
  525. content: "(split)";
  526. color: #808080;
  527. }
  528. hr.split {
  529. position: relative;
  530. overflow: hidden;
  531. border: none;
  532. }
  533. hr.split::after {
  534. display: inline-block;
  535. content: "";
  536. border: 1px inset #808080;
  537. width: 100%;
  538. position: absolute;
  539. top: 50%;
  540. margin-top: -2px;
  541. margin-left: 10px;
  542. }
  543. li > ul {
  544. margin-top: 5px;
  545. }
  546. .new {
  547. animation: new 1s infinite;
  548. }
  549. @keyframes new {
  550. 0% {
  551. color: #bbdd00;
  552. }
  553. 50% {
  554. color: #eeff22;
  555. }
  556. 100% {
  557. color: #bbdd00;
  558. }
  559. }
  560. /* fake :P */
  561. .loading::after {
  562. content: '.';
  563. animation: loading 6s infinite;
  564. }
  565. @keyframes loading {
  566. 0 {
  567. content: '.';
  568. }
  569. 33% {
  570. content: '..';
  571. }
  572. 66% {
  573. content: '...';
  574. }
  575. 100% {
  576. content: '.';
  577. }
  578. }
  579. @media (max-width: 900px) {
  580. .sidebar-column:not(.no-hide) {
  581. display: none;
  582. }
  583. .layout-columns.vertical-when-thin {
  584. flex-direction: column;
  585. }
  586. .layout-columns.vertical-when-thin > *:not(:last-child) {
  587. margin-bottom: 10px;
  588. }
  589. .sidebar-column.no-hide {
  590. max-width: unset !important;
  591. flex-basis: unset !important;
  592. margin-right: 0 !important;
  593. margin-left: 0 !important;
  594. }
  595. .sidebar .news-entry:not(.first-news-entry) {
  596. display: none;
  597. }
  598. }
  599. @media (max-width: 600px) {
  600. .content-columns {
  601. columns: 1;
  602. }
  603. }