.page-header, .post-header { margin: 32px 0; } .post-title { font-size: 40px; margin: var(--content-gap) 0; } .post-description { margin: var(--content-gap) 0; color: var(--secondary); opacity: .8; padding-left: .5em; border-left: 3px solid var(--tertiary); } .post-meta, .breadcrumbs { font-size: 15px; } .breadcrumbs { display: flex; flex-wrap: wrap; } .breadcrumbs a { font-size: 16px; } .post-content { font-size: 16px; color: var(--content); } .post-content h3, .post-content h4, .post-content h5, .post-content h6 { margin: 24px 0 16px; } .post-content h1 { margin: 40px auto 32px; font-size: 40px; } .post-content h2 { margin: 32px auto 24px; font-size: 32px; } .post-content h3 { font-size: 24px; } .post-content h4 { font-size: 20px; } .post-content h5 { font-size: 14px; } .post-content h6 { font-size: 12px; } .post-content a { font-weight: 500; color: var(--primary); box-shadow: var(--link-underline-shadow); transition: var(--link-transition); } .post-content a:hover { color: var(--link-hover-color); box-shadow: var(--link-hover-underline-shadow); } .post-content a.anchor:hover { color: var(--primary); box-shadow: 0 2px 0 var(--secondary); } .post-content a code { margin: auto 0; border-radius: 0; box-shadow: 0 -1px 0 var(--primary) inset; } .post-content a:hover code { box-shadow: 0 -1px 0 var(--link-hover-underline-color) inset, 0 1px 0 var(--link-hover-underline-color); } h1 .anchor, h2 .anchor, h3 .anchor, h4 .anchor, h5 .anchor, h6 .anchor { box-shadow: none; user-select: none; font-size: .8em; position: relative; top: -2px; } h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover .anchor { color: var(--secondary); margin-inline-start: 8px; font-weight: 500; display: inline-flex; } .post-content del { text-decoration: none; background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0 50%/1px 1px repeat-x; } .post-content dl, .post-content ol, .post-content p, .post-content figure, .post-content ul { margin-bottom: var(--content-gap); } .post-content ol, .post-content ul { padding-inline-start: 20px; } .post-content li { margin-top: 5px; } .post-content li p { margin-bottom: 0; } .post-content dl { display: flex; flex-wrap: wrap; margin: 0; } .post-content dt { width: 25%; font-weight: 700; } .post-content dd { width: 75%; margin-inline-start: 0; padding-inline-start: 10px; } .post-content dd ~ dd, .post-content dt ~ dt { margin-top: 10px; } .post-content table { margin-bottom: 32px; } .post-content table th, .post-content table:not(.highlighttable, .highlight table, .gist .highlight) td { min-width: 80px; padding: 12px 8px; line-height: 1.5; border-bottom: 1px solid var(--border); } .post-content table th { font-size: 14px; text-align: start; } .post-content table:not(.highlighttable) td code:only-child { margin: auto 0; } .post-content .highlight table { border-radius: var(--radius); } .post-content .highlight:not(table) { margin: 10px auto; border-radius: var(--radius); } .post-content li > .highlight { margin-inline-end: 0; } .post-content ul pre { margin-inline-start: calc(var(--gap) * -2); } .post-content .highlight pre { margin: 0; } .post-content .highlighttable { table-layout: fixed; } .post-content .highlighttable td:first-child { width: 40px; } .post-content .highlighttable td .linenodiv { padding-inline-end: 0 !important; } .post-content .highlighttable td .highlight, .post-content .highlighttable td .linenodiv pre { margin-bottom: 0; } .post-content .highlighttable td .highlight pre code::-webkit-scrollbar { display: none; } /* code block */ .post-content .chroma { border-radius: var(--radius); } /* TODO refactor this shit */ .post-content code { /* inline code */ background-color: var(--code-bg); margin: auto 4px; padding: 4px 6px; font-size: 0.78em; line-height: 1.5; border-radius: 2px; } .post-content .chroma code { background-color: inherit; } .post-content pre code { /* reset inline code */ display: block; margin: auto 0; padding: 10px; overflow-x: auto; word-break: break-all; } .post-content blockquote { margin: 20px 0; padding: 0 14px; border-inline-start: 3px solid var(--primary); } .post-content hr { margin: 30px 0; height: 2px; background: var(--tertiary-bg); border-top: 0; border-bottom: 0; } .post-content iframe { max-width: 100%; } .post-content img { border-radius: 4px; margin: 1rem auto; } .post-content img[src*="#center"] { margin: 1rem auto; } .post-content video { width: 100%; } .post-content figure.align-center { text-align: center; } .post-content figure > figcaption { color: var(--primary); font-size: 16px; font-weight: bold; margin: 8px 0 16px; } .post-content figure > figcaption > p { color: var(--secondary); font-size: 14px; font-weight: normal; } .toc { margin: 0 2px 40px 2px; border: 1px solid var(--border); background: var(--code-bg); border-radius: var(--radius); padding: 0.4em 0; } .toc.side { font-size: .8em; } @media screen and (min-width: 1350px) { .toc.side { position: fixed; top: 118px; z-index: 1; max-height: calc(100% - 150px); overflow: auto; } .toc.side::-webkit-scrollbar-thumb { border: 5px solid var(--code-bg); } .toc.side.left { left: 15px; width: 250px; } .toc.side.right { right: 15px; width: 265px; } } .toc details summary { cursor: pointer; margin-inline-start: 15px; } .toc .details { display: inline; font-weight: 500; } .toc .inner { padding: 10px 15px 5px 35px; } .toc ul { margin: 0; padding: 0; } .toc li ul { margin-inline-start: 20px; } .toc li a { line-height: 1.5em; padding: .1em .4em; border-radius: 5px; display: block; } .toc li a.active { background-color: var(--link-background-color); } .toc li a:hover { text-decoration: underline; } .toc summary:focus { outline: 0; } .post-footer { margin-top: calc(var(--content-gap) * 1.5); } .share-buttons { margin: var(--content-gap) 0; padding-inline-start: var(--radius); display: flex; justify-content: center; overflow-x: auto; } .share-buttons a { } .share-buttons a:not(:last-of-type) { margin-inline-end: 12px; } .share-buttons a svg { height: 30px; width: 30px; fill: currentColor; transition: transform 0.1s; } .share-buttons svg:active { transform: scale(0.96); } .post-content :not(table) ::-webkit-scrollbar-thumb { border: 2px solid var(--code-bg); background: rgb(113, 113, 117); } .post-content :not(table) ::-webkit-scrollbar-thumb:hover { background: rgb(163, 163, 165); } .gist table::-webkit-scrollbar-thumb { border: 2px solid rgb(255, 255, 255); background: rgb(173, 173, 173); } .gist table::-webkit-scrollbar-thumb:hover { background: rgb(112, 112, 112); } .post-content table::-webkit-scrollbar-thumb { border-width: 2px; } .paginav { margin: var(--content-gap) 0; display: flex; line-height: 30px; border-radius: var(--radius); } .paginav svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; } .paginav .title { letter-spacing: 1px; text-transform: uppercase; font-size: small; color: var(--secondary); } .paginav .prev, .paginav .next { width: 50%; } .paginav a span { transition: var(--link-transition); } .paginav a:hover span:not(.title) { box-shadow: 0 1px 0; } .paginav .next { margin-inline-start: auto; text-align: right; } [dir="rtl"] .paginav .next { text-align: left; } .full-width { left: 50%; margin-left: -50vw; margin-right: -50vw; max-width: 100vw; position: relative; right: 50%; width: 100vw; } .comments-divider { margin: calc(var(--content-gap) * 1) 0; height: 1px; background-color: var(--secondary); } :root { --shadow-color: 0deg 0% 0%; --shadow-elevation-low: 0.6px 0.6px 1px hsl(var(--shadow-color) / 0.1), 0.9px 0.9px 1.4px -1.2px hsl(var(--shadow-color) / 0.1), 2.2px 2.2px 3.5px -2.5px hsl(var(--shadow-color) / 0.1); --shadow-elevation-medium: 0.6px 0.6px 1px hsl(var(--shadow-color) / 0.11), 1.8px 1.8px 2.9px -0.8px hsl(var(--shadow-color) / 0.11), 4.6px 4.6px 7.3px -1.7px hsl(var(--shadow-color) / 0.11), 11.1px 11.1px 17.7px -2.5px hsl(var(--shadow-color) / 0.11); --twitter-color: #4a99e9; } .social-links { margin: calc(var(--content-gap) * 2) 0; background-color: var(--code-bg); border-left: 3px solid var(--twitter-color); padding: 1em; } .social-links .title { margin-bottom: .5em; font-weight: 500; } .social-links blockquote { font-size: .8em; margin: 0 0 0 1em; } .social-links blockquote a { font-weight: 500; color: var(--primary); box-shadow: var(--link-underline-shadow); transition: var(--link-transition); } .social-links blockquote > a:hover { color: var(--twitter-color); box-shadow: 0 2px 0 var(--twitter-color); } .disqus-container { margin: calc(var(--content-gap) * 2) 0; background-color: var(--code-bg); border-radius: 10px; padding: 1.5em; box-shadow: var(--shadow-elevation-low); } .image-size-control > img { width: inherit; height: inherit; }