fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-06-29 09:41 am

[dw-nonfree] Use external stylesheets by default for official styles

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

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

Remove the "style" tags from within Page::print_default_stylesheet().

Patch by [personal profile] fu.

Files modified:
  • bin/upgrading/s2layers/sundaymorning/layout.s2
  • bin/upgrading/s2layers/transmogrified/layout.s2
--------------------------------------------------------------------------------
diff -r 0a76e0eb96f3 -r e838fb791660 bin/upgrading/s2layers/sundaymorning/layout.s2
--- a/bin/upgrading/s2layers/sundaymorning/layout.s2	Mon Jun 28 14:48:13 2010 -0500
+++ b/bin/upgrading/s2layers/sundaymorning/layout.s2	Tue Jun 29 17:47:43 2010 +0800
@@ -311,8 +311,6 @@ function Page::print_default_stylesheet(
       .entry .userpic a, .comment .userpic a {right: 10px; left: auto; }""";
         }
 """
-
-<style type="text/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
 non IE browsers */
@@ -848,7 +846,6 @@ q { font-style: italic;
     width: 95%;
 }
 
-</style>
 """;
 
 }
diff -r 0a76e0eb96f3 -r e838fb791660 bin/upgrading/s2layers/transmogrified/layout.s2
--- a/bin/upgrading/s2layers/transmogrified/layout.s2	Mon Jun 28 14:48:13 2010 -0500
+++ b/bin/upgrading/s2layers/transmogrified/layout.s2	Tue Jun 29 17:47:43 2010 +0800
@@ -373,8 +373,6 @@ function Page::print_default_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
@@ -961,6 +959,4 @@ function Page::print_default_stylesheet 
     .two-columns-left #wrap { padding-$sidebar_position: $*sidebar_width; }
 
     """;
-    end_css();
-    "</style>\n";
 }
--------------------------------------------------------------------------------