From 0030534b0106f201a978c0c9dca9e0579c2b9aef Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 27 Feb 2012 22:05:06 +0100 Subject: Book Marx: Improve formatting. --- src/mulk/benki/book_marx.clj | 5 ++++- static/style/bookmarx.css | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 static/style/bookmarx.css diff --git a/src/mulk/benki/book_marx.clj b/src/mulk/benki/book_marx.clj index 1883f3f..000e9c8 100644 --- a/src/mulk/benki/book_marx.clj +++ b/src/mulk/benki/book_marx.clj @@ -28,6 +28,9 @@ {:head (list [:link {:rel "stylesheet" :href (resolve-uri "/style/hammer-and-sickle.css") + :type "text/css"}] + [:link {:rel "stylesheet" + :href (resolve-uri "/style/bookmarx.css") :type "text/css"}])}) (def bookmarx-submission-page {:head (list @@ -81,7 +84,7 @@ [:span {:class "bookmark-date"} (escape-html (format-date (:date mark)))] [:span {:class "bookmark-owner"} " by " (escape-html (:first_name mark))]] - [:p {:class "bookmark-description"} + [:div {:class "bookmark-description"} (htmlize-description (:description mark))]])]])))) (defpage "/marx/tags" {} diff --git a/static/style/bookmarx.css b/static/style/bookmarx.css new file mode 100644 index 0000000..f200c9d --- /dev/null +++ b/static/style/bookmarx.css @@ -0,0 +1,10 @@ +.bookmark-date-and-owner { + font-style: oblique; + color: #555; + /* text-indent: 1.5em; */ + /* margin-left: 1.5em; */ +} + +.bookmark-description { + margin-left: 1.5em; +} -- cgit v1.2.3