Browse Source

eliminated the cssgen's overloaded arith. operation

master
Christian Mueller 14 years ago
parent
commit
8a8863eff6
  1. 1
      project.clj
  2. 8
      src/NoteHub/views/css_generator.clj

1
project.clj

@ -12,7 +12,6 @@ @@ -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],

8
src/NoteHub/views/css_generator.clj

@ -10,7 +10,7 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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

Loading…
Cancel
Save