[dw-nonfree] "Back to Top" title link should be included in all Dreamwidth styles by defa
[commit: http://hg.dwscoalition.org/dw-nonfree/rev/9444406f998f]
http://bugs.dwscoalition.org/show_bug.cgi?id=3472
Add link back to top to transmogrified.
Patch by
ninetydegrees.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3472
Add link back to top to transmogrified.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/upgrading/s2layers/transmogrified/layout.s2
-------------------------------------------------------------------------------- diff -r 929537d71451 -r 9444406f998f bin/upgrading/s2layers/transmogrified/layout.s2 --- a/bin/upgrading/s2layers/transmogrified/layout.s2 Tue Feb 22 23:36:29 2011 +0800 +++ b/bin/upgrading/s2layers/transmogrified/layout.s2 Tue Feb 22 23:48:44 2011 +0800 @@ -284,6 +284,11 @@ function Page::print() $this->print_module_section("three"); """ </div> + <div id="body-footer"> + """; + print safe """<div class="page-top"><a href="#">$*text_page_top</a></div>"""; + """ + </div> """; $this->print_wrapper_end(); """ @@ -368,7 +373,7 @@ function Page::print_default_stylesheet $page_colors } - #container, #footer { + #container, #footer, #body-footer { margin: 0 $*margins_size$*margins_unit; } @@ -945,6 +950,25 @@ function Page::print_default_stylesheet width: 95%; } + #body-footer { + background-color: $*color_header_background; + color: $*color_header_text; + padding: .5em 0; + text-align: right; + } + + #body-footer a { + background-color: $*color_header_background; + color: $*color_header_text; + padding: .5em 20px; + text-decoration: none; + } + + #body-footer a:hover { + background-color: $*color_header_hover_background; + color: $*color_header_hover; + } + .one-column #content { float: none; } .one-column .module-section-two { float: none; padding-bottom: 10px; margin-bottom: 20px; } .one-column #wrap { padding-left: 20px; padding-right: 20px; } --------------------------------------------------------------------------------