Mercurial > gui
comparison examples/css.ur @ 30:c1f06342c81f
Add margin example
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 12 May 2012 10:07:45 -0400 |
parents | 93140c5cc972 |
children |
comparison
equal
deleted
inserted
replaced
29:93140c5cc972 | 30:c1f06342c81f |
---|---|
1 val param = 5 | |
2 | |
1 fun main () : transaction page = return <xml><body> | 3 fun main () : transaction page = return <xml><body> |
2 <div style={Style.prop1 "font-weight" "bold"}>Bold</div> | 4 <div style={Style.prop1 "font-weight" "bold"}>Bold</div> |
3 <div style={Style.prop "background" (Style.valu (bless "http://adam.chlipala.net/web.png") :: Style.valu "no-repeat" :: [])}>Image</div> | 5 <div style={Style.prop "background" (Style.valu (bless "http://adam.chlipala.net/web.png") :: Style.valu "no-repeat" :: [])}>Image</div> |
4 <div style={Style.props (("font-weight", Style.valu "bold" :: []) | 6 <div style={Style.props (("font-weight", Style.valu "bold" :: []) |
5 :: ("background", Style.valu (bless "http://adam.chlipala.net/web.png") :: Style.valu "no-repeat" :: []) | 7 :: ("background", Style.valu (bless "http://adam.chlipala.net/web.png") :: Style.valu "no-repeat" :: []) |
6 :: [])}>Both</div> | 8 :: [])}>Both</div> |
9 <div style={Style.prop1 "margin-left" (show (2.5 * float param) ^ "em")}>Margin</div> | |
7 </body></xml> | 10 </body></xml> |