mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-08-10 05:13 am

[dw-nonfree] Base layouts should use print_default_stylesheet()

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/7ed1418e9ed4]

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

Make Transmogrifried use print_default_stylesheet() calls.

Patch by [personal profile] av8rmike.

Files modified:
  • bin/upgrading/s2layers/transmogrified/layout.s2
--------------------------------------------------------------------------------
diff -r 9b45089004af -r 7ed1418e9ed4 bin/upgrading/s2layers/transmogrified/layout.s2
--- a/bin/upgrading/s2layers/transmogrified/layout.s2	Mon Aug 10 05:11:49 2009 +0000
+++ b/bin/upgrading/s2layers/transmogrified/layout.s2	Mon Aug 10 05:13:43 2009 +0000
@@ -299,7 +299,7 @@ function Page::print()
     """;
 }
 
-function print_stylesheet () {
+function Page::print_default_stylesheet () {
     var string sidebar_positioning = "margin-right: -$*sidebar_width;";
     var string sidebar_position = "right";
     var string sidebar_position_alt = "left";
@@ -338,6 +338,8 @@ function print_stylesheet () {
 # NB Background image stuff in container, not in body, and colors fixed accordingly. Otherwise it messes up the layout.
 # Homegrown logic for entry and module colors to fit with Transmog specialist options for alternating
 
+    """<style type="text/css">""";
+    start_css();
     """
     /* believe me, this style is much easier to deal with if you 
     just leave this here.  It says "lets use the IE box model" for
@@ -869,4 +871,6 @@ function print_stylesheet () {
         width: 95%;
     }
     """;
+    end_css();
+    "</style>\n";
 }
--------------------------------------------------------------------------------