removing author and cleaning js / css

This commit is contained in:
gitea-actions
2026-07-08 22:28:43 +01:00
parent d0610a5907
commit 0db2151f92
81 changed files with 18580 additions and 18565 deletions

View File

@@ -0,0 +1,118 @@
.comments {
margin-top: 4rem;
padding-top: 2rem;
border-top: 1px solid var(--border-muted, #ddd);
}
.comments h2 {
margin: 0 0 1rem 0;
font-size: 1.4rem;
}
.comments-list {
margin: 1.5rem 0 2rem;
}
.comments-empty {
font-style: italic;
color: var(--text-muted, #777);
}
.comment {
margin-bottom: 1.5rem;
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--border-muted, #eee);
}
.comment:last-child {
border-bottom: none;
}
.comment strong {
display: block;
font-weight: 600;
margin-bottom: 0.25rem;
}
.comment p {
margin: 0.25rem 0 0.5rem;
}
.comment-date {
display: block;
font-size: 0.8rem;
color: var(--text-muted, #777);
}
.comment-children {
margin-top: 1rem;
margin-left: 1.25rem;
padding-left: 1rem;
border-left: 2px solid var(--border-muted, #ddd);
}
.comment-reply {
margin-top: 0.4rem;
padding: 0;
font-size: 0.85rem;
background: none;
border: none;
color: var(--text-muted, #555);
cursor: pointer;
}
.comment-reply:hover {
text-decoration: underline;
}
.comment-form {
max-width: 40rem;
}
.comment-author {
display: block;
margin-bottom: 1rem;
}
.comment-form span {
display: block;
margin-bottom: 0.25rem;
font-size: 0.85rem;
color: var(--fg);
}
.comment-form input,
.comment-form textarea {
width: 100%;
padding: 0;
font-family: inherit;
font-size: 1rem;
color: var(--fg);
background: var(--bg);
border: 1px solid var(--border-muted, #ccc);
border-radius: 3px;
}
.comment-form textarea {
min-height: 6rem;
resize: vertical;
}
.comment-form button {
margin-top: 0.75rem;
padding: 0.45rem 1rem;
font-family: inherit;
font-size: 0.9rem;
color: var(--fg);
background: transparent;
border: 1px solid var(--border-muted, #aaa);
cursor: pointer;
}

View File

@@ -0,0 +1,251 @@
#kanban-board {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.kanban-column {
background: #f8f9fa;
border-radius: 8px;
padding: 0.6rem;
display: flex;
flex-direction: column;
}
.kanban-column h3 {
text-align: center;
font-size: 0.9rem;
margin: 0.4rem 0 0.6rem;
font-weight: 600;
}
.kanban-list {
flex-grow: 1;
min-height: 3rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.kanban-card {
background: var(--bg);
border-radius: 6px;
padding: 0.5rem 0.6rem;
font-size: 0.85rem;
cursor: grab;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
color: var(--fg);
}
.kanban-card.dragging {
opacity: 0.5;
cursor: grabbing;
}
.kanban-column[data-state="completed"] {
background: var(--kb-bg-completed);
}
.kanban-column[data-state="manager_review"] {
background: var(--kb-bg-manager-review);
}
.kanban-column[data-state="in_progress"] {
background: var(--kb-bg-in-progress);
}
.kanban-column[data-state="not_started"] {
background: var(--kb-bg-not-started);
}
.kanban-column[data-state="comments"] {
background: var(--kb-bg-comments);
}
#mobile-move-panel {
display: none;
max-width: 22rem;
margin: 1.5rem auto 0 auto;
padding: 1rem;
box-sizing: border-box;
border: 1px solid var(--border-color, #ddd);
border-radius: 0.5rem;
background: var(--bg);
color: var(--fg);
overflow: hidden;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
font-size: 0.9rem;
}
#mobile-move-panel * {
box-sizing: border-box;
}
#mobile-move-panel h4 {
margin: 0 0 0.75rem 0;
font-size: 0.95rem;
font-weight: 600;
}
#mobile-move-panel label {
display: flex;
flex-direction: column;
gap: 0.35rem;
width: 100%;
}
#mobile-move-panel select,
#mobile-move-panel button {
font-size: 0.9rem;
padding: 0.4rem 0.5rem;
min-width: 0;
}
#mobile-move-panel button {
margin-top: 0.5rem;
align-self: flex-start;
}
#mobile-move-panel select {
width: 100%;
max-width: 100%;
padding: 0.45rem 2rem 0.45rem 0.6rem;
font-size: 0.9rem;
line-height: 1.2;
border: 1px solid var(--border-color, #ccc);
border-radius: 0.4rem;
background-color: var(--bg, #fff);
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
background-image:
linear-gradient(45deg, transparent 50%, #666 50%),
linear-gradient(135deg, #666 50%, transparent 50%),
linear-gradient(to right, transparent, transparent);
background-position:
calc(100% - 1.2rem) 50%,
calc(100% - 0.9rem) 50%,
100% 0;
background-size:
6px 6px,
6px 6px,
2.5rem 100%;
background-repeat: no-repeat;
margin-bottom: 1em;
}
#mobile-move-panel select:focus {
outline: none;
border-color: #666;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}
#mobile-move-panel button {
width: 100%;
padding: 0.5rem 0.6rem;
font-size: 0.9rem;
border-radius: 0.4rem;
border: 1px solid #888;
background: #f8f8f8;
cursor: pointer;
}
#mobile-move-panel button:active {
background: #eee;
}
#mobile-move-panel select:disabled {
background-color: #f3f3f3;
color: #555;
border-color: #ccc;
opacity: 1;
cursor: default;
background-image: none;
}
#progress-wrapper {
margin-bottom: 16px;
}
#progress-label {
font-size: 14px;
margin-bottom: 6px;
text-align: right;
color: #555;
}
#progress-bar {
width: 100%;
height: 10px;
background: #e5e7eb;
border-radius: 999px;
overflow: hidden;
}
#progress-fill {
height: 100%;
width: 0%;
background: #22c55e;
transition: width 0.3s ease;
}
#level-tabs {
display: inline-flex;
align-items: center;
gap: 0;
margin-bottom: 1rem;
border-radius: 999px;
padding: 3px;
background: var(--bg, #fff);
width: fit-content;
}
.level-tab {
border: none;
background: transparent;
padding: 0.35rem 1rem;
font-size: 0.85rem;
border-radius: 999px;
cursor: pointer;
color: var(--fg, #333);
transition:
background 0.2s ease,
color 0.2s ease,
transform 0.1s ease;
}
.level-tab:hover {
background: rgba(0,0,0,0.05);
}
.level-tab.active {
background: #333;
color: white;
font-weight: 500;
}
.level-tab:active {
transform: scale(0.97);
}

View File

@@ -0,0 +1,76 @@
/* Mermaid container for zooming and panning */
.mermaid-container {
overflow: auto;
width: 100%;
min-height: 26rem;
max-height: 800px;
border: 1px solid var(--border);
border-radius: 8px;
background: color-mix(in oklab, var(--surface) 88%, var(--bg) 12%);
position: relative;
margin: 1.5rem 0;
}
/* Make SVG scale properly */
.mermaid-container .mermaid svg {
transform-origin: top left; /* needed for scaling */
transition: transform 0.2s ease; /* smooth zoom */
width: 100%;
height: auto;
}
.mermaid-container--site-map {
width: min(96vw, 1400px);
height: min(82vh, 980px);
max-height: none;
margin-left: 50%;
transform: translateX(-50%);
}
.mermaid-container--site-map .mermaid {
display: inline-block;
min-width: max-content;
padding: 3rem 2rem 2rem;
}
.mermaid-container--site-map .mermaid svg {
width: auto;
max-width: none;
min-width: 1100px;
}
@media (max-width: 700px) {
.mermaid-container--site-map {
width: 100%;
height: 78vh;
margin-left: 0;
transform: none;
}
.mermaid-container--site-map .mermaid svg {
min-width: 900px;
}
}
/* Zoom buttons */
.mermaid-zoom-controls {
position: absolute;
top: 5px;
right: 5px;
z-index: 10;
}
.mermaid-zoom-controls button {
padding: 5px 10px;
margin-left: 5px;
background: var(--surface);
color: var(--fg);
border: 1px solid var(--border);
border-radius: 4px;
cursor: pointer;
}
.mermaid-zoom-controls button:hover {
background: var(--accent);
color: var(--surface);
}

View File

@@ -0,0 +1,281 @@
/* =========================
NOTES BOARD
========================= */
#notes-tools {
display: flex;
align-items: end;
justify-content: flex-end;
gap: 0.65rem;
margin: 1.25rem 0 0;
}
#notes-tools label {
color: var(--muted);
font-size: 0.75rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
#notes-author-filter {
min-width: min(220px, 100%);
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface);
color: var(--fg);
font: inherit;
font-size: 0.9rem;
line-height: 1.2;
padding: 0.45rem 0.65rem;
}
#notes-author-filter:focus {
outline: 2px solid color-mix(in oklab, var(--accent) 45%, transparent);
outline-offset: 2px;
}
#notes-wall {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 1.5rem;
margin: 2.5rem 0;
align-items: start;
}
/* =========================
NOTE CARD
========================= */
.note {
position: relative;
padding: 1rem 1rem 0.9rem;
background: var(--surface);
color: var(--fg);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow:
0 2px 6px rgba(0, 0, 0, 0.08),
0 12px 24px rgba(0, 0, 0, 0.06);
transform: rotate(var(--note-tilt, 0deg));
transition:
transform 0.15s ease,
box-shadow 0.15s ease,
background-color 0.2s ease,
border-color 0.2s ease;
}
/* subtle randomness */
.note:nth-child(3n) { --note-tilt: -0.6deg; }
.note:nth-child(4n) { --note-tilt: 0.4deg; }
.note:nth-child(5n) { --note-tilt: -0.3deg; }
.note:hover {
transform: rotate(0deg) translateY(-4px);
box-shadow:
0 6px 14px rgba(0, 0, 0, 0.12),
0 18px 36px rgba(0, 0, 0, 0.10);
}
/* =========================
PIN
========================= */
.note::before {
content: "";
position: absolute;
top: 0.6rem;
left: 50%;
width: 10px;
height: 10px;
background: #c33;
border-radius: 50%;
transform: translateX(-50%);
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.3);
opacity: 0.85;
}
/* =========================
META
========================= */
.note-meta {
display: flex;
justify-content: space-between;
align-items: baseline;
font-size: 0.7rem;
margin-bottom: 0.5rem;
color: var(--muted);
}
.note-author {
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.note-meta time {
font-variant-numeric: tabular-nums;
opacity: 0.7;
}
/* =========================
CONTENT
========================= */
.note-content {
font-size: 0.95rem;
line-height: 1.45;
white-space: pre-wrap;
color: var(--fg);
}
/* =========================
MOBILE TWEAKS
========================= */
@media (max-width: 600px) {
#notes-wall {
grid-template-columns: 1fr;
}
#notes-tools {
align-items: stretch;
flex-direction: column;
}
.note {
transform: none;
}
.note::before {
left: 0.75rem;
transform: none;
}
}
/* =========================
NOTES FORM
========================= */
#notes-form-wrapper {
margin-top: 3rem;
display: flex;
justify-content: center;
}
#notes-form {
width: 100%;
max-width: 420px;
background: var(--surface);
color: var(--fg);
border: 1px solid var(--border);
padding: 1.25rem 1.25rem 1.1rem;
border-radius: 10px;
box-shadow:
0 2px 6px rgba(0, 0, 0, 0.08),
0 14px 30px rgba(0, 0, 0, 0.06);
position: relative;
}
/* pin */
#notes-form::before {
content: "";
position: absolute;
top: 0.6rem;
left: 50%;
width: 12px;
height: 12px;
background: #c33;
border-radius: 50%;
transform: translateX(-50%);
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.35);
}
/* =========================
LABELS
========================= */
#notes-form label {
display: block;
font-size: 0.7rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 0.25rem;
}
/* =========================
INPUTS
========================= */
#notes-form input,
#notes-form textarea {
width: 100%;
border: none;
background: transparent;
color: var(--fg);
font-family: inherit;
font-size: 0.95rem;
line-height: 1.45;
padding: 0.3rem 0;
margin-bottom: 0.9rem;
border-bottom: 1px solid var(--border);
}
#notes-form textarea {
resize: vertical;
min-height: 4.5rem;
}
/* focus state */
#notes-form input:focus,
#notes-form textarea:focus {
outline: none;
border-bottom-color: var(--accent);
}
/* placeholder */
#notes-form ::placeholder {
color: var(--muted);
}
/* =========================
SUBMIT BUTTON
========================= */
#notes-form button {
margin-top: 0.5rem;
padding: 0.35rem 0.9rem;
font-family: inherit;
font-size: 0.8rem;
letter-spacing: 0.06em;
text-transform: uppercase;
border-radius: 999px;
border: none;
background: var(--fg);
color: var(--bg);
cursor: pointer;
float: right;
}
#notes-form button:hover {
background: var(--accent);
color: var(--surface);
}
#notes-form button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* =========================
MOBILE
========================= */
@media (max-width: 600px) {
#notes-form {
max-width: 100%;
}
}

