Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cljs.user=> (require '[fast.core :refer [-o -styles -rules -add]] )
- nil
- cljs.user=> (require 'css.units)
- nil
- cljs.user=> (-o 80)
- <span.tab>
- cljs.user=> (-add (-o 80) "width" "3em")
- #<width:3em;>
- cljs.user=> (-add (-o 80) "height" "5%")
- #<height:5%;>
- cljs.user=> (str (-o 80))
- "<span class=\"tab\" style=\"width:3em;height:5%;\" >demo/std.html</span>"
- cljs.user=> (map (comp css.units/px #(.-value %)) (-rules (-o 80)))
- (<48px> <25px>)
- cljs.user=> (css.units/div (.-width (-styles (-o 80))) (.-height (-styles (-o 80))))
- 1.92
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement