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-07-18 01:22 pm

[dw-free] Tabula Rasa Plain CSS could be streamlined

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

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

Remove unnecessary margins and let body, #canvas, #header, and #footer flow
naturally to where they should be.

Patch by [personal profile] afuna.

Files modified:
  • bin/upgrading/s2layers/core2base/layout.s2
--------------------------------------------------------------------------------
diff -r a9fbb12e6ff8 -r a0b17e351f2b bin/upgrading/s2layers/core2base/layout.s2
--- a/bin/upgrading/s2layers/core2base/layout.s2	Thu Jul 16 22:10:15 2009 -0500
+++ b/bin/upgrading/s2layers/core2base/layout.s2	Sat Jul 18 13:21:13 2009 +0000
@@ -259,39 +259,20 @@ a:hover { $page_link_hover_colors }
 a:hover { $page_link_hover_colors }
 a:visited { $page_link_visited_colors }
 
-.two-columns-left #canvas,
-.three-columns-sides #canvas { padding-left: $*sidebar_width; }
-.two-columns-right #canvas,
-.three-columns-sides #canvas { padding-right: $*sidebar_width; }
-.three-columns-left #canvas { padding-left: $*sidebar_width_doubled; }
-.three-columns-right #canvas { padding-right: $*sidebar_width_doubled; }
-
-#content { 
-	float: left;
-	width: 100%;
-	border: none;
-	margin: 0;
-    display: inline; /* So IE plays nice */
-}
-
 .one-column #content { float: none; }
 .two-columns-left #content,
 .three-columns-sides #content { 
 	border-left: $*sidebar_width solid transparent;
-	margin-left: -$*sidebar_width;
 }
 .two-columns-right #content,
 .three-columns-sides #content {
 	border-right: $*sidebar_width solid transparent;
-	margin-right: -$*sidebar_width;
 }
 .three-columns-left #content {
 	border-left: $*sidebar_width_doubled solid transparent;
-	margin-left: -$*sidebar_width_doubled;
 }
 .three-columns-right #content {
 	border-right: $*sidebar_width_doubled solid transparent;
-	margin-right: -$*sidebar_width_doubled;
 }
 
 #header, #footer { 
@@ -299,19 +280,6 @@ a:visited { $page_link_visited_colors }
     clear: both;
 	padding: .5em;
 }
-
-.two-columns-right #header,
-.two-columns-right #footer,
-.three-columns-sides #header,
-.three-columns-sides #footer {margin-right: -$*sidebar_width;}
-.two-columns-left #header,
-.two-columns-left #footer,
-.three-columns-sides #header,
-.three-columns-sides #footer {margin-left: -$*sidebar_width;}
-.three-columns-right #header,
-.three-columns-right #footer {margin-right: -$*sidebar_width_doubled;}
-.three-columns-left #header,
-.three-columns-left #footer {margin-left: -$*sidebar_width_doubled;}
 
 #header {
     $header_background
--------------------------------------------------------------------------------