~edwargix/git.sr.ht

57ed00505aa190957d81690c0c9b758184a46302 — Drew DeVault 6 years ago 3585418
Split up columns more, gray stuff out
2 files changed, 11 insertions(+), 7 deletions(-)

M gitsrht/templates/tree.html
M scss/main.scss
M gitsrht/templates/tree.html => gitsrht/templates/tree.html +5 -1
@@ 28,7 28,11 @@
      </div>
      <div class="commit">
        {% if entry.commit %}
        <a href="#">{{trim_commit(entry.commit.message)}}</a> &mdash;
        <a href="#">{{trim_commit(entry.commit.message)}}</a>
        {% endif %}
      </div>
      <div class="date">
        {% if entry.commit %}
        {{ commit_time(entry.commit) | date }}
        {% endif %}
      </div>

M scss/main.scss => scss/main.scss +6 -6
@@ 19,7 19,7 @@
.tree-list {
  display: grid;
  // mode name
  grid-template-columns: auto minmax(1fr,auto) 1fr auto;
  grid-template-columns: auto minmax(1fr,auto) 1fr auto auto;
  font: monospace;

  svg {


@@ 34,8 34,8 @@
    color: $gray-900;
  }

  .commit, .commit a {
    color: $gray-600;
  .mode, .commit, .commit a, .date, .size {
    color: $gray-700;
  }

  & > div {


@@ 50,13 50,13 @@
      text-align: center;
    }

    @for $i from 1 through 4 {
      &:nth-child(4n+#{$i}) {
    @for $i from 1 through 5 {
      &:nth-child(5n+#{$i}) {
        grid-column-start: $i;
      }

      // Striped rows
      &:nth-child(8n+#{$i}) {
      &:nth-child(10n+#{$i}) {
        background: rgba(0,0,0,.05);
      }
    }