Skip to content

Commit

Permalink
added deg units
Browse files Browse the repository at this point in the history
  • Loading branch information
paraseba committed Nov 26, 2010
1 parent 740cee9 commit 036d53b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The easiest way to install cssgen is by using Leiningen. Just add the following

<pre>
<code>
[cssgen "0.2.3"]
[cssgen "0.2.4"]
</code>
</pre>

Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject cssgen "0.2.3"
(defproject cssgen "0.2.4"
:description "Generate CSS from clojure code. Like an embedded sass."
:url "http://github.com/paraseba/cssgen"
:dependencies [[org.clojure/clojure "1.2.0"]
Expand Down
1 change: 1 addition & 0 deletions src/cssgen/types.clj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
(def-length-constr pt)
(def-length-constr pc)
(def-length-constr %)
(def-length-constr deg)

(defn col
([x] (make-color x))
Expand Down
2 changes: 2 additions & 0 deletions test/values.clj
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
:width (mm 1)
:width (pt 1)
:width (pc 1)
:width (deg 1)
:width (% 1))
"a {
width: 1em;
Expand All @@ -67,6 +68,7 @@
width: 1mm;
width: 1pt;
width: 1pc;
width: 1deg;
width: 1%;
}
"
Expand Down

0 comments on commit 036d53b

Please sign in to comment.