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

[dw-free] "Back to Top" title link should be included in all Dreamwidth styles by default

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

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

Add link back to top to negatives.

Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/negatives/layout.s2
--------------------------------------------------------------------------------
diff -r f4840f9d0e4c -r 69491bac723d bin/upgrading/s2layers/negatives/layout.s2
--- a/bin/upgrading/s2layers/negatives/layout.s2	Tue Feb 22 23:44:03 2011 +0800
+++ b/bin/upgrading/s2layers/negatives/layout.s2	Tue Feb 22 23:47:12 2011 +0800
@@ -673,6 +673,12 @@ function Page::print_default_stylesheet(
     
     .entry h3 { display: inline; }
 
+    .page-top {
+        font-size: .8em;
+        padding: 5px 1em 5px 5px;
+        text-align: right;
+    }
+
     .one-column #primary {float: none;}
     .one-column #secondary {float: none;}
     .two-columns-left #primary {float: right;}
@@ -901,6 +907,10 @@ function Page::print()
         $this->print_module_section("three");
         println "<div>";
 
+        println "<div id=\"body-footer\">";
+            print safe """<div class="page-top"><a href="#">$*text_page_top</a></div>""";
+        println "</div>";
+
     $this->print_wrapper_end();
     println "</html>";
 }
--------------------------------------------------------------------------------

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