|
|
|
@ -5,20 +5,20 @@ |
|
|
|
[hiccup.page :only [include-js html5]] |
|
|
|
[hiccup.page :only [include-js html5]] |
|
|
|
[hiccup.element :only [javascript-tag]])) |
|
|
|
[hiccup.element :only [javascript-tag]])) |
|
|
|
|
|
|
|
|
|
|
|
(defn gen-comma-list [fonts] (apply str (interpose "," fonts))) |
|
|
|
(defn gen-comma-list [& fonts] (apply str (interpose "," fonts))) |
|
|
|
|
|
|
|
(def helvetica-neue |
|
|
|
(def global-css |
|
|
|
|
|
|
|
(css |
|
|
|
|
|
|
|
(rule ".centerized" |
|
|
|
|
|
|
|
:text-align :center) |
|
|
|
|
|
|
|
(def helvetica-neue |
|
|
|
|
|
|
|
(mixin |
|
|
|
(mixin |
|
|
|
:font-weight 300 |
|
|
|
:font-weight 300 |
|
|
|
:font-family (gen-comma-list ["'Helvetica Neue'" |
|
|
|
:font-family (gen-comma-list "'Helvetica Neue'" |
|
|
|
"Helvetica" |
|
|
|
"Helvetica" |
|
|
|
"Arial" |
|
|
|
"Arial" |
|
|
|
"'Lucida Grande'" |
|
|
|
"'Lucida Grande'" |
|
|
|
"sans-serif"]))) |
|
|
|
"sans-serif"))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(def global-css |
|
|
|
|
|
|
|
(css |
|
|
|
|
|
|
|
(rule ".centerized" |
|
|
|
|
|
|
|
:text-align :center) |
|
|
|
(rule ".button" |
|
|
|
(rule ".button" |
|
|
|
:box-shadow [0 :2px :5px :#aaa] |
|
|
|
:box-shadow [0 :2px :5px :#aaa] |
|
|
|
:text-decoration :none |
|
|
|
:text-decoration :none |
|
|
|
@ -50,6 +50,7 @@ |
|
|
|
(rule "*:focus" |
|
|
|
(rule "*:focus" |
|
|
|
:outline [:0px :none :transparent]) |
|
|
|
:outline [:0px :none :transparent]) |
|
|
|
(rule "textarea" |
|
|
|
(rule "textarea" |
|
|
|
|
|
|
|
:width "900px" |
|
|
|
:font-family :Courier |
|
|
|
:font-family :Courier |
|
|
|
:font-size :1.3em |
|
|
|
:font-size :1.3em |
|
|
|
:border :none |
|
|
|
:border :none |
|
|
|
@ -68,7 +69,11 @@ |
|
|
|
:margin-bottom :5em |
|
|
|
:margin-bottom :5em |
|
|
|
:margin-left "auto" |
|
|
|
:margin-left "auto" |
|
|
|
:margin-right "auto") |
|
|
|
:margin-right "auto") |
|
|
|
(rule "h1, h2, h3, h4" :font-family "'Noticia Text'"))) |
|
|
|
(rule "h1" |
|
|
|
|
|
|
|
:font-size :2em) |
|
|
|
|
|
|
|
(rule "h1, h2, h3, h4" |
|
|
|
|
|
|
|
:font-family (gen-comma-list |
|
|
|
|
|
|
|
"'Noticia Text'" "Georgia")))) |
|
|
|
|
|
|
|
|
|
|
|
(defpartial layout [title & content] |
|
|
|
(defpartial layout [title & content] |
|
|
|
(html5 |
|
|
|
(html5 |
|
|
|
|