@import "atom.scss"; @import "markdown.scss"; @import "syntax.scss"; :root { --pm: #0fa0ce; --bd: #e1e1e1; --bg: #fff; --ft: #222; --tag: #333; --w-mobile: 640px; } html.dark { --bg: #262d33; --ft: #c5c4c4; --bd: #555; --tag: #999; --ovo-ft: var(--ft); --ovo-bdr: var(--bd); --ovo-bg: var(--bg); --ovo-bg-hvr: #555; --ovo-tag: #30363d; } body { font-family: "Helvetica Neue", Helvetica, sans-serif; max-width: var(--w-mobile); margin: 3rem auto 0; font-size: 16px; font-weight: 400; color: var(--ft); background-color: var(--bg); transition-property: background-color, border-color, color; transition-duration: 0.5s; } h1, h2, h3, h4, h5 { font-family: "Noto Serif SC", 'Times New Roman', Times, sans-serif; font-weight: 700; } p { line-height: 1.8; text-align: justify; } hr { border-width: 0; border-top: 1px solid var(--bd); } pre, code { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; } p code { background-color: var(--bd); padding: 0.2em 0.4em; border-radius: 1px; } a { text-decoration: none; } a:not(.icon) { color: inherit; text-decoration: underline; text-decoration-color: var(--pm); background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, var(--pm) 50%); background-size: 100% 200%; transition: background-position 0.2s ease-in-out; } a:not(.icon):hover, a:not(.icon):focus { background-position: 0 100%; color: #fff; } a.icon:hover { transform: translateY(-5px); transition: transform 0.3s ease-in-out; } main { animation: showup 0.7s; } header nav { color: var(--tag); } details.toc ul { list-style-type: none; padding-inline-start: 1em; margin: 0; } details.toc ul > li { margin: 1em 0; } ::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, 0.7); } ::-webkit-scrollbar-thumb:window-inactive { background: rgba(128, 128, 128, 0.2); } ::-webkit-scrollbar-thumb:active { background-color: rgb(128, 128, 128); } h1::-webkit-scrollbar, nav::-webkit-scrollbar { display: none; width: 0; } @keyframes showup { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }