site.css 13 KB

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