Skip to content

Commit

Permalink
css: lose grid layout in refs
Browse files Browse the repository at this point in the history
  • Loading branch information
icyphox committed Dec 24, 2022
1 parent 08c49d4 commit 845cce8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
10 changes: 4 additions & 6 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,14 @@ a:hover {
padding-top: 0.7em;
}

.refs {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
}

.refs pre {
white-space: pre-wrap;
}

.refs strong {
padding-right: 1em;
}

.line-numbers {
white-space: pre-line;
-moz-user-select: -moz-none;
Expand Down
8 changes: 2 additions & 6 deletions templates/refs.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ <h3>branches</h3>
{{ range .branches }}
<div>
<strong>{{ .Name.Short }}</strong>
</div>
<div>
<a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a>
<a href="/{{ $name }}/log/{{ .Name.Short }}">log</a>
</div>
Expand All @@ -29,12 +27,10 @@ <h3>tags</h3>
{{ range .tags }}
<div>
<strong>{{ .Name }}</strong>
{{ if .Message }}
<pre>{{ .Message }}</pre>
</div>
<div>
<a href="/{{ $name }}/tree/{{ .Name }}/">browse</a>
<a href="/{{ $name }}/log/{{ .Name }}">log</a>
{{ if .Message }}
<pre>{{ .Message }}</pre>
</div>
{{ end }}
{{ end }}
Expand Down

0 comments on commit 845cce8

Please sign in to comment.