[dw-free] Styles: add option to customize side margins in all styles
[commit: http://hg.dwscoalition.org/dw-free/rev/8d025598a737]
http://bugs.dwscoalition.org/show_bug.cgi?id=3398
Cleanup and simplify some code.
Patch by
ninetydegrees.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3398
Cleanup and simplify some code.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/upgrading/s2layers/fluidmeasure/layout.s2
-------------------------------------------------------------------------------- diff -r d96a516c3e6f -r 8d025598a737 bin/upgrading/s2layers/fluidmeasure/layout.s2 --- a/bin/upgrading/s2layers/fluidmeasure/layout.s2 Thu Jun 02 14:09:10 2011 +0800 +++ b/bin/upgrading/s2layers/fluidmeasure/layout.s2 Mon Jun 06 12:27:59 2011 +0800 @@ -1,28 +1,25 @@ -layerinfo "type" = "layout"; -layerinfo "name" = "Fluid Measure"; -layerinfo "des" = "Inspired by the WordPress theme Ahimsa, by Ravi Sarma"; -layerinfo "redist_uniq" = "fluidmeasure/layout"; -layerinfo "author_name" = "branchandroot"; -layerinfo "lang" = "en"; +layerinfo type = "layout"; +layerinfo name = "Fluid Measure"; +layerinfo des = "Inspired by the WordPress theme Ahimsa, by Ravi Sarma"; +layerinfo redist_uniq = "fluidmeasure/layout"; +layerinfo author_name = "branchandroot"; +layerinfo lang = "en"; + +set layout_authors = [ { "name" => "branchandroot", "type" => "user" } ]; + +##=============================== +## Presentation +##=============================== set layout_type = "two-columns-right"; -set layout_authors = [ { "name" => "branchandroot", "type" => "user" } ]; +property string margins_size { noui = 1; } +property string margins_unit { noui = 1; } set userpics_position = "right"; set all_commentsubjects = true; -propgroup presentation_child { - property string margins_size { - des = "Size of left and right margins"; - size = 5; - noui = 1; - } - -property string margins_unit { - des = "Unit for margins size"; - values = "em|em|%|%|px|px"; - noui = 1; - } -} +##=============================== +## Colors +##=============================== propgroup colors_child { --------------------------------------------------------------------------------