View File

@@ -0,0 +1,502 @@
#updated{
font-size: .76rem;
color: var(--muted);
margin: .45rem 0 0;
text-align: right;
}
.sidenote,
.marginnote{
float: right;
width: var(--margin);
margin-right: calc(-1 * ((100vi - var(--content)) / 2));
padding-right: var(--gutter);
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
margin-top: .3rem;
margin-bottom: .6rem;
font-size: .95rem;
line-height: 1.35;
color: var(--note-color);
background: var(--note-bg);
box-sizing: border-box;
}
.sidenote,
.marginnote{
display: block;
clear: right;
}
.sidenote + .sidenote,
.sidenote + .marginnote,
.marginnote + .sidenote,
.marginnote + .marginnote{
margin-top: .4rem;
}
.footnote-sidenote::before{
content: attr(data-fn) " ";
font-size: 0.85em;
vertical-align: super;
margin-right: 0.2rem;
opacity: 0.85;
}
body{ counter-reset: sidenote-counter; }
.sidenote-number:after{
counter-increment: sidenote-counter;
content: counter(sidenote-counter);
font-size: .85em;
vertical-align: super;
margin-left: .15rem;
}
.margin-toggle{
position: absolute;
opacity: 0;
pointer-events: none;
}
.fullwidth{
display: block;
position: relative;
left: 50%;
transform: translateX(-50%);
height: auto;
margin: 1.25rem 0 1.75rem;
width: 100%;
max-width: min(
calc(var(--content) + var(--bleed) * 2),
var(--fullwidth-cap),
calc(100vw - 2 * var(--body-pad))
);
}
.figure .fullwidth{ width: inherit; }
.figure figcaption{
text-align: center; font-size: .95rem; color: #666; margin-top: .4rem;
}
.post-date{
color: var(--muted);
font-size: .86em;
margin-left: 8px;
}
.post-tag{
float: right;
display: inline-block;
background-color: var(--chip-bg);
color: var(--chip-fg);
border: 1px solid color-mix(in oklab, var(--border) 78%, transparent);
border-radius: 999px;
padding: 0.08rem 0.5rem;
margin-left: 6px;
font-size: 0.8em;
line-height: 1.7;
}
.filetags {
margin-top: .5rem;
display: flex;
flex-wrap: wrap;
gap: .3rem .4rem;
font-size: .9rem;
color: #666;
}
.filetags .tag {
display: inline-block;
padding: .1rem .45rem;
border-radius: 999px;
background: var(--chip-bg);
color: var(--chip-fg);
border: 1px solid color-mix(in oklab, var(--border) 78%, transparent);
line-height: 1.6;
}
.figure figcaption{ color: var(--muted); }
.org-src-container{
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: none;
overflow: hidden;
background: var(--code-bg);
}
:not(pre) > code{
border: 1px solid var(--border);
background-color: var(--code-bg);
color: var(--fg);
border-radius: 5px;
padding: 0.05rem 0.28rem;
}
.theme-toggle {
border: 1px solid var(--border);
background: color-mix(in oklab, var(--surface-soft) 82%, transparent);
color: var(--fg);
min-height: 2.25rem;
padding: 0 0.75rem;
border-radius: 7px;
cursor: pointer;
font: inherit;
font-size: 0.9rem;
font-weight: 750;
transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
background-color: color-mix(in oklab, var(--accent) 12%, transparent);
color: var(--heading);
border-color: color-mix(in oklab, var(--accent) 42%, var(--border));
outline: 0;
}
.web-logo {
position: absolute;
top: 0.75rem;
left: 1rem;
z-index: 1000;
width: 10%;
padding: .25rem;
border-radius: 6px;
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.sidenote .mn-fig,
.marginnote .mn-fig{
margin: 0;
}
.sidenote .mn-img,
.marginnote .mn-img{
display: block;
max-width: 100%;
height: auto;
border: 1px solid var(--border, #d7d7d7);
border-radius: 6px;
background: var(--bg);
}
.sidenote .mn-fig figcaption,
.marginnote .mn-fig figcaption{
margin-top: .35rem;
font-size: .85rem;
color: var(--muted, #666);
line-height: 1.35;
}
.sidenote img {
margin-top: 0.35rem;
display: block;
}
.countdown-wrap {
display: flex;
justify-content: center;
align-items: center;
padding: 1em 0;
font-family: system-ui, sans-serif;
font-size: 1.2rem;
color: var(--fg, #222);
background: var(--bg-alt, transparent);
text-align: center;
}
time.countdown {
font-weight: 600;
color: var(--accent, #2a7fff);
font-variant-numeric: tabular-nums;
letter-spacing: 0.02em;
padding: 0.25em 0.6em;
border-radius: 0.5em;
background: color-mix(in srgb, var(--accent, #2a7fff) 10%, transparent);
box-shadow: 0 0 8px rgba(0,0,0,0.1);
transition: color 0.3s ease, background 0.3s ease;
}
time.countdown.expired {
color: #999;
background: none;
font-weight: 500;
text-decoration: line-through;
}
/* SEARCH */
#search-input {
width: 100%;
min-height: 2.25rem;
padding: 0.35rem 0.7rem;
font-size: 0.9rem;
border: 1px solid var(--border);
border-radius: 7px;
font-family: var(--font-body);
font-weight: 450;
background-color: var(--surface);
color: var(--fg);
}
#search-btn {
display: inline-grid;
place-items: center;
flex: 0 0 2.25rem;
width: 2.25rem;
height: 2.25rem;
background: color-mix(in oklab, var(--surface-soft) 82%, transparent);
border: 1px solid var(--border);
border-radius: 7px;
color: var(--fg);
cursor: pointer;
font-size: 0.95rem;
line-height: 1;
}
#search-input:focus,
#search-btn:focus-visible {
outline: 0;
border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 16%, transparent);
}
@media (max-width: 700px) {
#search-input {
display: none;
}
#search-btn {
font-size: 1rem;
}
}
.site-actions {
position: relative;
}
.search-inline-panel {
position: absolute;
top: calc(100% + 0.55rem);
right: 0;
width: min(38rem, calc(100vw - 2rem));
max-height: min(64vh, 34rem);
display: none;
grid-template-rows: auto minmax(0, 1fr) auto;
overflow: hidden;
background: color-mix(in oklab, var(--surface) 94%, var(--bg));
border: 1px solid color-mix(in oklab, var(--border) 78%, var(--fg));
border-radius: 8px;
box-shadow:
0 18px 56px rgba(0, 0, 0, 0.22),
0 2px 12px rgba(0, 0, 0, 0.12);
z-index: 1000;
}
.site-actions.search-inline-open .search-inline-panel {
display: grid;
}
.search-pane-meta {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
padding: 0.7rem 1rem 0.55rem;
border-bottom: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
}
.search-pane-meta h2 {
margin: 0;
color: var(--fg);
font-size: 0.95rem;
line-height: 1.2;
}
#search-pane-count {
color: var(--muted);
font-size: 0.78rem;
line-height: 1.35;
}
.search-pane-results {
min-height: 8rem;
overflow-y: auto;
overscroll-behavior: contain;
padding: 0.45rem;
}
.search-result {
display: grid;
gap: 0.26rem;
padding: 0.7rem 0.8rem;
border: 1px solid transparent;
border-radius: 7px;
color: inherit;
cursor: pointer;
text-decoration: none;
}
.search-result:hover,
.search-result.active {
background: var(--accent-bg);
border-color: color-mix(in oklab, var(--accent) 28%, var(--border));
text-decoration: none;
}
.search-result-title {
color: var(--fg);
font-weight: 600;
font-size: 0.95rem;
line-height: 1.25;
}
.search-result-preview {
color: var(--muted);
font-size: 0.82rem;
line-height: 1.35;
}
.search-result-path {
color: color-mix(in oklab, var(--muted) 82%, var(--accent));
font-size: 0.72rem;
line-height: 1.25;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.search-empty {
display: grid;
min-height: 9rem;
place-items: center;
padding: 1rem;
color: var(--muted);
text-align: center;
font-size: 0.9rem;
}
.search-pane-help {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
padding: 0.65rem 0.8rem;
border-top: 1px solid var(--border);
color: var(--muted);
background: color-mix(in oklab, var(--surface-soft) 82%, transparent);
font-size: 0.72rem;
}
.search-pane-help span {
padding: 0.22rem 0.45rem;
border: 1px solid var(--border);
border-radius: 5px;
background: var(--surface);
}
mark {
background: rgba(255, 230, 150, 0.8);
color: inherit;
padding: 0 0.15em;
border-radius: 3px;
}
.search-result.active mark {
background: rgba(255, 230, 150, 0.9);
}
@media (max-width: 700px) {
.site-actions.search-inline-open {
flex-wrap: wrap;
}
.site-actions.search-inline-open .site-search {
display: block;
order: 1;
flex: 1 1 calc(100% - 2.75rem);
min-width: 0;
}
.site-actions.search-inline-open #search-input {
display: block;
}
.site-actions.search-inline-open #search-btn,
.site-actions.search-inline-open .theme-toggle {
order: 2;
}
.search-inline-panel {
position: static;
order: 3;
flex: 1 1 100%;
width: 100%;
max-height: min(58vh, 30rem);
}
.search-pane-results {
min-height: 7rem;
}
}
@media (max-width: 560px) {
.search-pane-meta {
align-items: flex-start;
flex-direction: column;
gap: 0.2rem;
}
}
/* Table of contents */
#table-of-contents{
float: left;
width: var(--margin);
margin-left: calc(-1 * ((100vi - var(--content)) / 2));
padding-left: var(--gutter);
box-sizing: border-box;
position: sticky;
top: 5.5rem;
max-height: calc(100vh - 6rem);
overflow: auto;
font-size: .95rem;
border-right: 1px solid var(--border, #d7d7d7);
padding-top: .25rem;
}
#table-of-contents > h2{
margin: 0 0 .5rem;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: .02em;
color: var(--muted, #666);
}
#text-table-of-contents ul{
list-style: none;
margin: 0;
padding-left: 0;
}
#text-table-of-contents li{
margin: .25rem 0;
}
#text-table-of-contents a{
text-decoration: none;
}
#text-table-of-contents a:hover{
text-decoration: underline;
}
#text-table-of-contents ul ul { margin-left: .75rem; opacity: .9; }
h2[id], h3[id], h4[id] { scroll-margin-top: 6.5rem; }
#text-table-of-contents a.is-active{
text-decoration: underline;
background-color: var(--active-toc);
}

