Mercurial Hosting > nabble
diff src/nabble/view/naml/layout.naml @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/nabble/view/naml/layout.naml Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,33 @@ +<macro name="column_layout" dot_parameter="columns"> + <n.put_in_head.> + <style type="text/css"> + #columns { + margin-top:1em; + } + #columns .column { + float: left; + margin:0; + padding:0; + overflow-x:hidden; + } + #columns .widget { + margin: 0 .5em 1em .5em; + } + </style> + </n.put_in_head.> + <div id="columns"> + <n.columns/> + </div> +</macro> + +<macro name="column" dot_parameter="contents" parameters="width"> + <div class="column" style="[n.width_style.width/]"> + <n.contents/> + </div> +</macro> + +<macro name="widget" dot_parameter="contents" parameters="title"> + <div class="widget"> + <n.contents/> + </div> +</macro>