logo

drewdevault.com

[mirror] blog and personal website of Drew DeVault git clone https://hacktivis.me/git/mirror/drewdevault.com.git

main.scss (3903B)


  1. $black: #080808;
  2. html {
  3. font-family: sans-serif;
  4. color: $black;
  5. }
  6. body {
  7. max-width: 920px;
  8. margin: 0 auto;
  9. padding: 1rem;
  10. }
  11. h1 {
  12. margin-top: 0;
  13. font-size: 1.5rem;
  14. small {
  15. display: block;
  16. font-size: 1rem;
  17. }
  18. }
  19. .index {
  20. display: flex;
  21. flex-direction: row;
  22. .article-list {
  23. flex-grow: 1;
  24. .article {
  25. margin-bottom: 1rem;
  26. }
  27. .date {
  28. display: block;
  29. color: #333;
  30. }
  31. }
  32. aside {
  33. width: 40%;
  34. img {
  35. display: block;
  36. margin: 0 auto 1rem;
  37. border-radius: 5px;
  38. }
  39. dt {
  40. font-size: 0.9rem;
  41. }
  42. dd {
  43. margin-left: 0;
  44. &:not(:last-child) {
  45. margin-bottom: 0.5rem;
  46. }
  47. }
  48. }
  49. @media(max-width: 640px) {
  50. aside {
  51. display: none;
  52. }
  53. }
  54. }
  55. article {
  56. margin: 0 auto;
  57. max-width: 720px;
  58. line-height: 1.3;
  59. img, video, iframe {
  60. // !important for asciinema frames
  61. display: block !important;
  62. margin: 0 auto !important;
  63. max-width: 90%;
  64. @media(max-width: 640px) {
  65. max-width: calc(100% - 2rem);
  66. }
  67. }
  68. sup {
  69. line-height: 1;
  70. }
  71. .comment {
  72. margin: 2rem auto 0;
  73. max-width: 80%;
  74. color: #333;
  75. }
  76. }
  77. .footnotes {
  78. font-size: 0.85rem;
  79. }
  80. footer {
  81. margin-top: 2rem;
  82. text-align: center;
  83. font-size: 0.8rem;
  84. color: #333;
  85. }
  86. .float-img {
  87. float: right;
  88. display: inline;
  89. padding-left: 1rem;
  90. @media(max-width: 640px) {
  91. display: block;
  92. float: none;
  93. padding-left: inherit;
  94. }
  95. }
  96. pre {
  97. background-color: #eee;
  98. padding: 0.25rem 1rem;
  99. margin: 0 -1rem;
  100. max-width: 100%;
  101. overflow-x: auto;
  102. .cp {
  103. color: #800;
  104. }
  105. .k {
  106. color: #008;
  107. }
  108. .kt, .kd, .kc {
  109. color: #44F;
  110. }
  111. .s {
  112. color: #484;
  113. font-style: italic;
  114. }
  115. .cm, .c1 {
  116. color: #333;
  117. font-style: italic;
  118. }
  119. .gi {
  120. color: green;
  121. }
  122. .gd {
  123. color: red;
  124. }
  125. .gu {
  126. color: blue;
  127. }
  128. }
  129. .webring {
  130. margin-top: 2rem;
  131. h2 {
  132. font-size: 1.2rem;
  133. }
  134. .articles {
  135. display: flex;
  136. @media(max-width: 640px) {
  137. flex-direction: column;
  138. }
  139. }
  140. .title {
  141. margin: 0;
  142. }
  143. .article {
  144. flex: 1 1 0;
  145. display: flex;
  146. flex-direction: column;
  147. background: #eee;
  148. padding: 0.5rem;
  149. margin: 0 0.5rem;
  150. @media(max-width: 640px) {
  151. margin: 0.5rem 0;
  152. }
  153. }
  154. .article:first-child {
  155. margin-left: 0;
  156. }
  157. .article:last-child {
  158. margin-right: 0;
  159. }
  160. .summary {
  161. font-size: 0.8rem;
  162. flex: 1 1 0;
  163. }
  164. .attribution {
  165. float: right;
  166. font-size: 0.8rem;
  167. color: #555;
  168. line-height: 3;
  169. }
  170. .date {
  171. color: black;
  172. }
  173. }
  174. summary {
  175. cursor: pointer;
  176. background-color: #eee;
  177. padding: 0.25rem 1rem;
  178. margin: 0 -1rem;
  179. }
  180. details[open] {
  181. border-bottom: 1rem solid #eee;
  182. margin: 0 -1rem 1rem;
  183. padding: 0 1rem;
  184. }
  185. .text-center {
  186. text-align: center;
  187. }
  188. blockquote {
  189. border-left: 5px solid #777;
  190. background-color: #eee;
  191. padding: 0 1rem;
  192. margin-left: 0;
  193. margin-right: 0;
  194. blockquote {
  195. margin-right: 0;
  196. margin-left: 0;
  197. }
  198. }
  199. dl {
  200. display: grid;
  201. grid-template-columns: auto 1fr;
  202. grid-gap: 0.2rem 1rem;
  203. dt {
  204. font-weight: bold;
  205. grid-column-start: 1;
  206. }
  207. dd {
  208. grid-column-start: 2;
  209. margin: 0;
  210. }
  211. }
  212. .alert {
  213. padding: 0.5rem;
  214. border: 1px solid transparent;
  215. margin-bottom: 1rem;
  216. &.alert-danger {
  217. background: #f8d7da;
  218. color: #721c24;
  219. border-color: #f5c6cb;
  220. }
  221. &.alert-info {
  222. background: #d1ecf1;
  223. color: #0c5460;
  224. border-color: #bee5eb;
  225. }
  226. }
  227. table {
  228. color: #333;
  229. background: white;
  230. border: 1px solid grey;
  231. font-size: 12pt;
  232. border-collapse: collapse;
  233. }
  234. table thead th,
  235. table tfoot th {
  236. background: rgba(0,0,0,.1);
  237. }
  238. table caption {
  239. padding:.5em;
  240. }
  241. table th,
  242. table td {
  243. padding: .5em;
  244. border: 1px solid lightgrey;
  245. }
  246. td.red {
  247. background: #F8D7DA;
  248. }
  249. td.yellow {
  250. background: #FFF3CD;
  251. }
  252. td.blue {
  253. background: #CFE2FF;
  254. }