mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix dark theme for code embeddings
Signed-off-by: Jacki <jacki@thejackimonster.de>
This commit is contained in:
parent
7f4fcc4b00
commit
d615019d08
2 changed files with 17 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
22
pelican/themes/notmyidea/templates/github.html
vendored
22
pelican/themes/notmyidea/templates/github.html
vendored
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue