Fix code formatting in-/outside figures

This commit is contained in:
cryptogopher 2023-09-26 17:37:26 +02:00
parent 9d4ba7bb30
commit d1f747c3de

View File

@ -41,7 +41,7 @@ h3 {
p, ul { p, ul {
line-height: 1.35rem; line-height: 1.35rem;
} }
p code, ul code { :not(pre) > code {
background-color: #9f54aa; background-color: #9f54aa;
border-radius: 0.2rem; border-radius: 0.2rem;
color: white; color: white;
@ -53,7 +53,7 @@ p code, ul code {
figure { figure {
border-radius: 0.2rem; border-radius: 0.2rem;
margin: 0; margin: 0.5rem 0 0.5rem 0;
} }
figcaption { figcaption {
background-color: #f0f0f0; background-color: #f0f0f0;
@ -83,13 +83,10 @@ pre > code {
color: #ffc61e; color: #ffc61e;
padding: 0; padding: 0;
} }
pre > code.language-bash {
/* color: #18e418; */
color: #54d771;
}
code { code {}
}
code.language-bash { color: #54d771; /* #18e418; */ }
code.language-ruby span.k, code.language-ruby span.k,
code.language-ruby span.nc, code.language-ruby span.nc,