afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-10-13 03:04 pm

[dw-free] Blanket: hardcoded header and footer border color(s)

[commit: http://hg.dwscoalition.org/dw-free/rev/3a445b375528]

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

Add single property to set the header and footer border color for Blanket. .
Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/blanket/layout.s2
  • bin/upgrading/s2layers/blanket/themes.s2
  • cgi-bin/LJ/S2Theme/blanket.pm
--------------------------------------------------------------------------------
diff -r 111ac3e6b53c -r 3a445b375528 bin/upgrading/s2layers/blanket/layout.s2
--- a/bin/upgrading/s2layers/blanket/layout.s2	Tue Oct 13 05:24:02 2009 +0000
+++ b/bin/upgrading/s2layers/blanket/layout.s2	Tue Oct 13 15:03:26 2009 +0000
@@ -41,6 +41,7 @@ propgroup colors {
     property use color_page_title;
     
     property use color_header_background;
+    property Color color_header_footer_border { des = "Header and footer border color"; }
 
     property use color_module_background;
     property use color_module_text;
@@ -255,7 +256,7 @@ a:hover { $page_link_hover_colors }
 
 /*--- header + footer ---*/
 #header { width: 60%; margin: 0 auto 2em auto; $header_colors }
-#header>.inner { border-left: 20px solid #f2ebd7; padding: 4em 2em; }
+#header>.inner { border-left: 20px solid $*color_header_footer_border; padding: 4em 2em; }
 #footer { display: block; clear: both; }
 .page-top { width: 60%; margin: 0 auto; text-transform: uppercase; text-align: right; }
 .navigation { text-transform: uppercase; text-align: right; }
@@ -275,7 +276,7 @@ div.module-navlinks ul.module-list li { 
 
 /*--- modules ---*/
 #secondary { width: 60%; margin: 0 auto; z-index: 0; padding: 0; $entry_colors }
-#secondary>.inner { border-left: 20px solid #f2ebd7; padding: 4em 2em; }
+#secondary>.inner { border-left: 20px solid $*color_header_footer_border; padding: 4em 2em; }
 
 #secondary .module { float: left; margin: 2em 1em;}
 #secondary .module-header, #secondary .module-header a { $module_title_colors }
diff -r 111ac3e6b53c -r 3a445b375528 bin/upgrading/s2layers/blanket/themes.s2
--- a/bin/upgrading/s2layers/blanket/themes.s2	Tue Oct 13 05:24:02 2009 +0000
+++ b/bin/upgrading/s2layers/blanket/themes.s2	Tue Oct 13 15:03:26 2009 +0000
@@ -14,6 +14,7 @@ set color_page_link_visited = "#7799aa";
 set color_page_link_visited = "#7799aa";
 
 set color_header_background = "#fff";
+set color_header_footer_border = "#f2ebd7";
 set color_page_title = "#aaa";
 
 set color_module_background = "#f2ebd7";
@@ -39,6 +40,7 @@ set color_entry_text = "#5c5726";
 set color_entry_text = "#5c5726";
 set color_entry_title = "#a2a775";
 set color_header_background = "#ffffff";
+set color_header_footer_border = "#f2ebd7";
 set color_module_background = "#f0d0f9";
 set color_module_border = "#6a5070";
 set color_module_text = "#401a49";
diff -r 111ac3e6b53c -r 3a445b375528 cgi-bin/LJ/S2Theme/blanket.pm
--- a/cgi-bin/LJ/S2Theme/blanket.pm	Tue Oct 13 05:24:02 2009 +0000
+++ b/cgi-bin/LJ/S2Theme/blanket.pm	Tue Oct 13 15:03:26 2009 +0000
@@ -6,6 +6,11 @@ sub layout_prop { "layout_type" }
 
 sub designer { "renoir" }
 
+sub header_props {
+    my $self = shift;
+    my @props = qw( color_header_footer_border );
+    return $self->_append_props( "header_props", @props );
+}
 
 package LJ::S2Theme::blanket::peach;
 use base qw( LJ::S2Theme::blanket );
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org