eliminated the cssgen's overloaded arith. operation

This commit is contained in:
Christian Mueller
2012-06-16 14:12:29 +02:00
parent 04d64879a5
commit 8a8863eff6
2 changed files with 4 additions and 5 deletions
-1
View File
@@ -12,7 +12,6 @@
[noir "1.3.0-beta1"]] [noir "1.3.0-beta1"]]
:plugins [[lein-cljsbuild "0.1.10"]] :plugins [[lein-cljsbuild "0.1.10"]]
:hooks [leiningen.cljsbuild] :hooks [leiningen.cljsbuild]
:aot [NoteHub.views.* NoteHub.crossover.*]
:jvm-opts ["-Dfile.encoding=utf-8"] :jvm-opts ["-Dfile.encoding=utf-8"]
:cljsbuild :cljsbuild
{:crossovers [NoteHub.crossover], {:crossovers [NoteHub.crossover],
+4 -4
View File
@@ -10,7 +10,7 @@
; CSS Mixins ; CSS Mixins
(def page-width (def page-width
(px (get-setting :page-width #(Integer/parseInt %) 800))) (get-setting :page-width #(Integer/parseInt %) 800))
(def helvetica-neue (def helvetica-neue
(mixin (mixin
@@ -23,7 +23,7 @@
(def central-element (def central-element
(mixin (mixin
:width page-width :width (px page-width)
:margin-top :5em :margin-top :5em
:margin-bottom :10em :margin-bottom :10em
:margin-left "auto" :margin-left "auto"
@@ -95,7 +95,7 @@
:text-align :justify :text-align :justify
:vertical-align :top :vertical-align :top
; Replace this by arithmetic with css-lengths as soon as they fix the bug ; Replace this by arithmetic with css-lengths as soon as they fix the bug
:width (/ page-width 3.0)) :width (px (quot page-width 3)))
(rule ".helvetica-neue" (rule ".helvetica-neue"
helvetica-neue) helvetica-neue)
(rule "#hero" (rule "#hero"
@@ -127,7 +127,7 @@
(rule "*:focus" (rule "*:focus"
:outline [:0px :none :transparent]) :outline [:0px :none :transparent])
(rule "textarea" (rule "textarea"
:width page-width :width (px page-width)
:font-family :Courier :font-family :Courier
:font-size :1em :font-size :1em
:border :none :border :none