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-08 06:22 pm

[dw-free] Layout: Basic Boxes Green

[commit: http://hg.dwscoalition.org/dw-free/rev/015405fd1d4e]

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

Add Basic Boxes Green layout.

Patch by [personal profile] afuna.

Files modified:
  • bin/upgrading/s2layers.dat
  • bin/upgrading/s2layers/basicboxes/layout.s2
  • bin/upgrading/s2layers/basicboxes/themes.s2
  • cgi-bin/LJ/S2Theme.pm
  • cgi-bin/LJ/S2Theme/basicboxes.pm
--------------------------------------------------------------------------------
diff -r 677e7e2729fd -r 015405fd1d4e bin/upgrading/s2layers.dat
--- a/bin/upgrading/s2layers.dat	Sat Aug 08 18:19:56 2009 +0000
+++ b/bin/upgrading/s2layers.dat	Sat Aug 08 18:22:10 2009 +0000
@@ -3,6 +3,9 @@
 
 core1                   core            -
 core2                   core            -
+
+basicboxes/layout       layout(core2base/layout)    core2
+basicboxes/themes       theme+                      basicboxes/layout
 
 core2base/layout        layout          core2
 core2base/themes        theme+          core2base/layout
diff -r 677e7e2729fd -r 015405fd1d4e bin/upgrading/s2layers/basicboxes/layout.s2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/upgrading/s2layers/basicboxes/layout.s2	Sat Aug 08 18:22:10 2009 +0000
@@ -0,0 +1,269 @@
+layerinfo "type" = "layout";
+layerinfo "name" = "Basic Boxes";
+layerinfo redist_uniq = "basicboxes/layout";
+layerinfo author_name = "branchandroot";
+layerinfo lang = "en";
+
+set layout_type = "two-columns-right";
+set layout_authors = [ { "name" => "branchandroot", "type" => "user" } ];
+
+function print_stylesheet () {
+
+    var string primary_colors = generate_color_css( $*color_entry_text, $*color_entry_background, $*color_entry_border );
+    var string header_colors = generate_color_css( new Color, $*color_header_background, $*color_page_border );
+    
+    var string link_colors = generate_color_css( $*color_entry_link, new Color, new Color );
+    var string link_colors_visited = generate_color_css( $*color_entry_link_visited, new Color, new Color );
+
+    var string entry_colors = generate_color_css( new Color, $*color_entry_title_background, $*color_entry_border );
+    var string entry_title_colors = generate_color_css( $*color_entry_title, new Color, new Color );
+    var string comment_header_colors = generate_color_css( $*color_page_title, $*color_header_background, $*color_entry_border );
+    var string comment_title_colors = generate_color_css( $*color_page_title, new Color, new Color );
+    var string bottomcomment_colors = generate_color_css( new Color, $*color_page_title, $*color_header_background );
+
+    var string module_colors = generate_color_css( $*color_module_text, $*color_module_background, $*color_module_border );
+    var string module_header_colors = generate_color_css( $*color_module_title, $*color_module_title_background, $*color_module_border );
+    var string module_header_link_colors = generate_color_css( $*color_module_title, new Color, new Color );
+
+    """
+/* Basic Boxes */
+
+blockquote, q { font-style: italic; }
+dl dt { font-weight: bold; }
+
+a { text-decoration: none; }
+
+a:hover { text-decoration: underline; }
+
+body { margin: 0;
+font-family: $*font_base, Verdana, Arial, Helvetica, sans-serif;  }
+    
+#canvas { position: relative; 
+ float: left; width: 100%; /*asinine IE7 hack to keep left sidebar from sliding under #primary when #canvas is relative*/  }
+
+
+/* header */
+#header { background-color: transparent; }
+#header > .inner:first-child { 
+    $header_colors
+    margin: 3em 3em 2em 3em;
+    padding: 0 .5em;
+    font-family: "Book Antiqua", Palatino, "Times New Roman", serif; 
+    text-align: center; }
+#header > .inner:first-child h1,
+#header > .inner:first-child h2 { font-family: $*font_journal_title; }
+
+
+/* main column */
+
+#primary { $primary_colors
+    margin-bottom: 1em; }
+#primary a { $link_colors }
+#primary a:visited { $link_colors_visited }
+
+.one-column #primary { 
+    width: 96%;
+    margin-right: -98%;
+    margin-left: 2%;
+}
+.two-columns-left #primary,
+.two-columns-right #primary,
+.three-columns-left #primary,
+.three-columns-right #primary { 
+    margin-right: -98%;
+    width: 98%;
+    }
+.two-columns-right #primary,
+.three-columns-right #primary { 
+    margin-left: 2%;
+    }
+
+.two-columns-left .navigation,
+.three-columns-left .navigation { text-align: right; }
+
+/* entries */
+.entry li { margin-left: 1em; }
+.entry-content hr { display: block;
+    margin: 1em 10%; }
+
+.entry { margin-bottom: 3em;
+border: none; }
+
+.entry .entry-title { $entry_colors
+    padding: .25em 5px;
+    margin-bottom: .5em;}
+#primary .entry .entry-title a, 
+#primary .entry .entry-title a:visited { $entry_title_colors }
+
+.entry .datetime { font-size: small;
+    padding: 0 5px;
+    color: #999; }
+
+.entry .poster { display: block;
+margin: .5em 0; }
+
+.entry .contents .userpic { float: right;
+    margin: -1em 0 .25em .25em;}
+
+.entry .contents { padding: 0 .5em; }
+
+.entry-content { margin: 1em 0; }
+
+.metadata { margin: 1em 0 0 0; }
+.metadata-label { font-weight: bold; }
+.metadata ul li { margin-left: 0; padding-left: 0; }
+
+.entry .footer { margin: .5em 0; }
+.entry .footer > .inner:first-child { padding: 1px; } /*float uneveness fix */
+
+.entry .tag { margin-left: .25em; }
+.entry .tag li { margin-left: 0; padding: .25em .10em; }
+.entry .tag-text { font-weight: bold; }
+
+ul.entry-management-links { float: left;
+    margin-left: -1em;
+    margin-top: 1em;
+    margin-bottom: 0; }
+ul.entry-interaction-links { text-align: right;
+    margin-top: 1em;
+    margin-bottom: .25em; }
+
+/* comments */
+.comment { margin-bottom: 1em; }
+
+.partial .comment { margin-bottom: 0;} 
+
+.comment .header { $comment_header_colors
+    padding: 2px 5px;
+    margin-bottom: .5em; }
+#primary .comment .comment-title a, 
+#primary .comment .comment-title a:visited { $comment_title_colors }
+.comment-title { margin: 0;
+    padding: 0 0 .25em 0;
+    font-weight: bold; }
+.partial .comment-title { display: inline; }
+#primary .partial .comment .comment-title a,
+#primary .partial .comment .comment-title a:visited { color: $*color_entry_link; }
+
+.comment .poster-ip { font-size: small;
+    color: #999999; }
+
+.comment .contents .userpic { float: right;
+    margin: 0 0 .25em .25em;}
+
+.comment-content { margin-top: 1em; }
+
+.comment .ljedittime { margin-top: 1em; }
+.comment-content .datetime { color: #666; }
+
+.comment .multiform-checkbox { display: block;
+    text-align: right;
+    font-size: small;
+    color: #666;
+}
+
+.comment .footer { margin: .5em 0; }
+.comment .footer > .inner:first-child { padding: 1px; } /*float uneveness fix */
+
+.comment-management-links { float: right; }
+.comment-interaction-links { text-align: left; }
+
+.bottomcomment { $bottomcomment_colors
+    padding: .25em; }
+    
+.bottomcomment .entry-management-links,
+.bottomcomment .entry-interaction-links { margin: .25em 0 .5em 0; }
+
+.comment-pages { text-align: center; }
+
+#qrdiv table { width: 100%; margin: 1em 0; }
+
+
+/* archive */
+
+/* year-by-month view */
+#archive-year .navigation { text-align: left; }
+
+div.month { margin: 0 0 2em 0; }
+
+table.month td,
+table.month th { border-color: #999999;
+    vertical-align: top; }
+
+.month caption { display: none; }
+
+#archive-year .month .footer { padding: .5em;
+text-align: center; }
+
+/* month-by-day view */
+#archive-month .navigation { text-align: center; }
+
+.month dl .tag-text { font-style: italic; }
+
+.month dl h3.entry-title { font-weight: bold; }
+
+/* day-by-entries view */
+.day .inner > h3:first-child { text-align: center; }
+
+
+/* sidebars */
+
+#secondary > .inner:first-child,
+#tertiary > .inner:first-child {
+    padding: 0 .5em !important;
+}
+
+.three-columns-right #secondary > .inner:first-child {
+    padding: 0 0 0 .5em !important;
+}
+.three-columns-right #tertiary > .inner:first-child {
+    padding: 0 !important;
+}
+.three-columns-left #secondary > .inner:first-child {
+    padding: 0 !important;
+}
+.three-columns-left #tertiary > .inner:first-child {
+    padding: 0 .5em 0 0 !important;
+}
+
+.module {  padding: 3px; 
+    margin: 0 .5em 1em .5em;
+    $module_colors } 
+
+.module-header {
+    font-size: large;
+    padding: 1px 3px; 
+    $module_header_colors }
+
+.module-header a, 
+.module-header a:visited { $module_header_link_colors }
+
+.module-userprofile { text-align: center; }
+
+.module-customtext .module-content { padding: .25em 0; }
+
+.module-navlinks ul,
+.module-typelist ul { list-style: none; }
+
+.module-navlinks { position: absolute;
+    top: .5em;
+    left: .25em;
+    margin: 0;
+    padding: 0;
+    border: none;
+    background: none; }
+.module-navlinks ul { margin: 0;
+    padding: 0; }
+.module-navlinks ul li { display: inline;
+    padding: 0;
+    margin: 0;
+    border-left: 1px solid $*color_page_border;
+    border-right: 1px solid $*color_page_border; }
+.module-navlinks ul li a { font-size: small;
+    padding: .15em .5em; }
+
+    """;
+}
+
+
+
diff -r 677e7e2729fd -r 015405fd1d4e bin/upgrading/s2layers/basicboxes/themes.s2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/upgrading/s2layers/basicboxes/themes.s2	Sat Aug 08 18:22:10 2009 +0000
@@ -0,0 +1,38 @@
+#NEWLAYER: basicboxes/green
+layerinfo type = "theme";
+layerinfo name = "Basic Boxes Green";
+layerinfo redist_uniq = "basicboxes/green";
+layerinfo author_name = "branchandroot";
+
+##===============================
+## Page Colors
+##===============================
+
+set color_page_background = "#818f48";
+set color_page_link = "#e9eed3";
+set color_page_border = "#566030";
+set color_page_title = "#e9eed3";
+
+set color_header_background = "#92a252";
+
+##===============================
+## Entry Colors
+##===============================
+
+set color_entry_background = "#ffffff";
+set color_entry_text = "#000000";
+set color_entry_link = "#92a252";
+set color_entry_link_visited = "#acbf60";
+set color_entry_border = "#566030";
+set color_entry_title = "#e9eed3";
+set color_entry_title_background = "#92a252";
+
+##===============================
+## Module Colors
+##===============================
+
+set color_module_background = "#92a252";
+set color_module_text = "#566030";
+set color_module_border = "#566030";
+set color_module_title = "#566030";
+set color_module_title = "#e9eed3";
diff -r 677e7e2729fd -r 015405fd1d4e cgi-bin/LJ/S2Theme.pm
--- a/cgi-bin/LJ/S2Theme.pm	Sat Aug 08 18:19:56 2009 +0000
+++ b/cgi-bin/LJ/S2Theme.pm	Sat Aug 08 18:22:10 2009 +0000
@@ -34,6 +34,7 @@ sub default_theme {
     $layout =~ s/\/layout$//;
 
     my %default_themes = (
+        basicboxes => 'basicboxes/green',
         core2base => 'core2base/testing',
         drifting => 'drifting/blue',
         negatives => 'negatives/black',
diff -r 677e7e2729fd -r 015405fd1d4e cgi-bin/LJ/S2Theme/basicboxes.pm
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cgi-bin/LJ/S2Theme/basicboxes.pm	Sat Aug 08 18:22:10 2009 +0000
@@ -0,0 +1,14 @@
+package LJ::S2Theme::basicboxes;
+use base qw( LJ::S2Theme );
+
+sub layouts { ( "1" => "one-column", "2l" => "two-columns-left", "2r" => "two-columns-right", "3" => "three-columns-sides", "3r" => "three-columns-right", "3l" => "three-columns-left" ) }
+sub layout_prop { "layout_type" }
+
+sub designer { "branchandroot" }
+
+
+package LJ::S2Theme::basicboxes::green;
+use base qw( LJ::S2Theme::basicboxes );
+sub cats { qw( featured ) }
+
+1;
--------------------------------------------------------------------------------

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