main.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. @charset "UTF-8";
  2. @viewport {
  3. width: device-width;
  4. }
  5. /* html5doctor.com/html-5-reset-stylesheet/ */
  6. /* http://meyerweb.com/eric/tools/css/reset/ */
  7. html, body, div, span, object, iframe, h1, h2,
  8. h3, h4, h5, h6, p, blockquote, pre, abbr, address,
  9. cite, code, del, dfn, em, img, ins, kbd, q, samp, small,
  10. strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset,
  11. form, label, legend, table, caption, tbody, tfoot, thead, tr,
  12. th, td, time, mark, audio, video {
  13. margin: 0;
  14. padding: 0;
  15. border: 0;
  16. outline: 0;
  17. font-size: 100%;
  18. vertical-align: baseline;
  19. background: transparent;
  20. }
  21. * {
  22. box-sizing: border-box;
  23. }
  24. body {
  25. font-family: Helvetica, sans-serif;
  26. font-size: 11pt;
  27. line-height: 1.5em;
  28. font-smooth: antialiased;
  29. text-rendering: optimizeLegibility;
  30. color: #000000;
  31. }
  32. div, section, article, header, footer, nav, aside, hgroup {
  33. display: block;
  34. }
  35. ol, ul {
  36. list-style: none;
  37. }
  38. table {
  39. border-collapse: collapse;
  40. border-spacing: 0;
  41. }
  42. footer {
  43. margin-bottom: 2em;
  44. margin-top: 1em;
  45. color: #888888;
  46. }
  47. a {
  48. text-decoration: underline;
  49. }
  50. #menu {
  51. margin: 1em;
  52. margin-top: 2em;
  53. font-size: 1.2em;
  54. font-weight: bold;
  55. }
  56. #menu ul {
  57. display: block;
  58. text-align: center;
  59. }
  60. #menu li {
  61. display: inline-block;
  62. margin-left: 0.5em;
  63. margin-right: 0.5em;
  64. }
  65. .page {
  66. max-width: 70em;
  67. margin: auto;
  68. text-align: center;
  69. line-height: 1.5;
  70. }
  71. .articles {
  72. text-align: left;
  73. padding: 1.5em;
  74. }
  75. .articles ol li {
  76. padding-bottom: 4em;
  77. padding-top: 1em;
  78. }
  79. .article article {
  80. display: inline-block;
  81. width: 100%;
  82. padding: 0.5em;
  83. text-align: left;
  84. line-height: 1.5;
  85. }
  86. .articles article footer {
  87. padding-bottom: 0.25em;
  88. margin-bottom: 0;
  89. margin-top: 0;
  90. }
  91. .article article footer p {
  92. text-align: center;
  93. }
  94. .articles article header {
  95. padding-bottom: 1em;
  96. }
  97. .articles article header a {
  98. text-decoration: none;
  99. }
  100. .articles article .summary {
  101. padding-bottom: 1em;
  102. font-size: 1.125em;
  103. }
  104. .articles article .readmore {
  105. color: #39739d;
  106. float: right;
  107. text-decoration: underline;
  108. }
  109. .articles article .tags {
  110. list-style: none;
  111. margin: 0;
  112. overflow: hidden;
  113. padding: 0;
  114. }
  115. .articles article .tags li {
  116. float: left;
  117. padding: 0;
  118. }
  119. .article img {
  120. max-width: 100%;
  121. display: block;
  122. margin-left: auto;
  123. margin-right: auto;
  124. }
  125. .article article header h1 {
  126. font-size: 2em;
  127. padding-bottom: 1em;
  128. font-weight: bold;
  129. text-align: center;
  130. }
  131. .article article .content p {
  132. padding-bottom: 0.5em;
  133. }
  134. .article article .content h1 {
  135. font-size: 2em;
  136. padding-bottom: 1em;
  137. padding-top: 2em;
  138. font-weight: bold;
  139. }
  140. .article article .content h2 {
  141. font-size: 1.4em;
  142. padding-bottom: 0.75em;
  143. padding-top: 1.5em;
  144. font-weight: bold;
  145. }
  146. .article article .content h3 {
  147. font-size: 1.2em;
  148. padding-bottom: 0.75em;
  149. padding-top: 1.5em;
  150. font-weight: bold;
  151. }
  152. .article article .content h4 {
  153. font-size: 1em;
  154. padding-bottom: 1.25em;
  155. padding-top: 1em;
  156. font-weight: bold;
  157. }
  158. .article article .content ul, .article article .content ol {
  159. margin: 0 auto;
  160. line-height: 1.5;
  161. padding-left: 2em;
  162. padding-bottom: 1em;
  163. }
  164. .article article .content ul {
  165. list-style-type: square;
  166. }
  167. .article article .content ol {
  168. list-style-type: decimal;
  169. }
  170. .article article .content em {
  171. font-style: italic;
  172. font-size: 0.8em;
  173. }
  174. .article article .content .highlight {
  175. margin-bottom: 1.5em;
  176. }
  177. .article article .content pre {
  178. padding-bottom: 1.75em;
  179. padding-top: 1em;
  180. display: block;
  181. background-color: #f5f5f5;
  182. border: 1px solid #000000;
  183. border-radius: 0.25em;
  184. padding: 0.5em;
  185. white-space: pre-wrap;
  186. word-wrap: break-word;
  187. }
  188. .article article .content span.nv {
  189. color: #c65d09;
  190. font-weight: bold;
  191. }
  192. .article article .content .embedded-tweet {
  193. margin-top: 1em;
  194. margin-bottom: 2em;
  195. }
  196. .back-to-top {
  197. text-align: center;
  198. margin-top: 4em;
  199. }
  200. .tag {
  201. background: #E1ECF4;
  202. border-radius: 3px;
  203. color: #39739d;
  204. display: inline-block;
  205. height: 2em;
  206. line-height: 2em;
  207. padding: 0 1em;
  208. position: relative;
  209. margin: 0 1em 1em 0;
  210. text-decoration: none;
  211. }
  212. .tag:hover {
  213. background-color: crimson;
  214. color: white;
  215. }
  216. .tag:hover::after {
  217. border-left-color: crimson;
  218. }
  219. .category-tag {
  220. font-style: italic;
  221. color: #39739d;
  222. text-decoration: underline;
  223. }
  224. .paginator {
  225. font-size: 3em;
  226. text-align: center;
  227. }
  228. .paginator span {
  229. font-size: 0.5em;
  230. }
  231. .paginator a.previous {
  232. float: lefdantont;
  233. }
  234. .paginator a.next {
  235. float: right;
  236. }
  237. img.emoji {
  238. margin: 0;
  239. vertical-align: -0.3em;
  240. display: inline;
  241. padding-right: 0.5em;
  242. }
  243. #home p {
  244. padding-bottom: 0.5em;
  245. }
  246. #home section {
  247. clear: both;
  248. }
  249. #home section img {
  250. float: left;
  251. margin: 0.75em;
  252. margin-right: 2em;
  253. width: 10em;
  254. max-width: 30%;
  255. }
  256. .social {
  257. text-align: center;
  258. }
  259. .social img {
  260. display: inline-block;
  261. margin-left: 0.5em;
  262. margin-right: 0.5em;
  263. width: 4em;
  264. }
  265. .sponsor {
  266. clear: both;
  267. text-align: center;
  268. margin: 0.25em;
  269. }
  270. .sponsor * {
  271. display: inline-block;
  272. vertical-align: middle;
  273. }