fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-05-02 11:39 am

[dw-free] Styles: add option to customize side margins in all styles

[commit: http://hg.dwscoalition.org/dw-free/rev/9d0bd3358c2d]

http://bugs.dwscoalition.org/show_bug.cgi?id=3398

Allow to tweak margins for Negatives.

Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/negatives/layout.s2
--------------------------------------------------------------------------------
diff -r 03b1e2c8f06a -r 9d0bd3358c2d bin/upgrading/s2layers/negatives/layout.s2
--- a/bin/upgrading/s2layers/negatives/layout.s2	Mon May 02 19:35:24 2011 +0800
+++ b/bin/upgrading/s2layers/negatives/layout.s2	Mon May 02 19:38:52 2011 +0800
@@ -16,6 +16,8 @@ propgroup presentation {
     property use num_items_reading;
     property use use_journalstyle_entry_page;
     property use layout_type;
+    property use margins_size;
+    property use margins_unit;
     property use tags_page_type;
     property use userpics_style_group;
     property use userpics_position;
@@ -294,6 +296,12 @@ function Page::print_default_stylesheet(
         $page_background
         color:$*color_page_text;
         }
+
+    html body {
+        margin-left: $*margins_size$*margins_unit;
+        margin-right: $*margins_size$*margins_unit;
+        }
+
     a {
         text-decoration: none;
         font-weight: bold;
--------------------------------------------------------------------------------