From a7016ecb9c08e36acf25a1a9aecd22cd465c28f0 Mon Sep 17 00:00:00 2001 From: ez-plugins Date: Mon, 18 May 2026 22:39:43 +0200 Subject: [PATCH] fix: docs styling --- docs/_config.yml | 2 + docs/assets/main.scss | 112 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 docs/assets/main.scss diff --git a/docs/_config.yml b/docs/_config.yml index e4caa5a..f9471a2 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -2,3 +2,5 @@ title: MC Plugin Update Notifier description: Multi-source update checker library for Minecraft plugins theme: minima markdown: kramdown +minima: + skin: dark diff --git a/docs/assets/main.scss b/docs/assets/main.scss new file mode 100644 index 0000000..8020320 --- /dev/null +++ b/docs/assets/main.scss @@ -0,0 +1,112 @@ +--- +--- +@import "minima"; + +:root { + --bg: #0b1220; + --surface: #111a2e; + --surface-2: #17233d; + --text: #dbe8ff; + --muted: #9cb4da; + --accent: #4ea1ff; + --accent-2: #78b8ff; + --border: #27416f; + --code-bg: #0d172a; + --code-border: #2d4f86; +} + +html, +body { + background: radial-gradient(circle at top right, #142a52 0%, var(--bg) 35%, #080d18 100%); + color: var(--text); +} + +.site-header, +.site-footer { + background: rgba(9, 15, 28, 0.85); + border-color: var(--border); +} + +.site-title, +.site-title:visited, +.page-link, +.page-link:visited { + color: var(--accent-2); +} + +.page-content { + background: rgba(12, 20, 36, 0.75); + border: 1px solid var(--border); + border-radius: 12px; + padding: 1.25rem; + box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); +} + +h1, +h2, +h3, +h4 { + color: #e7f0ff; +} + +a, +a:visited { + color: var(--accent); +} + +a:hover { + color: #9bcaff; +} + +p, +li { + color: var(--text); +} + +pre, +code { + font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "SFMono-Regular", Consolas, monospace; +} + +code { + background: rgba(78, 161, 255, 0.12); + border: 1px solid rgba(78, 161, 255, 0.3); + color: #d7eaff; + border-radius: 6px; + padding: 0.1rem 0.35rem; +} + +div.highlighter-rouge, +pre.highlight, +pre { + background: var(--code-bg) !important; + border: 1px solid var(--code-border); + border-radius: 10px; + box-shadow: inset 0 0 0 1px rgba(120, 184, 255, 0.08), 0 8px 24px rgba(4, 8, 18, 0.5); +} + +pre code { + background: transparent; + border: 0; + padding: 0; + color: #dcecff; +} + +.highlight .k, +.highlight .kd, +.highlight .kt, +.highlight .nt { + color: #8ec5ff; +} + +.highlight .s, +.highlight .s1, +.highlight .s2 { + color: #9ad7ff; +} + +.highlight .c, +.highlight .c1, +.highlight .cm { + color: #6f8bb8; +}