From bf369ab20c617bbdaa028b0e9f287297f73662f4 Mon Sep 17 00:00:00 2001 From: Alexander Henderson Date: Tue, 4 Jun 2024 20:30:15 -0400 Subject: [PATCH] hey git new shiz --- src/assets/styles/tailwind.css | 27 +++++++++++++++++++++- src/content/post/upgradingforgejo/index.md | 1 + 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/assets/styles/tailwind.css b/src/assets/styles/tailwind.css index 2308dc3..a00e3a8 100644 --- a/src/assets/styles/tailwind.css +++ b/src/assets/styles/tailwind.css @@ -148,4 +148,29 @@ .prompt-danger { border-left-color: var(--prompt-danger-border); background-color: var(--prompt-danger-bg); -} \ No newline at end of file +} + +/* pre { + @apply rounded-md pl-8; +} + +pre code { + @apply block leading-tight p-2 pl-1; + border-left: 1px solid rgba(115, 138, 148, 0.4); + counter-reset: step; + counter-increment: step 0; +} + +pre code .line { + @apply relative; +} + +pre code .line::before { + @apply absolute overflow-hidden w-7 h-4 -left-9 top-0 text-right; + content: counter(step); + counter-increment: step; + color: rgba(115, 138, 148, 0.4); + font-size: 0.7rem; + border-right-width: 0.1rem; + border-right-color: rgba(115, 138, 148, 0.4); +} */ \ No newline at end of file diff --git a/src/content/post/upgradingforgejo/index.md b/src/content/post/upgradingforgejo/index.md index 34a257d..19dff30 100644 --- a/src/content/post/upgradingforgejo/index.md +++ b/src/content/post/upgradingforgejo/index.md @@ -47,6 +47,7 @@ services: ports: - '3000:3000' - '222:22' + ``` file="docker-compose.yml"