From 8a8863eff6fef67ea0a62c13fee54fc3d956a303 Mon Sep 17 00:00:00 2001 From: Christian Mueller Date: Sat, 16 Jun 2012 14:12:29 +0200 Subject: [PATCH] eliminated the cssgen's overloaded arith. operation --- project.clj | 1 - src/NoteHub/views/css_generator.clj | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/project.clj b/project.clj index 963ac75..26388eb 100644 --- a/project.clj +++ b/project.clj @@ -12,7 +12,6 @@ [noir "1.3.0-beta1"]] :plugins [[lein-cljsbuild "0.1.10"]] :hooks [leiningen.cljsbuild] - :aot [NoteHub.views.* NoteHub.crossover.*] :jvm-opts ["-Dfile.encoding=utf-8"] :cljsbuild {:crossovers [NoteHub.crossover], diff --git a/src/NoteHub/views/css_generator.clj b/src/NoteHub/views/css_generator.clj index 7653075..234a3ea 100644 --- a/src/NoteHub/views/css_generator.clj +++ b/src/NoteHub/views/css_generator.clj @@ -10,7 +10,7 @@ ; CSS Mixins (def page-width - (px (get-setting :page-width #(Integer/parseInt %) 800))) + (get-setting :page-width #(Integer/parseInt %) 800)) (def helvetica-neue (mixin @@ -23,7 +23,7 @@ (def central-element (mixin - :width page-width + :width (px page-width) :margin-top :5em :margin-bottom :10em :margin-left "auto" @@ -95,7 +95,7 @@ :text-align :justify :vertical-align :top ; 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" helvetica-neue) (rule "#hero" @@ -127,7 +127,7 @@ (rule "*:focus" :outline [:0px :none :transparent]) (rule "textarea" - :width page-width + :width (px page-width) :font-family :Courier :font-size :1em :border :none