fix: safari webkit text scaling

This commit is contained in:
ae 2024-12-10 13:07:07 +02:00
parent bedc266fbf
commit 98dbd4d419
Signed by: ae
GPG Key ID: 995EFD5C1B532B3E

View File

@ -98,7 +98,7 @@ h1 {
object-position: center;
}
/* code snippets */
/* code blocks */
.content pre {
padding: 1rem;
border-radius: 0.3rem;
@ -106,10 +106,12 @@ h1 {
overflow-x: auto;
}
/* code block contents */
.content code {
font-size: 0.8rem;
}
/* inline code snippets */
p > code,
li > code {
background-color: var(--code);
@ -145,3 +147,11 @@ li > code {
.content ol li {
margin-bottom: 8px;
}
@media only screen and (max-device-width: 768px) {
/* attempted workaround for Safari not calculating rem units correctly */
html {
font-size: 90%;
-webkit-text-size-adjust: none;
}
}