2024-05-26 01:44:27 +00:00
|
|
|
:not(pre)>code {
|
2024-05-21 01:05:51 +00:00
|
|
|
font-family: "Iosevka Fixed Web", Iosevka, monospace;
|
2024-05-26 01:44:27 +00:00
|
|
|
border: solid 1px var(--c-border-2);
|
2024-05-21 01:05:51 +00:00
|
|
|
padding: 0 0.25rem;
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
}
|
|
|
|
|
2024-05-26 01:44:27 +00:00
|
|
|
pre.astro-code {
|
|
|
|
padding: 1rem;
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
border: solid 1px var(--c-border-1);
|
|
|
|
font-size: 0.9rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre.astro-code>code {
|
|
|
|
counter-reset: step;
|
|
|
|
counter-increment: step 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre.astro-code>code .line::before {
|
|
|
|
content: counter(step);
|
|
|
|
counter-increment: step;
|
|
|
|
width: 1rem;
|
|
|
|
margin-right: 1.5rem;
|
|
|
|
display: inline-block;
|
|
|
|
text-align: right;
|
|
|
|
color: rgba(115, 138, 148, .4)
|
|
|
|
}
|
|
|
|
|
2024-05-21 01:05:51 +00:00
|
|
|
#blog p {
|
|
|
|
margin: 1rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#blog h2 {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
font-family: "Iosevka Etoile Web", serif;
|
|
|
|
font-weight: 900;
|
|
|
|
margin-top: 3rem;
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#blog li {
|
|
|
|
list-style-type: circle;
|
|
|
|
margin: 0.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#blog a {
|
|
|
|
text-decoration: underline;
|
|
|
|
color: #3b82f6;
|
|
|
|
}
|
2024-05-26 01:44:27 +00:00
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
|
|
|
.astro-code,
|
|
|
|
.astro-code span {
|
|
|
|
color: var(--shiki-dark) !important;
|
|
|
|
background-color: var(--shiki-dark-bg) !important;
|
|
|
|
/* Optional, if you also want font styles */
|
|
|
|
font-style: var(--shiki-dark-font-style) !important;
|
|
|
|
font-weight: var(--shiki-dark-font-weight) !important;
|
|
|
|
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
|
|
}
|
|
|
|
}
|