Guest User

Untitled

a guest
Jan 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # This is a pretend example of writing Ruby that generates CSS.
  2. # CSS that can be compiled without requiring a third language that *looks* but doesn't *act* like Ruby.
  3.  
  4. @fonts = ["Helvetica", "Times New Roman", "sans-serif"]
  5.  
  6. rule ".article .body" {
  7. text {
  8. family @fonts.last
  9. size 14
  10. weight :bold
  11. style :italic
  12. shadow color: :grey, horizontal: 3, vertical: 2, cross: true
  13. }
  14. }
  15.  
  16. rule :body, style: :compressed do
  17. border color: rgb(255,0,0), size: 4, type: solid
  18. margin 3
  19. margin.bottom 4.em
  20. end
Add Comment
Please, Sign In to add comment