View File

@@ -0,0 +1,95 @@
.org-comment { color: #b22222; }
.org-string { color: #8b2252; }
.org-keyword { color: #a020f0; }
.org-builtin { color: #483d8b; }
.org-constant { color: #008b8b; }
.org-function-name { color: #0000ff; }
.org-variable-name { color: sienna; }
.org-type { color: #228b22; }
.org-preprocessor { color: #483d8b; }
.org-doc { color: #8b2252; }
.org-warning { color: #ff8c00; font-weight: 700; }
:root[data-theme="dark-academia"] {
--syntax-comment: #a97861;
--syntax-string: #c99572;
--syntax-keyword: #d6b566;
--syntax-builtin: #b99b63;
--syntax-constant: #7fb092;
--syntax-function: #e8cf91;
--syntax-variable: #d0a35c;
--syntax-type: #8fbf9f;
--syntax-warning: #d58a55;
}
:root[data-theme="dark-academia"] .org-comment { color: var(--syntax-comment); }
:root[data-theme="dark-academia"] .org-string { color: var(--syntax-string); }
:root[data-theme="dark-academia"] .org-keyword { color: var(--syntax-keyword); }
:root[data-theme="dark-academia"] .org-builtin { color: var(--syntax-builtin); }
:root[data-theme="dark-academia"] .org-constant { color: var(--syntax-constant); }
:root[data-theme="dark-academia"] .org-function-name { color: var(--syntax-function); }
:root[data-theme="dark-academia"] .org-variable-name { color: var(--syntax-variable); }
:root[data-theme="dark-academia"] .org-type { color: var(--syntax-type); }
:root[data-theme="dark-academia"] .org-preprocessor { color: var(--syntax-builtin); }
:root[data-theme="dark-academia"] .org-doc { color: var(--syntax-string); }
:root[data-theme="dark-academia"] .org-warning { color: var(--syntax-warning); }
:not(pre) > code{
padding: 2px 5px; margin: 0 1px;
border: 1px solid var(--border); border-radius: 3px;
background-clip: padding-box;
color: var(--fg); font-size: 80%;
}
pre {
background-color: var(--bg);
}
.org-src-container{
border: 1px solid var(--border);
box-shadow: 3px 3px 3px color-mix(in oklab, #000 8%, transparent);
font-family: Lucida Console, monospace;
font-size: 80%;
margin: 1em auto;
padding: .1em .5em;
position: relative;
}
.org-src-container > pre{ overflow: auto; }
.org-src-container > pre:before{
display: block; position: absolute; top: 0; right: 0;
background-color: var(--surface-soft); color: var(--fg);
padding: 0 .5em; border-bottom-left-radius: 8px; border: 0;
font-size: 80%;
}
.org-src-container > pre.src-bash:before { content: "bash"; }
.org-src-container > pre.src-sh:before { content: "sh"; }
.org-src-container > pre.src-shell:before { content: "shell"; }
.org-src-container > pre.src-python:before { content: "Python"; }
.org-src-container > pre.src-emacs-lisp:before { content: "Emacs Lisp"; }
.org-src-container > pre.src-js:before,
.org-src-container > pre.src-javascript:before { content: "Javascript"; }
.org-src-container > pre.src-typescript:before { content: "Typescript"; }
.org-src-container > pre.src-html:before { content: "HTML"; }
.org-src-container > pre.src-css:before { content: "CSS"; }
.org-src-container > pre.src-c:before { content: "C"; }
.org-src-container > pre.src-cpp:before { content: "C++"; }
.org-src-container > pre.src-java:before { content: "Java"; }
.org-src-container > pre.src-rust:before { content: "Rust"; }
.org-src-container > pre.src-R:before { content: "R"; }
.copy-btn{
position: absolute; top: .4em; right: .4em;
background-color: var(--code-bg); color: var(--heading);
border: 1px solid var(--heading); border-radius: 4px;
padding: .2em .6em; font-size: .8rem; cursor: pointer; z-index: 10;
transition: background-color .3s;
}
.copy-btn:hover{ background-color: var(--heading); color: var(--code-bg); }
pre.src::before{ content: none !important; }
pre.src{
padding: 1.5em 1em 1em;
font-family: "Fira Mono","Courier New",monospace;
font-size: .9rem; line-height: 1.4;
overflow-x: auto; white-space: pre-wrap;
}