style.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. :root {
  2. --bg: #fdfdfc;
  3. --fg: #1d1d1f;
  4. --muted: #6b6b70;
  5. --link: #1f5fbf;
  6. --rule: #e4e4e2;
  7. --code-bg: #f3f3f1;
  8. }
  9. @media (prefers-color-scheme: dark) {
  10. :root {
  11. --bg: #161618;
  12. --fg: #e6e6e3;
  13. --muted: #9a9a9f;
  14. --link: #7fb0ff;
  15. --rule: #2c2c30;
  16. --code-bg: #222226;
  17. }
  18. }
  19. * { box-sizing: border-box; }
  20. body {
  21. margin: 0;
  22. background: var(--bg);
  23. color: var(--fg);
  24. font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  25. }
  26. a { color: var(--link); }
  27. header.site, main {
  28. max-width: 42rem;
  29. margin: 0 auto;
  30. padding: 0 1rem;
  31. }
  32. header.site {
  33. display: flex;
  34. justify-content: space-between;
  35. align-items: baseline;
  36. padding-top: 1.5rem;
  37. padding-bottom: 1rem;
  38. border-bottom: 1px solid var(--rule);
  39. margin-bottom: 2rem;
  40. }
  41. header.site .home { color: var(--fg); font-weight: 600; text-decoration: none; }
  42. header.site nav a { color: var(--muted); font-size: 0.9rem; }
  43. main { padding-bottom: 3rem; }
  44. footer.site {
  45. max-width: 42rem;
  46. margin: 0 auto;
  47. padding: 1rem 1rem 2rem;
  48. border-top: 1px solid var(--rule);
  49. display: flex;
  50. justify-content: flex-end;
  51. }
  52. footer.site a { color: var(--muted); font-size: 0.9rem; }
  53. .muted { color: var(--muted); }
  54. .facts {
  55. display: grid;
  56. grid-template-columns: max-content 1fr;
  57. gap: 0.25rem 1.25rem;
  58. margin: 1.5rem 0 2rem;
  59. padding: 1rem 1.25rem;
  60. border: 1px solid var(--rule);
  61. border-radius: 4px;
  62. }
  63. .facts dt { color: var(--muted); }
  64. .facts dd { margin: 0; }
  65. .facts time { margin-left: 0.5rem; }
  66. .meta { color: var(--muted); font-size: 0.9rem; }
  67. .post-list .meta { display: block; }
  68. .pinned { color: var(--fg); font-weight: 600; }
  69. /* Release notes: screenshot tables fill the column instead of scrolling. */
  70. .release-notes table { display: table; width: 100%; table-layout: fixed; }
  71. .release-notes td { vertical-align: top; }
  72. .release-notes td img { display: block; width: 100%; height: auto; }
  73. /* Desktop (wide) first, mobile (tall) second: size columns so both come out
  74. about the same height. */
  75. .release-notes table:has(img) th:first-child { width: 74%; }
  76. time { color: var(--muted); font-size: 0.9rem; }
  77. .post-list { list-style: none; padding: 0; margin: 0; }
  78. .post-list li { margin-bottom: 1.75rem; }
  79. .post-list li > a { font-size: 1.2rem; font-weight: 600; text-decoration: none; }
  80. .post-list li > a:hover { text-decoration: underline; }
  81. .post-list p { margin: 0.25rem 0 0; }
  82. article h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.25rem; }
  83. article .body { margin-top: 1.5rem; overflow-wrap: break-word; }
  84. article img { max-width: 100%; height: auto; }
  85. code, pre { font: 0.9em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
  86. code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 3px; }
  87. pre { background: var(--code-bg); padding: 1rem; overflow-x: auto; border-radius: 4px; tab-size: 4; }
  88. pre code { background: none; padding: 0; }
  89. blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
  90. table { border-collapse: collapse; display: block; overflow-x: auto; }
  91. th, td { border: 1px solid var(--rule); padding: 0.4rem 0.7rem; text-align: left; }
  92. hr { border: 0; border-top: 1px solid var(--rule); }
  93. .pager {
  94. display: flex;
  95. justify-content: space-between;
  96. gap: 1rem;
  97. margin-top: 3rem;
  98. padding-top: 1rem;
  99. border-top: 1px solid var(--rule);
  100. }
  101. .pager .newer { margin-left: auto; text-align: right; }