site.css 11 KB

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