styles.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 2rem auto;
  29. overflow: hidden;
  30. clear: both;
  31. display: block;
  32. }
  33. h1 {
  34. font-size: 1.8rem;
  35. font-weight: normal;
  36. line-height: 1.35rem;
  37. margin: 3vw 0 1vw 0;
  38. }
  39. h2 {
  40. display: inline-block;
  41. margin: 3rem 0 1rem 0;
  42. font-size: 1.6rem;
  43. line-height: 1.8rem;
  44. page-break-after: avoid;
  45. }
  46. h3 {
  47. font-size: 1.4rem;
  48. margin: 4rem 0 1rem 0;
  49. page-break-after: avoid;
  50. font-weight: normal;
  51. }
  52. h4 {
  53. font-size: 1.2rem;
  54. margin: 4rem 0 1rem 0;
  55. font-weight: normal;
  56. page-break-before: avoid;
  57. page-break-after: avoid;
  58. }
  59. a {
  60. color: var(--accl);
  61. }
  62. p {
  63. margin: 1vw 0;
  64. }
  65. ul {
  66. margin-top: 0.6rem;
  67. margin-bottom: 1vw;
  68. }
  69. li {
  70. margin-top: 0.4rem;
  71. }
  72. h3 em {
  73. font-size: 1.6rem;
  74. font-style: normal;
  75. font-weight: 500;
  76. }
  77. h4 em {
  78. font-size: 1.4rem;
  79. font-style: normal;
  80. font-weight: 500;
  81. }
  82. @media print {
  83. p {
  84. break-inside: avoid;
  85. }
  86. section {
  87. max-width: 95%;
  88. width: 95%;
  89. }
  90. body {
  91. max-width: 95%;
  92. width: 95%;
  93. margin: 2rem;
  94. font-size: 10px;
  95. }
  96. }