logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git

mandoc.css (4687B)


  1. /* BEGIN css/colorscheme.css */
  2. :root {
  3. /* gruvbox dark */
  4. --ansi00: #282828;
  5. --ansi00-hard: #1d2021;
  6. --ansi00-soft: #32302f;
  7. --ansi01: #cc241d;
  8. --ansi02: #98971a;
  9. --ansi03: #d79921;
  10. --ansi04: #458588;
  11. --ansi05: #b16286;
  12. --ansi06: #689d6a;
  13. --ansi07: #a89984;
  14. --ansi08: #928374;
  15. --ansi09: #fb4934;
  16. --ansi10: #b8bb26;
  17. --ansi11: #fabd2f;
  18. --ansi12: #83a598;
  19. --ansi13: #d3869b;
  20. --ansi14: #8ec07c;
  21. --ansi15: #ebdbb2;
  22. }
  23. @media (prefers-color-scheme: light) {
  24. :root {
  25. /* gruvbox light */
  26. --ansi00: #fbf1c7;
  27. --ansi00-hard: #f9f5d7;
  28. --ansi00-soft: #f2e5bc;
  29. --ansi01: #cc241d;
  30. --ansi02: #98971a;
  31. --ansi03: #d79921;
  32. --ansi04: #458588;
  33. --ansi05: #b16286;
  34. --ansi06: #689d6a;
  35. --ansi07: #7c6f64;
  36. --ansi08: #928374;
  37. --ansi09: #9d0006;
  38. --ansi10: #79740e;
  39. --ansi11: #b57614;
  40. --ansi12: #076678;
  41. --ansi13: #8f3f71;
  42. --ansi14: #427b58;
  43. --ansi15: #3c3836;
  44. }
  45. }
  46. /* END css/colorscheme.css */
  47. a[href] {
  48. color: var(--ansi13);
  49. }
  50. a {
  51. outline-color: invert;
  52. outline-color: var(--ansi11);
  53. text-decoration: underline;
  54. }
  55. summary { cursor: pointer; } /* for some reason this isn't in webkit */
  56. body, html {
  57. background-color: var(--ansi00-hard);
  58. color: var(--ansi15);
  59. margin: auto;
  60. padding: 0;
  61. max-width: 100ch;
  62. font-family: sans-serif;
  63. }
  64. table {
  65. margin-top: 0;
  66. margin-bottom: 0;
  67. border-collapse: collapse;
  68. }
  69. /* Some browsers set border-color in a browser style for tbody,
  70. * but not for table, resulting in inconsistent border styling. */
  71. tbody {
  72. border-color: inherit;
  73. }
  74. tr {
  75. border-color: inherit;
  76. }
  77. td {
  78. vertical-align: top;
  79. padding-left: 0.2rem;
  80. padding-right: 0.2rem;
  81. border-color: inherit;
  82. }
  83. ul, ol, dl {
  84. margin-top: 0;
  85. margin-bottom: 0;
  86. }
  87. li, dt {
  88. margin-top: 1rem;
  89. }
  90. pre {
  91. font-family: inherit;
  92. }
  93. .permalink {
  94. border-bottom: thin dotted;
  95. color: inherit;
  96. font: inherit;
  97. text-decoration: inherit;
  98. }
  99. * {
  100. clear: both
  101. }
  102. /* Header and footer lines. */
  103. table.head {
  104. width: 100%;
  105. border-bottom: 1px dotted #808080;
  106. margin-bottom: 1rem;
  107. font-size: smaller;
  108. }
  109. td.head-vol {
  110. text-align: center;
  111. }
  112. td.head-rtitle {
  113. text-align: right;
  114. }
  115. table.foot {
  116. width: 100%;
  117. border-top: 1px dotted #808080;
  118. margin-top: 1rem;
  119. font-size: smaller;
  120. }
  121. td.foot-os {
  122. text-align: right;
  123. }
  124. /* Sections and paragraphs. */
  125. .manual-text {
  126. margin-left: 3.8rem;
  127. }
  128. .Nd {
  129. display: inline;
  130. }
  131. h1.Sh {
  132. margin-top: 1.2rem;
  133. margin-bottom: 0.6rem;
  134. margin-left: -3.2rem;
  135. }
  136. h2.Ss {
  137. margin-top: 1.2rem;
  138. margin-bottom: 0.6rem;
  139. margin-left: -1.2rem;
  140. }
  141. .Pp {
  142. margin: 0.6rem 0;
  143. }
  144. /* Displays and lists. */
  145. .Bd-indent {
  146. margin-left: 3.8rem;
  147. }
  148. .Bl-bullet {
  149. list-style-type: disc;
  150. padding-left: 1rem;
  151. }
  152. .Bl-dash {
  153. list-style-type: none;
  154. padding-left: 0;
  155. }
  156. .Bl-dash > li:before {
  157. content: "\2014 ";
  158. }
  159. .Bl-item {
  160. list-style-type: none;
  161. padding-left: 0;
  162. }
  163. .Bl-compact > li {
  164. margin-top: 0;
  165. }
  166. .Bl-enum {
  167. padding-left: 2rem;
  168. }
  169. .Bl-diag > dt {
  170. font-style: normal;
  171. font-weight: bold;
  172. }
  173. .Bl-diag > dd,
  174. .Bl-ohang > dd,
  175. .Bl-inset > dd {
  176. margin-left: 0;
  177. }
  178. .Bl-hang > dd {
  179. margin-left: 5.5rem;
  180. }
  181. .Bl-tag {
  182. margin-top: 0.6rem;
  183. margin-left: 5.5rem;
  184. }
  185. .Bl-tag > dt {
  186. float: left;
  187. margin-top: 0;
  188. margin-left: -5.5rem;
  189. padding-right: 0.5rem;
  190. vertical-align: top;
  191. }
  192. .Bl-tag > dd {
  193. clear: right;
  194. column-count: 1;
  195. /* Force block formatting context. */
  196. width: 100%;
  197. margin-top: 0;
  198. margin-left: 0;
  199. margin-bottom: 0.6rem;
  200. vertical-align: top;
  201. }
  202. .Bl-compact,
  203. .Bl-compact > dt,
  204. .Bl-compact > tbody > tr > td {
  205. margin-top: 0;
  206. }
  207. .Bl-compact > dd {
  208. margin-bottom: 0;
  209. }
  210. .Bl-column > tbody > tr > td {
  211. margin-top: 1rem;
  212. }
  213. .Rs,
  214. .No {
  215. font-style: normal;
  216. font-weight: normal;
  217. }
  218. .RsB, .RsI, .RsJ {
  219. font-style: italic;
  220. font-weight: normal;
  221. }
  222. .RsT {
  223. text-decoration: underline;
  224. }
  225. .tbl td {
  226. vertical-align: middle;
  227. }
  228. .HP {
  229. margin-left: 3.8rem;
  230. text-indent: -3.8rem;
  231. }
  232. .Fl, .Cm, .Ic, code.Nm,
  233. code.In, .Fd, .Fn,
  234. .Cd {
  235. font-style: normal;
  236. font-weight: bold;
  237. font-family: inherit;
  238. }
  239. .Ar, .Pa, .Ft, .Fa, .Vt, .Va,
  240. .Ad,
  241. .Em {
  242. font-style: italic;
  243. font-weight: normal;
  244. color: var(--ansi10);
  245. }
  246. .Op {
  247. display: inline;
  248. }
  249. .Ev, .Dv, .Er,
  250. .Li {
  251. font-style: normal;
  252. font-weight: normal;
  253. font-family: monospace;
  254. }
  255. .Ms,
  256. .Sy {
  257. font-style: normal;
  258. font-weight: bold;
  259. }
  260. .Bf {
  261. display: inline;
  262. }
  263. .Xr {
  264. font-style: monospace;
  265. }
  266. /* Overrides to avoid excessive margins on small devices. */
  267. @media (max-width: 37.5rem) {
  268. .manual-text {
  269. margin-left: 0.5rem;
  270. }
  271. h1.Sh, h2.Ss {
  272. margin-left: 0;
  273. }
  274. .Bd-indent {
  275. margin-left: 2rem;
  276. }
  277. .Bl-hang > dd {
  278. margin-left: 2rem;
  279. }
  280. .Bl-tag {
  281. margin-left: 2rem;
  282. }
  283. .Bl-tag > dt {
  284. margin-left: -2rem;
  285. }
  286. .HP {
  287. margin-left: 2rem;
  288. text-indent: -2rem;
  289. }
  290. }