:root { --fg-color: black; --bg-color: white; --fg-selection-color: white; --bg-selection-color: #338fff; --border-color: black; --blockquote-color: #6a737d; --blockquote-border-color: #dfe2e5; --header-color: black; --accent-line-color: #004080; --strong-color: black; --a-color: #004080; --a-hover-color: #004080; --code-bg-color: #e2e4e6; --pre-bg-color: #f6f8fa; --em-color: black; --td-border-color: #dfe2e5; --tr-bg-color: #fff; --tr-border-color: #c6cbd1; --alternating-row-color: #f6f8fa; } /* Custom scrollbar style */ ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: #d8d8d8; } ::-webkit-scrollbar-thumb { background: #888; } ::-webkit-scrollbar-thumb:hover { background: #555; } /* Custom mouse text selection colors */ ::-moz-selection { color: var(--fg-selection-color); background: var(--bg-selection-color); } ::selection { color: var(--fg-selection-color); background: var(--bg-selection-color); } /* Global */ body { min-height: calc(100vh - 16px); color: var(--fg-color); background-color: var(--bg-color); border-color: var(--border-color); } body, td, th { font: 18px 'Open Sans', sans-serif; line-height: 1.5em; } img { max-width: 100%; box-sizing: border-box; image-rendering: crisp-edges; } .pixelated-render { image-rendering: pixelated; } .borderless, .oldschool-badge, .file-icon { border: none; } .oldschool-badge { height: 38px; } .file-icon { vertical-align: text-bottom; } img, hr { border: 1px solid var(--border-color); } strong { color: var(--strong-color); } a, a strong { text-decoration: none; color: var(--a-color); border-bottom: 1px dashed; } a:hover, a strong:hover { color: var(--a-hover-color); } a * { color: var(--fg-color); } i, em { color: var(--em-color); } article { flex: 1; max-width: 52.7em; /* Equivalent to 50em on 19px font-size */ min-height: calc(100vh - 228px); overflow: auto; padding: 0 0.4em; box-sizing: content-box; } .noMaxWidth { max-width: initial; } .spacer { flex: 1; } ul, ol { padding-inline-start: 30px; } table code { white-space: normal; } h1, h2, h3, h4, h5, h6, b { color: var(--header-color); border-color: var(--border-color); } h1 { font-size: 1.7em; line-height: 1.2em; margin-block-end: 0.5em; } h1 ~ h1 { margin-top: 0; } h1::before, h2::before, h3::before, h4::before, h5::before { content: "\2550 "; color: var(--border-color); } h1::after, h2::after, h3::after, h4::after, h5::after { color: var(--border-color); } h1::after { content: " \2550 \2550 \2550 \2550 \2550"; } h2::after { content: " \2550 \2550 \2550"; } h3::after { content: " \2550"; } h4 { border-bottom: 2px solid var(--border-color); } /* Show link icon next to headings */ h2, h3, h4, h5, h6 { display: inline-block; margin-block-start: 1.25em; margin-block-end: 0.16em; line-height: 1.25em; } h2 + p, h3 + p, h4 + p, h5 + p, h6 + p { display: inline; } h1 + p a, h2 + p a, h3 + p a, h4 + p a, h5 + p a, h6 + p a { border: none !important; } /* This selects the link images, next to headings */ h2 + p img, h3 + p img, h4 + p img, h5 + p img, h6 + p img { height: 1.3em; border: none; vertical-align: text-top; } h2 + p img, h3 + p img, h4 + p img, h5 + p img, h6 + p img, .icon, .file-icon, .file-wrapper > summary { /* Since link images are made for dark mode, and have white-ish foreground, * this filter makes them black (when in light mode) */ filter: invert(1) brightness(0); } /* The following CSS is a modified version of sindresorhus's github-markdown-css repo: https://github.com/sindresorhus/github-markdown-css */ code, pre { font-family: monospace; font-size: 1em; } code { padding: .2em .4em; margin: 0; font-size: 85%; background-color: var(--code-bg-color); border-radius: 3px; } pre code { display: inline; padding: 0; margin: 0; overflow: visible; line-height: inherit; word-wrap: normal; background-color: var(--code-bg-color); border: 0; } pre > code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background-color: inherit; border: 0; } pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: var(--pre-bg-color); border-radius: 3px; margin: 0; word-break: normal; word-wrap: normal; } table { line-height: 25px; border-spacing: 0; border-collapse: collapse; margin-top: 10px; margin-bottom: 10px; width: 100%; overflow: auto; } article > table:nth-child(5) td:first-child { width: 60%; } table td:not(:empty) { padding: 0.5em; word-break: break-all; } table th:not(:empty) { font-size: 1.1em; padding: 0.25em; font-weight: 600; } table code { font-size: 0.7em; } table td, table th { border: 1px solid var(--td-border-color); } table tr { background-color: var(--tr-bg-color); border-top: 1px solid var(--tr-border-color); } table tr:nth-child(2n) { background-color: var(--alternating-row-color); } blockquote { margin: 0; margin-top: 0; margin-bottom: 16px; padding: 0 1em; color: var(--blockquote-color); border-left: .25em solid var(--blockquote-border-color); } blockquote > :first-child { margin-top: 0; } blockquote > :last-child { margin-bottom: 0; } dt { font-size: 1.1em; } dt * { vertical-align: middle; } dt a { border: none; } dt img { max-height: 1em; box-sizing: border-box; } dd { font-size: 0.7em; margin-bottom: 1.4em; line-height: 2em; } /* Main elements: content-wrapper, sidebar, article, header, footer */ #content-wrapper { display: flex; flex-direction: column-reverse; min-height: calc(100vh - 16px); border-right: 3px solid var(--accent-line-color); } .sidebar { min-height: auto; width: 11.2em; display: flex; flex-direction: column; text-align: left; font-size: 1.2em; padding-left: 1em; border: 3px solid var(--accent-line-color); border-right: none; border-top: none; } .centered, article { margin-left: auto; margin-right: auto; } .header, .footer { font-family: Arial; } .header { font-size: 1.5em; margin: 0.8em 0; } .footer { overflow-x: hidden; font-size: 0.7em; margin-bottom: 1em; } .footer > * { white-space: nowrap; } /* Main elements helpers */ .arrowed-list { display: grid; grid-column-start: 1; grid-column-end: 1; row-gap: 0; margin-bottom: 0.5em; } .arrowed-list > *, .arrowed-list > *:hover { border: none; padding: none; line-height: 1.2em; } .arrowed-list > *::before { content: "\251C "; color: var(--border-color); } .arrowed-list > *:last-child::before { content: "\2514 "; } #settingsWrapper { font-size: 1.2em; } /* Index page styling */ @media screen and (min-width: 610px) { #content-wrapper { flex-direction: row; } .sidebar { min-height: initial; } #index-contents { display: flex; align-items: center; justify-content: center; } #index-contents-text { margin-left: 15px; max-width: 77%; } #index-contents-img { max-width: 32%; } table td, table th { word-break: normal !important; } } #index-list { margin-block-end: calc(1em + 10px); } /* File tables */ .file-wrapper { margin: 0.5em 0; } .file-wrapper > summary { background: url('/img/folder-plus-tabler.svg') no-repeat left top; list-style: none; padding-left: 1.5em; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .file-wrapper[open] > summary { background: url('/img/folder-minus-tabler.svg') no-repeat left top; } .file-wrapper > summary:hover { cursor: pointer; } .file-list { table-layout: auto; border-collapse: collapse; margin-left: 1.5em; width: auto; } .file-list td, .file-list tr { border: none; padding: 0.2em 0.4em !important; } .file-list tr > td:first-child { padding: 0.2em 0 0.2em 0.2em !important; } /* Syntax highlighting (colours are inspired from gruvbox) */ .cst, .chr { /* Constant, Chars */ color: #d787af; } .com { /* Comment */ color: #8a8a8a; } .kwd { /* Keyword */ color: #d75f5f; } .kwD { /* Second keyword color */ color: #87af87; } .kWD { /* Third keyword color */ color: #ff8700; } .typ { /* Type */ color: #ffaf00; } .cls { /* Class */ color: #87afaf; } .fnc, .str { /* Function names, Strings */ color: #afaf00; } /* Script specific styling */ .btn:hover { cursor: pointer; } .clicked-image { position: absolute; width: 100vw; height: 100vh; max-width: none !important; max-height: none !important; border: none; object-fit: contain; left: 0; top: 0; padding: 1em; z-index: 2; background-color: var(--bg-color); } .body-on-clicked-image { overflow: hidden; } #scrollBtn { font-size: 1rem; position: fixed; right: 1em; bottom: 1em; z-index: 1; border: 1px solid; transition-duration: 0.5s; padding: 0.3em; display: none; } .setting-btn { vertical-align: middle; border: none !important; } /* OpenSans font */ @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-Regular.ttf); font-weight: normal; } @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-Bold.ttf); font-weight: bold; } @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-ExtraBold.ttf); font-weight: 800; } @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-Italic.ttf); font-weight: normal; font-style: italic; } @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-BoldItalic.ttf); font-weight: bold; font-style: italic; } @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf); font-weight: 800; font-style: italic; } @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-Semibold.ttf); font-weight: 600; } @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-SemiboldItalic.ttf); font-weight: 600; font-style: italic; }