dotfiles

My PC Dotfiles & Website
commit 6712cb1597147eb4b2350866391ce898f421e073
parent 9dd43a94b41ddb39ee9c6eed3323240eb58e9c69
Author: maydayv7 <maydayv7@gmail.com>
Date:   Mon,  5 Jan 2026 02:39:53 +0530

fea(site/git): Improve rendering

Diffstat:

Mflake.lock | 6+++---
Msite/git/style.css | 53++++++++++++++++++++++++++++++++++++++++++++++++++++-
Msite/git/theme.nix | 26+++++++++-----------------
3 files changed, 64 insertions(+), 21 deletions(-)

diff --git a/flake.lock b/flake.lock @@ -747,11 +747,11 @@ ] }, "locked": { - "lastModified": 1767467845, - "narHash": "sha256-d1Q32zc3Lgclaipa7JcmaESQLEgjJnPzN0M/wS/fJ1U=", + "lastModified": 1767557231, + "narHash": "sha256-cXLrl1XCf3Mhz9UhCQxt0eZNcAOtejReiMAi/fTWn6s=", "owner": "maydayv7", "repo": "stagit", - "rev": "1a1d986a920a2ddd56e8db4c0ed039a50e8277b5", + "rev": "62010429c33b33ef1239638b202a745ea29e43a1", "type": "github" }, "original": { diff --git a/site/git/style.css b/site/git/style.css @@ -643,7 +643,7 @@ pre span.h { color: var(--diff-add); } -/* Markdown render */ +/* -- Markdown render -- */ #content h3 { margin-top: 1em; margin-bottom: 0.5em; @@ -651,3 +651,54 @@ pre span.h { padding-bottom: 0.2em; font-style: oblique; } + +/* GFM Alerts*/ +.admonition { + margin: 1.5em 0; + padding: 12px; + border-left: 3px solid var(--secondary); + background-color: var(--secondary-alpha-20); + border-radius: 0 3px 3px 0; + page-break-inside: avoid; + font-family: var(--font-main); +} + +.admonition .admonition-title { + margin: 0 0 8px 0; + color: var(--accent); + align-items: center; + display: flex; + font-size: 0.95em; + font-weight: bold; + text-transform: uppercase; + letter-spacing: 0.05em; +} + +.admonition > p:last-child { + margin-bottom: 0; +} + +.admonition .admonition-title::before { + margin-right: 8px; + font-size: 1.2em; +} + +.admonition.note .admonition-title::before { + content: "ℹ"; +} + +.admonition.tip .admonition-title::before { + content: ""; +} + +.admonition.important .admonition-title::before { + content: "!"; +} + +.admonition.warning .admonition-title::before { + content: ""; +} + +.admonition.danger .admonition-title::before { + content: ""; +} diff --git a/site/git/theme.nix b/site/git/theme.nix @@ -2,20 +2,8 @@ pkgs: let style = builtins.readFile ./style.css; mkTheme = - name: - { - bg, - fg, - fgDim, - border, - accent, - accentAlpha70, - secondary, - secondaryAlpha70, - diffAdd, - diffDel, - diffMod, - }: + name: colors: + with colors; pkgs.writeText "style-${name}.css" '' ${style} :root { @@ -23,15 +11,16 @@ let --fg: ${fg}; --fg-dim: ${fgDim}; --border: ${border}; - --border-subtle: rgba(255,255,255,0.05); + --border-subtle: rgba(255, 255, 255, 0.05); /* Theme Colors */ --accent: ${accent}; --accent-alpha-70: ${accentAlpha70}; --secondary: ${secondary}; + --secondary-alpha-20: ${secondaryAlpha20}; --secondary-alpha-70: ${secondaryAlpha70}; - --bg-hover: rgba(255,255,255,0.03); - --bg-code: rgba(0,0,0,0.2); + --bg-hover: rgba(255, 255, 255, 0.03); + --bg-code: rgba(0, 0, 0, 0.2); --diff-add: ${diffAdd}; --diff-del: ${diffDel}; --diff-mod: ${diffMod}; @@ -47,6 +36,7 @@ in accent = "#ff6266"; accentAlpha70 = "rgba(255, 98, 102, 0.7)"; secondary = "#23b0ff"; + secondaryAlpha20 = "rgba(35, 176, 255, 0.2)"; secondaryAlpha70 = "rgba(35, 176, 255, 0.7)"; diffAdd = "#23b0ff"; diffDel = "#ff6266"; @@ -61,6 +51,7 @@ in accent = "#23b0ff"; accentAlpha70 = "rgba(35, 176, 255, 0.7)"; secondary = "#ee72f1"; + secondaryAlpha20 = "rgba(238, 114, 241, 0.2)"; secondaryAlpha70 = "rgba(238, 114, 241, 0.7)"; diffAdd = "#23b0ff"; diffDel = "#ee72f1"; @@ -75,6 +66,7 @@ in accent = "#7b7b7b"; accentAlpha70 = "rgba(123, 123, 123, 0.7)"; secondary = "#e59c19"; + secondaryAlpha20 = "rgba(229, 156, 25, 0.2)"; secondaryAlpha70 = "rgba(229, 156, 25, 0.7)"; diffAdd = "#e59c19"; diffDel = "#7b7b7b";