From c83b11d440094664b5612840cd9afc7e7737d18e Mon Sep 17 00:00:00 2001 From: Nayab Gauhar <93754299+Nayab-Gauhar@users.noreply.github.com> Date: Fri, 31 Oct 2025 20:14:53 +0530 Subject: [PATCH] Fix #5594: Align pre element with baseline grid using nudge system - Updated padding to use $spv-nudge for top padding and compensate at bottom - Adjusted margin-bottom to account for nudge value - This ensures the pre element aligns properly with the baseline grid --- scss/_base_code.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scss/_base_code.scss b/scss/_base_code.scss index 4effce1f1..bf363f1d5 100644 --- a/scss/_base_code.scss +++ b/scss/_base_code.scss @@ -60,10 +60,10 @@ $code-inline-padding: 0.25rem; background-color: $colors--theme--background-code; color: $colors--theme--text-default; display: block; - margin-bottom: $spv--x-large; + margin-bottom: $spv--x-large - $spv-nudge; margin-top: 0; overflow: auto; - padding: $spv--small $sph--large; + padding: $spv-nudge $sph--large ($spv--small - $spv-nudge); text-align: left; text-shadow: none; white-space: pre;