Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a pretend example of writing Ruby that generates CSS.
- # CSS that can be compiled without requiring a third language that *looks* but doesn't *act* like Ruby.
- @fonts = ["Helvetica", "Times New Roman", "sans-serif"]
- rule ".article .body" {
- text {
- family @fonts.last
- size 14
- weight :bold
- style :italic
- shadow color: :grey, horizontal: 3, vertical: 2, cross: true
- }
- }
- rule :body, style: :compressed do
- border color: rgb(255,0,0), size: 4, type: solid
- margin 3
- margin.bottom 4.em
- end
Add Comment
Please, Sign In to add comment