style: add editorconfig and re-format style.css
Alan Pearce alan@alanpearce.eu
Mon, 31 Mar 2025 10:40:56 +0200
2 files changed, 31 insertions(+), 10 deletions(-)
A .editorconfig
@@ -0,0 +1,12 @@+root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[{justfile,go.mod,go.sum,*.go,.gitmodules}] +indent_style = tab
M static/style.css → static/style.css
@@ -8,9 +8,12 @@ --gray: #6a6a6a; --dark: #444; --darker: #222; - --sans-font: -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", sans-serif; - --display-font: -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", sans-serif; - --mono-font: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', 'Roboto Mono', Menlo, Consolas, monospace; + --sans-font: -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", + sans-serif; + --display-font: -apple-system, BlinkMacSystemFont, "Inter", "Roboto", + "Segoe UI", sans-serif; + --mono-font: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", + "Roboto Mono", Menlo, Consolas, monospace; } @media (prefers-color-scheme: dark) { @@ -55,13 +58,16 @@ padding: 0 13px; margin: 40px auto; } -main, footer { +main, +footer { font-size: 1rem; padding: 0; line-height: 160%; } -header h1, h2, h3 { +header h1, +h2, +h3 { font-family: var(--display-font); } @@ -81,7 +87,8 @@ main h2 { font-size: 18px; } -main h2, h3 { +main h2, +h3 { padding: 20px 0 15px 0; } @@ -180,7 +187,8 @@ .log pre { white-space: pre-wrap; } -.mode, .size { +.mode, +.size { font-family: var(--mono-font); } .size { @@ -219,16 +227,17 @@ .diff-stat { padding: 1rem 0 1rem 0; } -.commit-hash, .commit-email { +.commit-hash, +.commit-email { font-family: var(--mono-font); } .commit-email:before { - content: '<'; + content: "<"; } .commit-email:after { - content: '>'; + content: ">"; } .commit {