~edwargix/git.sr.ht

f8ed55f407a7273084368ecc2fe87e0a13d65496 — Drew DeVault 3 years ago eec1d96
Various improvements for dark theme
2 files changed, 14 insertions(+), 4 deletions(-)

M gitsrht/templates/utils.html
M scss/main.scss
M gitsrht/templates/utils.html => gitsrht/templates/utils.html +3 -3
@@ 143,12 143,12 @@ endif %}{% endfor %}
</div>
{% if not skip_body %}
{% if full_body %}
<pre>{{c.message}}
<pre class="commit">{{c.message}}
{%- if diff %}
{{diffstat(diff, anchor=c.oid.hex + "-")}}{% endif -%}
</pre>
{% else %}
<pre>{{ trim_commit(c.message) }}</pre>
<pre class="commit">{{ trim_commit(c.message) }}</pre>
{% endif %}
{% endif %}
{% endmacro %}


@@ 156,7 156,7 @@ endif %}{% endfor %}
{% macro commit_diff(repo, commit, diff, anchor="", target_blank=False) %}
{# God, working with <pre> tags is such a fucking mess #}
{% for patch in diff %}
<pre style="margin-bottom: 0;"
<pre style="margin-bottom: 0; background: transparent; padding: 0;"
>{#
  #}{{patch.delta.status_char()}} {% if parent %}<a
   href="{{url_for("repo.tree",

M scss/main.scss => scss/main.scss +11 -1
@@ 10,7 10,7 @@
  margin-left: 1rem;
}

pre {
pre.commit {
  padding-left: 0;
  padding-right: 0;
  background: transparent;


@@ 336,6 336,16 @@ img {
    input[type="radio"]:checked + .event {
      background: lighten($info, 45) !important;
    }

    @media(prefers-color-scheme: dark) {
      input[type="radio"]:checked ~ .event {
        background: #131a3c !important;
      }

      input[type="radio"]:checked + .event {
        background: #003038 !important;
      }
    }
  }
}