From a7d8b2f0e8af3b612a8852ac52396d911048627b Mon Sep 17 00:00:00 2001 From: Hyomin Koo Date: Thu, 27 Jun 2024 14:03:22 +0000 Subject: [PATCH] design: style of language name in a code block --- src/styles/prose.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/styles/prose.css b/src/styles/prose.css index 73539f9..8dd9d06 100644 --- a/src/styles/prose.css +++ b/src/styles/prose.css @@ -97,14 +97,14 @@ .content pre[data-language]::before { content: attr(data-language); display: block; - width: 100%; - text-align: right; - font-size: 0.75em; + text-align: left; + font-size: 1em; position: sticky; - margin-top: -2em; top: -2em; - padding-right: 1em; - @apply text-gray-400; + left: 0; + margin-top: -2em; + padding-left: 1em; + @apply text-gray-400 font-head; } .content pre {