Bruce Style Sheets

2 views
Skip to first unread message

Richard Jones

unread,
Dec 28, 2008, 10:22:44 PM12/28/08
to bruce-users
I've now implemented Bruce Style Sheets using Drew's code as
inspiration. An example style sheet is:

# Bruce StyleSheet (BSS) version of the built-in "big-centered"
style

[style]
font_size = 64
margin_bottom = 32
align = center
literal.font_size = 64
title.font_size = 84
layout.valign = center

or, with some background changes for a "corporate" style:

[layout]
:image: sample-image.png;halign=right;valign=bottom
:quad: C#ffffff;V0,h;C#c0c0ff;Vw,h;C#8080ff;Vw,0;C#c0c0ff;V0,0
:quad: C#c0c0ff;V0,h;V0,h-48;Vw,h-48;Vw,h

[style]
font_name = Times New Roman
layout.viewport = 0,64,w,h-(64+48)
Reply all
Reply to author
Forward
0 new messages