From b968e5fafee0d6b04e6db013a81813dc3398f7ee Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 27 Feb 2012 01:02:38 +0100 Subject: Book Marx: Add appropriate style sheet and background images. --- src/mulk/benki/book_marx.clj | 4 +- static/style/hammer-and-sickle.css | 100 +++++++++++++++++++++ .../style/hammerandsickle-yellow-on-red-bright.png | Bin 0 -> 6312 bytes static/style/hammerandsickle-yellow-on-red.png | Bin 0 -> 6359 bytes 4 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 static/style/hammer-and-sickle.css create mode 100644 static/style/hammerandsickle-yellow-on-red-bright.png create mode 100644 static/style/hammerandsickle-yellow-on-red.png diff --git a/src/mulk/benki/book_marx.clj b/src/mulk/benki/book_marx.clj index 6c01bcc..3832e88 100644 --- a/src/mulk/benki/book_marx.clj +++ b/src/mulk/benki/book_marx.clj @@ -23,7 +23,9 @@ (def users (cq/table :users)) -(def bookmarx-list-page {}) +(def bookmarx-list-page + {:head (list + [:link {:rel "stylesheet", "href" "/style/hammer-and-sickle.css"}])}) (def bookmarx-submission-page {}) (defn restrict-visibility [table user] diff --git a/static/style/hammer-and-sickle.css b/static/style/hammer-and-sickle.css new file mode 100644 index 0000000..40db121 --- /dev/null +++ b/static/style/hammer-and-sickle.css @@ -0,0 +1,100 @@ +/* Copyright 2004, 2012, Matthias Andreas Benkard. */ + +/* MAIN STUFF */ + +body,html { + color: black; + background-color: #ff0000; + background-image: url(hammerandsickle-yellow-on-red.png); + background-position: 0 0; + background-repeat: no-repeat; + background-attachment: fixed; +} + +a { + color: blue; + background-color: inherit; +} + +a:visited { + color: navy; /* dark blue */ + background-color: inherit; +} + +a:active { + color: #bbbbff; /* light blue */ + background-color: inherit; +} + +#rtnv h3 { + font-size: 1em; +} + +#stylechooser h2 { + font-size: 1em; + font-weight: bold; +} + +#mainheading { + border-bottom: 0px solid none; +} + +ul.bookmarx-list { + list-style-type: none; +} + +h1 { + background-color: #ffbfbf; + background-image: url(hammerandsickle-yellow-on-red-bright.png); + background-position: 0 0; + background-repeat: no-repeat; + background-attachment: fixed; + border: solid #bbccff; +} + +h2 { + background-color: #ffbfbf; + background-image: url(hammerandsickle-yellow-on-red-bright.png); + background-position: 0 0; + background-repeat: no-repeat; + background-attachment: fixed; +} + +#rtnv { + font-family: sans-serif, Arial, Helvetica; + color: inherit; + background-color: #ffbfbf; + background-image: url(hammerandsickle-yellow-on-red-bright.png); + background-position: 0 0; + background-repeat: no-repeat; + background-attachment: fixed; + border: solid #bbccff; +} + +.bookmark, #content { + /* border-right: 1px solid silver; */ + color: inherit; + background-color: #ffbfbf; + background-image: url(hammerandsickle-yellow-on-red-bright.png); + background-position: 0 0; + background-repeat: no-repeat; + background-attachment: fixed; + border: solid #bbccff; + margin: 10px; +} + +p { + text-align: justify; +} + +abbr, acronym { + cursor: help; +} + +hr { + color: #bbccff; + background-color: #bbccff; + height: 2px; + /* border: 1px solid silver; */ + border: 0px; +} diff --git a/static/style/hammerandsickle-yellow-on-red-bright.png b/static/style/hammerandsickle-yellow-on-red-bright.png new file mode 100644 index 0000000..86e0398 Binary files /dev/null and b/static/style/hammerandsickle-yellow-on-red-bright.png differ diff --git a/static/style/hammerandsickle-yellow-on-red.png b/static/style/hammerandsickle-yellow-on-red.png new file mode 100644 index 0000000..d756b5b Binary files /dev/null and b/static/style/hammerandsickle-yellow-on-red.png differ -- cgit v1.2.3