From 6366375ef2de0a35e00e428af62157fea0239616 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 1 Feb 2024 03:18:19 -0600 Subject: [PATCH] Tune title padding, add title with sudo micro cmd --- .../blog/bluetooth-pairing-while-dual-booting.mdx | 2 +- src/styles/code.scss | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/content/blog/bluetooth-pairing-while-dual-booting.mdx b/src/content/blog/bluetooth-pairing-while-dual-booting.mdx index f573112..5bffe63 100644 --- a/src/content/blog/bluetooth-pairing-while-dual-booting.mdx +++ b/src/content/blog/bluetooth-pairing-while-dual-booting.mdx @@ -129,7 +129,7 @@ $ sudo find /var/lib/bluetooth -name info Once you've found the file, open it with `sudo` and your favorite text editor. You'll see a file that looks like this: -```ini /48F826B9E93EAF7B9494C951A5E47A33/#purple +```ini /48F826B9E93EAF7B9494C951A5E47A33/#purple title="sudo micro /var/lib/bluetooth/BC:C7:46:9B:D0:1E/AC:BF:71:66:FE:B2/info" [General] Name=Maestro Class=0x240418 diff --git a/src/styles/code.scss b/src/styles/code.scss index a7ae93a..8e8d1c2 100644 --- a/src/styles/code.scss +++ b/src/styles/code.scss @@ -40,16 +40,22 @@ a > code { div[data-rehype-pretty-code-fragment] { div[data-rehype-pretty-code-title] { + @apply bg-zinc-400/10 drop-shadow-md; + padding-top: 0.25em; text-align: center; } - // Horizontal padding is applied on a line level to ensure highlighting is not affected. - padding: 1em 0; + background-color: #161616 !important; > pre { > code { + padding: 0.5em 0; + > span[data-line] { + // Horizontal padding is applied on a line level to ensure highlighting is not affected. padding: 0 1em; + + // Line level highlighting &[data-highlighted-line] { background: rgba(255, 255, 255, 0.1); }