summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-27 22:05:06 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-27 22:05:06 +0100
commit0030534b0106f201a978c0c9dca9e0579c2b9aef (patch)
tree36ae4572b0828bb981619bceff136a302fc92f81
parent083b58e0a40858e2277f4bd101ffd54097f01da0 (diff)
Book Marx: Improve formatting.
-rw-r--r--src/mulk/benki/book_marx.clj5
-rw-r--r--static/style/bookmarx.css10
2 files changed, 14 insertions, 1 deletions
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;
+}