all repos — elgit @ 60298a69538ccdda417613a09e5acbd917bfc53a

fork of legit: web frontend for git, written in go

git: rework diff to fetch initial commit

commit

60298a69538ccdda417613a09e5acbd917bfc53a

parent

e4d12fc667c9830dd5f08f827b2a70adff58a09b

1 file changed, 36 insertions(+), 1 deletion(-)

changed files
M static/style.cssstatic/style.css
@@ -147,7 +147,9 @@ white-space: pre-wrap;
} .diff { - padding-top: 1rem; + margin: 1rem 0 1rem 0; + padding: 1rem 0 1rem 0; + border-bottom: 1.5px solid var(--medium-gray); } .diff pre {
@@ -162,6 +164,14 @@ .commit-email {
color: var(--gray); } +.commit-email:before { + content: '<'; +} + +.commit-email:after { + content: '>'; +} + .commit pre { padding-bottom: 1rem; white-space: pre-wrap;
@@ -182,6 +192,31 @@ }
.diff-noop { color: var(--gray); +} + +.ref { + font-family: var(--display-font); + font-size: 14px; + color: var(--gray); + display: inline-block; + padding-top: 0.7em; +} + +.refs { + display: grid; + grid-template-columns: 1fr 1fr; + align-items: center; +} + +.line-numbers { + white-space: pre-line; +} + +.file-wrapper { + display: flex; + flex-direction: row; + grid-template-columns: 1rem minmax(0, 1fr); + gap: 1rem; } @media (max-width: 600px) {