logo

blog

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

index.in.css (5070B)


  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. /* Because sometimes non-semantic colors happens
  48. * Like in /notes/vocabulary-jp: Tetris-CC-Sakura-EH.xhtml
  49. */
  50. font[color=green] {
  51. color: @ansi10@;
  52. color: var(--ansi10);
  53. }
  54. /* elements */
  55. a {
  56. color: @ansi13@;
  57. color: var(--ansi13);
  58. outline-color: invert;
  59. outline-color: var(--ansi11);
  60. }
  61. summary { cursor: pointer; } /* for some reason this isn't in webkit */
  62. abbr {
  63. text-decoration: underline;
  64. text-decoration: dotted underline;
  65. text-decoration-color: var(--ansi02);
  66. cursor: help;
  67. }
  68. body, html {
  69. background-color: @ansi00-hard@;
  70. background-color: var(--ansi00-hard);
  71. color: @ansi15@;
  72. color: var(--ansi15);
  73. margin: 0;
  74. padding: 0;
  75. }
  76. blockquote {
  77. border-left: 0.1em solid;
  78. padding-left: 0.5em;
  79. }
  80. code, pre {
  81. background-color: @ansi00@;
  82. background-color: var(--ansi00);
  83. color: @ansi15@;
  84. color: var(--ansi15);
  85. font-family: monospace;
  86. }
  87. code { padding: 0 0.25em; }
  88. pre {
  89. display: table;
  90. /* pre-wrap is there for legacy reasons as break-spaces is recent */
  91. white-space: pre-wrap;
  92. white-space: break-spaces;
  93. word-break: break-all;
  94. }
  95. .inline-sections article,
  96. .inline-sections section {
  97. display: inline-table;
  98. }
  99. .box-center h1,
  100. .box-center h2 {
  101. text-align: center;
  102. }
  103. article, main, .box-center {
  104. margin: 1.5rem auto;
  105. }
  106. article, body > section, main {
  107. padding: 0.5rem;
  108. background-color: @ansi00-soft@;
  109. background-color: var(--ansi00-soft);
  110. display: table;
  111. vertical-align: top;
  112. }
  113. article, main, body > section { max-width: 80em; }
  114. article .timestamps { font-size: small; }
  115. section h1, section h2, section h3, section h4, section h5, section h6 {
  116. margin-block: 0.25em;
  117. }
  118. table {
  119. border-collapse: collapse;
  120. }
  121. thead {
  122. position: sticky;
  123. top: 0;
  124. color: @ansi15@;
  125. color: var(--ansi15);
  126. background-color: @ansi00-hard@;
  127. background-color: var(--ansi00-hard);
  128. }
  129. td, th {
  130. border: 2pt solid @ansi00-hard@;
  131. border: 2pt solid var(--ansi00-hard);
  132. padding: 0.25em;
  133. }
  134. tbody tr:nth-child(odd) {
  135. background-color: @ansi00-soft@;
  136. background-color: var(--ansi00-soft);
  137. }
  138. tbody tr:nth-child(even) {
  139. background-color: @ansi00@;
  140. background-color: var(--ansi00);
  141. }
  142. thead td, thead th {
  143. border: none;
  144. }
  145. td.date, th.date {
  146. /* YYYY-MM-DD -> 10 characters, of roughly the width of '0' */
  147. min-width: 10ch;
  148. }
  149. rt,rp { font-size: 75%; }
  150. kbd, samp {
  151. user-select: all;
  152. user-select: contain;
  153. }
  154. kbd { font-weight: bold; }
  155. /* selectors */
  156. h1:target, h2:target, h3:target, h4:target, h5:target, h6:target {
  157. color: @ansi03@;
  158. color: var(--ansi03);
  159. }
  160. section { border: 1px dashed transparent; }
  161. section:target {
  162. border: 1px dashed @ansi03@;
  163. border: 1px dashed var(--ansi03);
  164. }
  165. /* classes */
  166. .select-all {
  167. user-select: all;
  168. }
  169. .warn {
  170. border-bottom: 1pt solid @ansi01@;
  171. border-bottom: 1pt solid var(--ansi01);
  172. }
  173. dl.list dt {
  174. display: list-item;
  175. list-style-type: disc;
  176. list-style-position: inside;
  177. }
  178. dl[compact] dt,
  179. dl[compact] dd {
  180. display: inline;
  181. }
  182. dl[compact] dt { font-weight: bold; }
  183. dl[compact] dd { margin-inline-start: 2em; }
  184. /* break between items */
  185. dl[compact] dt:before {
  186. content: ' ';
  187. display: block;
  188. }
  189. img.thumb_inline {
  190. max-width: 45%;
  191. object-fit: contain;
  192. margin: 0.5em;
  193. }
  194. .math {
  195. font-family: math, "CMU Typewriter Text", "STIX Two Math", "Lucida Math", monospace;
  196. }
  197. .right { float: right; }
  198. /* footnote */
  199. .fn {
  200. font-size: small;
  201. vertical-align: super;
  202. }
  203. /* ids */
  204. #bio { clear: both; }
  205. #avatar {
  206. float: left;
  207. margin: 1em;
  208. margin-right: 2em;
  209. }
  210. /* Images/Figures */
  211. figure {
  212. text-align: center;
  213. margin: auto;
  214. }
  215. figcaption {
  216. display: table;
  217. margin: auto;
  218. }
  219. #art {
  220. border: none;
  221. text-align: center;
  222. }
  223. #art img, figure img {
  224. max-width: 100%;
  225. max-height: 100%;
  226. object-fit: scale-down;
  227. }
  228. nav, footer {
  229. background-color: @ansi00@;
  230. background-color: var(--ansi00);
  231. color: @ansi15@;
  232. color: var(--ansi15);
  233. }
  234. header {
  235. text-align: center;
  236. background-color: @ansi00@;
  237. background-color: var(--ansi00);
  238. color: @ansi06@;
  239. color: var(--ansi06);
  240. }
  241. /* navbar */
  242. nav {
  243. font-size: larger;
  244. font-weight: bold;
  245. margin: 0 0 1rem 1rem;
  246. float: right;
  247. }
  248. nav, .indexlist {
  249. line-height: 1.5;
  250. }
  251. /* footer */
  252. footer {
  253. margin-top: 1rem;
  254. padding: 0.5em 0;
  255. text-align: center;
  256. clear: both;
  257. }