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"