fix(css): Font size inconsistency in code snippets on iOS

- Added CSS rules to ensure consistent font size for code elements across iOS devices. This change addresses the font size imbalance issue reported in code snippets.

- Related issue: https://github.com/adityatelange/hugo-PaperMod/issues/828
This commit is contained in:
younsl 2024-11-19 08:52:52 +09:00
parent 2cc41d38a6
commit 9128274b02

View File

@ -118,6 +118,13 @@ table, th, td {
padding: 0.4rem; padding: 0.4rem;
} }
code {
text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
code:not(pre > code) { code:not(pre > code) {
padding: 0.1em 0.2em; padding: 0.1em 0.2em;
font-size: 90%; font-size: 90%;