main.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. body {
  2. margin: 1rem;
  3. padding: 0;
  4. background-color: var(--background-color);
  5. color: var(--foreground-color);
  6. font-family: system-ui, sans-serif;
  7. font-size: 1rem;
  8. line-height: 1.5em;
  9. }
  10. nav ul {
  11. list-style-type: none;
  12. display: inline;
  13. margin: 0;
  14. padding: 0;
  15. }
  16. nav li {
  17. display: inline;
  18. }
  19. nav ul li ul li::before {
  20. content: ' > ';
  21. }
  22. h1 {
  23. font-size: 1.5rem;
  24. display: inline;
  25. }
  26. h2 {
  27. font-size: 1.4rem;
  28. }
  29. h3 {
  30. font-size: 1.1rem;
  31. }
  32. main > *:not(pre, form), footer {
  33. max-width: 40rem;
  34. margin-left: auto;
  35. margin-right: auto;
  36. }
  37. main > nav {
  38. max-width: 30rem;
  39. }
  40. header, footer {
  41. text-align: center;
  42. margin-top: 0.8rem;
  43. }
  44. p {
  45. margin-bottom: 1rem;
  46. }
  47. ::selection {
  48. background-color: var(--foreground-color);
  49. color: var(--background-color);
  50. }
  51. abbr {
  52. text-decoration: underline 0.2em dotted;
  53. }
  54. pre {
  55. margin: 0;
  56. }
  57. a {
  58. color: var(--foreground-color);
  59. text-decoration: underline var(--svc-color) 0.2em;
  60. }
  61. a:hover {
  62. text-decoration-thickness: 0.25em;
  63. }
  64. a:active {
  65. text-decoration-thickness: 0.35em;
  66. }
  67. a[rel~=help]:before {
  68. content: 'ℹ️\202F';
  69. font-size: 0.8rem;
  70. }
  71. a[rel~=external]:after {
  72. content: '\202F↗';
  73. font-size: 0.8rem;
  74. }
  75. dt a {
  76. font-size: 1.1rem;
  77. }
  78. table {
  79. max-width: none;
  80. border-spacing: 1ch 0;
  81. }
  82. table.zone td:first-child {
  83. text-align: right;
  84. }
  85. s {
  86. font-size: 0.7rem;
  87. line-height: 1.2rem;
  88. }