/* containers */ body { background-color: #fffff0; margin: 0; } main { max-width: 720px; margin: 0 auto; padding: 10px 20px; background-color: #fffff0; } /* titles and special */ h1.title { text-align: center; font-family: serif; font-size: 2.5em; font-weight: lighter; font-variant-caps: small-caps; border-bottom: 4px double #000; } h1, h2 { padding-bottom: 10px; border-bottom: 1px solid #000; } h1:not(.title):hover .anchor, h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover .anchor { opacity: 1; } .anchor { /* a distance of 0.9 is used because it feels right */ padding-right: 0.4ch; margin-left: -1.3ch; float: left; opacity: 0; transition: opacity 150ms; } /* body text */ p, li { font-family: sans-serif; font-size: 1.1em; line-height: 1.5; text-align: justify; } a { text-decoration: none; color: #f74c00; border-bottom: 0 dashed rgba(0, 0, 0, 0); transition: color 300ms, border-bottom 300ms; } a:hover { color: #e33b26; border-bottom: 1px solid #e33b26; } blockquote { border-left: 4px solid #000; padding-left: 8px; font-style: italic; color: #444; } .footnote:target { background-color: rgba(255, 255, 0, 0.2); } /* code listing */ pre { background-color: #eee; padding: 4px; overflow: auto; max-height: 480px; } /* tables */ table { border-collapse: collapse; } th { background-color: #f7f7e8; } th, td { padding: 0.5em; border: 1px solid #aaa; } tr:nth-child(even) { background-color: #f7f7e8; } /* misc */ p.time { text-align: right; font-style: italic; color: #777; font-size: 0.9em; } hr { border: 0; border-bottom: 2px dashed #aaa; } ::selection { background-color: #f74c00; color: #fff; }