From e20811ca76a1df2b23041696d4da637e2a4b6a03 Mon Sep 17 00:00:00 2001 From: Christian Mueller Date: Sun, 19 Jan 2014 13:49:55 +0100 Subject: [PATCH] table styles added --- resources/public/style.less | 13 ++++++++++++- src/NoteHub/views/pages.clj | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/resources/public/style.less b/resources/public/style.less index f2f55e1..7bad480 100644 --- a/resources/public/style.less +++ b/resources/public/style.less @@ -66,7 +66,7 @@ a:visited { font-size: 1em; background: @background; } -.landing-button, table, tr, td, textarea, fieldset { +.landing-button, textarea, fieldset { border: none; } .landing-button { @@ -166,3 +166,14 @@ textarea { h1, h2, h3, h4, h5, h6 { font-family: @header_font,'Noticia Text','PT Serif','Georgia'; } +table { + border-collapse: collapse; +} +th { + padding: 0.3em; + background-color: @background_halftone; +} +td { + border-top: 1px dotted @foreground_halftone; + padding: 0.3em; +} \ No newline at end of file diff --git a/src/NoteHub/views/pages.clj b/src/NoteHub/views/pages.clj index 35356f1..8683dd1 100644 --- a/src/NoteHub/views/pages.clj +++ b/src/NoteHub/views/pages.clj @@ -143,7 +143,7 @@ [:table#stats.helvetica.central-element (map #(when (% stats) - [:tr [:td (get-message %)] [:td (% stats)]]) + [:tr [:td (str (get-message %) ":")] [:td (% stats)]]) [:published :edited :publisher :views])]))) ; Resolving of a short url