Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. cljs.user=> (require '[fast.core :refer [-o -styles -rules -add]] )
  2. nil
  3. cljs.user=> (require 'css.units)
  4. nil
  5. cljs.user=> (-o 80)
  6. <span.tab>
  7. cljs.user=> (-add (-o 80) "width" "3em")
  8. #<width:3em;>
  9. cljs.user=> (-add (-o 80) "height" "5%")
  10. #<height:5%;>
  11. cljs.user=> (str (-o 80))
  12. "<span class=\"tab\" style=\"width:3em;height:5%;\" >demo/std.html</span>"
  13. cljs.user=> (map (comp css.units/px #(.-value %)) (-rules (-o 80)))
  14. (<48px> <25px>)
  15. cljs.user=> (css.units/div (.-width (-styles (-o 80))) (.-height (-styles (-o 80))))
  16. 1.92
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement