~edwargix/git.sr.ht

142b8fd1723b9de36364ef334bb339edba01cce5 — Drew DeVault 6 years ago a4ca80b
accessibility improvements following core changes
3 files changed, 14 insertions(+), 19 deletions(-)

M gitsrht/templates/repo.html
M gitsrht/templates/utils.html
M scss/main.scss
M gitsrht/templates/repo.html => gitsrht/templates/repo.html +8 -8
@@ 24,15 24,15 @@
      class="nav-link {% if view == title or view in alternates %}active{% endif %}"
      href="{{ path }}">{{ title }}</a>
    {% endmacro %}
    <h2>
      <a href="{{ url_for("public.user_index",
        username=owner.username) }}"
      >{{owner.canonical_name}}</a>/{{repo.name}}
      {% if repo.visibility.value != 'public' %}
      <small class="text-muted">{{repo.visibility.value}}</small>
      {% endif %}
    </h2>
    <ul class="nav nav-tabs">
      <h2>
        <a href="{{ url_for("public.user_index",
          username=owner.username) }}"
        >{{owner.canonical_name}}</a>/{{repo.name}}
        {% if repo.visibility.value != 'public' %}
        <small class="text-muted">{{repo.visibility.value}}</small>
        {% endif %}
      </h2>
      <li class="nav-item">
        {{link(url_for("repo.summary",
          owner=repo.owner.canonical_name,

M gitsrht/templates/utils.html => gitsrht/templates/utils.html +6 -5
@@ 45,11 45,12 @@ endif %}{% endfor %}
  {% else %}
  {{c.author.name}}
  {% endif %}
  <a
    id="log-{{c.id}}"
    href="#log-{{c.id}}"
    class="text-muted pull-right"
  >{{ commit_time(c) | date }}</a>
  <small class="pull-right">
    <a
      id="log-{{c.id}}"
      href="#log-{{c.id}}"
    >{{ commit_time(c) | date }}</a>
  </small>

  {% if parents and any(c.parents) %}
  <span style="margin-left: 0.5rem">

M scss/main.scss => scss/main.scss +0 -6
@@ 10,12 10,6 @@
  margin-left: 1rem;
}

.header-extension {
  margin-top: -1rem;
  margin-bottom: 1rem;
  background: #ddd;
}

pre {
  padding-left: 0;
  padding-right: 0;