fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-12-15 02:00 pm

[dw-free] Styles: Remove CSS resets

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

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

Remove all-element CSS resets which removed padding and margin, and remove
padding/marging only on individual elements. This reduces the incidence of
unexpected side effects. Changes Practicality, Compartmentalize, Crisped,
Five AM.

Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/compartmentalize/layout.s2
  • bin/upgrading/s2layers/crisped/layout.s2
  • bin/upgrading/s2layers/fiveam/layout.s2
  • bin/upgrading/s2layers/practicality/layout.s2
--------------------------------------------------------------------------------
diff -r c6c608717fd5 -r ec8c6d62f69f bin/upgrading/s2layers/compartmentalize/layout.s2
--- a/bin/upgrading/s2layers/compartmentalize/layout.s2	Thu Dec 15 01:05:14 2011 +0800
+++ b/bin/upgrading/s2layers/compartmentalize/layout.s2	Thu Dec 15 22:00:28 2011 +0800
@@ -101,11 +101,6 @@
         }
 """
 
-* {
-    margin: 0;
-    padding: 0;
-    }
-
 body {
     margin: 1em 0 0 0;
     }
@@ -594,6 +589,11 @@
 .month td.day-has-entries p a:hover { color: $*color_page_link_hover; }
 .month td.day-has-entries p a:active { color: $*color_page_link_active; }
 
+.month dl, .month dt, .month dd {
+    margin: 0;
+    padding: 0;
+    }
+
 /*--- Tags Page ---*/
 
 .page-tags .tags-container {
@@ -613,6 +613,11 @@
     text-transform: uppercase;
     }
 
+ .page-tags .tags-container ul {
+    margin-left: .5em;
+    padding-left: .5em;
+    }
+
 /*--- Contextual Pop-up ---*/
 
 div.ContextualPopup {
diff -r c6c608717fd5 -r ec8c6d62f69f bin/upgrading/s2layers/crisped/layout.s2
--- a/bin/upgrading/s2layers/crisped/layout.s2	Thu Dec 15 01:05:14 2011 +0800
+++ b/bin/upgrading/s2layers/crisped/layout.s2	Thu Dec 15 22:00:28 2011 +0800
@@ -94,11 +94,6 @@
 /* Main
 ***************************************************************************/
 
-* {
-    margin: 0;
-    padding: 0;
-    }
-
 body {
     margin: 30px 0 0 0;
     } 
@@ -490,6 +485,11 @@
     color: $*color_calendar_link_active;
     }
 
+.month dl, .month dt, .month dd {
+    margin: 0;
+    padding: 0;
+    }
+
 /* Tags Page
 ***************************************************************************/
 
@@ -699,11 +699,7 @@
     }
 
 .module-search .search-box {
-    padding: .05em;
-    }
-
-.module-search .search-button {
-    margin-left: 1px;
+    margin-right: 2px;
     }
 
 /* Contextual Pop-ups
diff -r c6c608717fd5 -r ec8c6d62f69f bin/upgrading/s2layers/fiveam/layout.s2
--- a/bin/upgrading/s2layers/fiveam/layout.s2	Thu Dec 15 01:05:14 2011 +0800
+++ b/bin/upgrading/s2layers/fiveam/layout.s2	Thu Dec 15 22:00:28 2011 +0800
@@ -263,11 +263,6 @@
 /* Main
 ***************************************************************************/
 
-* {
-    margin: 0;
-    padding: 0;
-    }
-
 body {
     margin: 0;
     }
@@ -549,6 +544,7 @@
     text-transform: uppercase;
     }
 
+.metadata ul,
 .metadata ul li {
     margin: 0;
     padding: 0;
@@ -562,6 +558,10 @@
     clear: left;
     }
 
+.footer ul {
+    margin: 0;
+    }
+
 .tag {
     font-family: $*font_entry_title;
     line-height: 1.2em;
@@ -871,6 +871,11 @@
     display: inline;
     }
 
+.month dl, .month dt, .month dd {
+    margin: 0;
+    padding: 0;
+    }
+
 .month .datetime,
 .month .access-filter,
 .month .entry-title {
@@ -902,7 +907,6 @@
 
 .tags-container .ljtaglist {
     line-height: 1.8em;
-    margin-left: 3em;
     }
 
 .tags-container ul.ljtaglist {
@@ -1024,7 +1028,6 @@
 
 ul.userlite-interaction-links {
     list-style: none;
-    padding-top: 1em;
     }
 
 ul.userlite-interaction-links li {
@@ -1121,13 +1124,9 @@
     color: $*color_module_link_active;
     }
 
-.module-search .search-button {
-    margin-left: .2em;
-    padding: .05em;
-    }
-
 .module-search .search-box {
-    padding: .1em;
+    margin-right: 2px;
+    padding: 1px;
     }
 
 /* Footer
diff -r c6c608717fd5 -r ec8c6d62f69f bin/upgrading/s2layers/practicality/layout.s2
--- a/bin/upgrading/s2layers/practicality/layout.s2	Thu Dec 15 01:05:14 2011 +0800
+++ b/bin/upgrading/s2layers/practicality/layout.s2	Thu Dec 15 22:00:28 2011 +0800
@@ -194,11 +194,6 @@
 
 /*--- Main ---*/
 
-* {
-    margin: 0;
-    padding: 0;
-    }
-
 body {
     margin: 0;
     }
@@ -457,6 +452,7 @@
     background: $*color_page_background;
     color: $*color_page_text;
     border: 1px solid $*color_entry_border;
+    padding: 0;
     }
 
 div.module-calendar td.empty-day {
@@ -690,6 +686,11 @@
 .month td.day-has-entries p a:hover { color: $*color_page_link_hover; }
 .month td.day-has-entries p a:active { color: $*color_page_link_active; }
 
+.month dl, .month dt, .month dd {
+    margin: 0;
+    padding: 0;
+    }
+
 /*--- Tags Page ---*/
 
 .page-tags .tags-container {
@@ -715,6 +716,7 @@
 
 .page-tags .tags-container .ljtaglist {
     list-style: none;
+    margin-left: 0;
     }
 
 /*--- Comments ---*/
--------------------------------------------------------------------------------