Fix dark theme for code embeddings

Signed-off-by: Jacki <jacki@thejackimonster.de>
This commit is contained in:
Jacki 2025-07-19 01:50:48 +02:00
commit d615019d08
No known key found for this signature in database
GPG key ID: B404184796354C5E
2 changed files with 17 additions and 11 deletions

View file

@ -113,6 +113,12 @@ dd {margin-left: 1.5em;}
pre{background-color: rgb(238, 238, 238); padding: 10px; margin: 10px; overflow: auto;}
@media (prefers-color-scheme: dark) {
pre {
background: rgb(38, 38, 38);
}
}
/* Quotes */
blockquote {
margin: 20px;

View file

@ -1,18 +1,18 @@
{% if GITHUB_URL %}
<style type="text/css">
div.github_url {
position: absolute;
border: 0;
background: black;
padding: 2px 8px;
width: 120px;
}
</style>
<style type="text/css">
div.github_url {
position: absolute;
border: 0;
background: black;
padding: 2px 8px;
width: 120px;
}
</style>
<a href="{{ GITHUB_URL }}">
{% if GITHUB_POSITION != "left" %}
<div class="github_url" style="top: 0; right: 0; border-radius: 0 0 0 8px;">Fork me on GitHub</div>
<div class="github_url" style="top: 0; right: 0; border-radius: 0 0 0 8px;">Fork me on GitHub</div>
{% else %}
<div class="github_url" style="top: 0; left: 0; border-radius: 0 0 8px 0;">Fork me on GitHub</div>
<div class="github_url" style="top: 0; left: 0; border-radius: 0 0 8px 0;">Fork me on GitHub</div>
{% endif %}
</a>
{% endif %}