From f9e7c27738608755d80d450252f1ca079551d02e Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 5 Dec 2019 16:57:05 -0500 Subject: [PATCH 1/1] further tweak style and fix indentation --- haunt.scm | 20 ++++++++++---------- static/style.css | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/haunt.scm b/haunt.scm index 51f3e02..f1fe078 100644 --- a/haunt.scm +++ b/haunt.scm @@ -211,16 +211,16 @@ (table (@ (class "post-list")) (tbody - ,@(map - (lambda (post) - (define (post-uri post) - (string-append "/" - (site-post-slug site post) ".html")) - `(tr - (td ,(aa (post-ref post 'title) (post-uri post))) - (td (small - ,(date->string (post-date post) my-date-format))))) - (take-up-to 10 (posts/reverse-chronological posts))))))) + ,@(map + (lambda (post) + (define (post-uri post) + (string-append "/" + (site-post-slug site post) ".html")) + `(tr + (td ,(aa (post-ref post 'title) (post-uri post))) + (td (small + ,(date->string (post-date post) my-date-format))))) + (take-up-to 10 (posts/reverse-chronological posts))))))) (define (index-page site posts) (make-page diff --git a/static/style.css b/static/style.css index d380c6a..f891207 100644 --- a/static/style.css +++ b/static/style.css @@ -52,7 +52,7 @@ h3 { } a { - color: #204a87; + color: #004caa; padding: 0.3em 0; text-decoration: underline #ccc; } @@ -103,7 +103,7 @@ em { } table td { - padding: 0.2em 0.3em; + padding: 0.125em 0.3em; } table td:first-child { padding-left: 0; @@ -118,10 +118,10 @@ table td:last-child { width: 100%; } .post-list tr:hover { - background: #f8f8f8; + background: #fafafa; } .post-list td { - padding: 0.3em; + padding: 0.25em 0; } .post-list td:nth-child(2) { text-align: right; -- 2.20.1