styles.css 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. :root {
  2. --dim: 2.5vw; /* Dimensions */
  3. --pxt: 12; /* Pixel total each dimension */
  4. --stcl: #444; /* Stroke colour */
  5. --txcl: #222; /* Text colour */
  6. --bgcl: #fff; /* Background colour */
  7. --accl: #306dd3; /* Action colour */
  8. --poa: 3; /* Pixels outside angle */
  9. --pxs: calc(var(--dim) / var(--pxt)); /* Pixel size */
  10. --asos: calc(var(--pxs) * (var(--pxt) - var(--poa))); /* Angle start offset */
  11. }
  12. @media (prefers-color-scheme: dark) {
  13. :root {
  14. --stcl: #cfcfcf; /* Stroke colour */
  15. --txcl: #c2c2c2; /* Text colour */
  16. --bgcl: #222; /* Background colour */
  17. --accl: #9da2ff; /* Action colour */
  18. }
  19. }
  20. body {
  21. font-family: "sans", Arial, sans-serif;
  22. font-size: 14px;
  23. background-color: var(--bgcl);
  24. color: var(--txcl);
  25. }
  26. section {
  27. max-width: 42vw;
  28. margin: 0 auto 2em auto;
  29. overflow: hidden;
  30. clear: both;
  31. display: block;
  32. }
  33. h1 {
  34. font-size: 1.6em;
  35. font-weight: normal;
  36. line-height: 1.25em;
  37. margin: 3vw 0 1vw 0;
  38. }
  39. h2 {
  40. display: inline-block;
  41. margin: 3em 0 1em 0;
  42. font-size: 1.4em;
  43. line-height: 1.6em;
  44. page-break-after: avoid;
  45. }
  46. h3 {
  47. font-size: 1.2em;
  48. margin: 4em 0 1em 0;
  49. page-break-after: avoid;
  50. }
  51. h4 {
  52. font-size: 1em;
  53. margin: 4em 0 1em 0;
  54. page-break-before: avoid;
  55. page-break-after: avoid;
  56. }
  57. a {
  58. color: var(--accl);
  59. }
  60. p {
  61. margin: 1vw 0;
  62. }
  63. ul {
  64. margin-top: 0.6em;
  65. margin-bottom: 1vw;
  66. }
  67. li {
  68. margin-top: 0.4em;
  69. }
  70. @media print {
  71. p {
  72. break-inside: avoid;
  73. }
  74. section {
  75. max-width: 95%;
  76. width: 95%;
  77. }
  78. body {
  79. max-width: 95%;
  80. width: 95%;
  81. margin: 2em;
  82. font-size: 10px;
  83. }
  84. }