fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-09-21 02:37 pm

[dw-free] In some styles, list characters overlap icon

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

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

Fix for Blanket, Drifting, Negatives.

Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/blanket/layout.s2
  • bin/upgrading/s2layers/drifting/layout.s2
  • bin/upgrading/s2layers/negatives/layout.s2
--------------------------------------------------------------------------------
diff -r 1b248ad3489c -r 68b079ecf8ce bin/upgrading/s2layers/blanket/layout.s2
--- a/bin/upgrading/s2layers/blanket/layout.s2	Tue Sep 21 22:33:15 2010 +0800
+++ b/bin/upgrading/s2layers/blanket/layout.s2	Tue Sep 21 22:37:06 2010 +0800
@@ -350,6 +350,13 @@ h3.entry-title a { $entry_title_colors }
 
 span.poster { font-size: 0.9em; font-weight: normal; text-transform: uppercase; letter-spacing: 0; padding: 0; $page_title_colors }
 
+/* To prevent overlapping when icon's on the left */
+/* and list is the first thing in content */
+.entry-content li,
+.comment-content li {
+    list-style-position: inside;
+    }
+
 .metadata { margin: 2em 0 0 0; }
 .metadata.top-metadata { margin: 1em 0 2em 0; }
 div.metadata ul { padding: 0; margin: 0; }
diff -r 1b248ad3489c -r 68b079ecf8ce bin/upgrading/s2layers/drifting/layout.s2
--- a/bin/upgrading/s2layers/drifting/layout.s2	Tue Sep 21 22:33:15 2010 +0800
+++ b/bin/upgrading/s2layers/drifting/layout.s2	Tue Sep 21 22:37:06 2010 +0800
@@ -625,6 +625,13 @@ function Page::print_default_stylesheet(
         color: $*color_entry_text;
     }
 
+    /* To prevent overlapping when icon's on the left */
+    /* and list is the first thing in content */
+    .entry-content li,
+    .comment-content li {
+        list-style-position: inside;
+        }
+
     .entry .subject {
         padding: 3px;
         border: 1px solid $*color_entry_border;
diff -r 1b248ad3489c -r 68b079ecf8ce bin/upgrading/s2layers/negatives/layout.s2
--- a/bin/upgrading/s2layers/negatives/layout.s2	Tue Sep 21 22:33:15 2010 +0800
+++ b/bin/upgrading/s2layers/negatives/layout.s2	Tue Sep 21 22:37:06 2010 +0800
@@ -525,6 +525,14 @@ function Page::print_default_stylesheet(
     .entry-title a:hover {
         color: $*color_entry_link_hover;
     }
+
+    /* To prevent overlapping when icon's on the left */
+    /* and list is the first thing in content */
+    .entry-content li,
+    .comment-content li {
+        list-style-position: inside;
+        }
+
     .entry-management-links, .entry-management-links a,
     .entry-interaction-links, .entry-interaction-links a,
     .comment-interaction-links, .comment-interaction-links a{
--------------------------------------------------------------------------------