Move "close help" link to bottom right corner to match "what's this".

This commit is contained in:
Max Goodman
2012-07-27 00:23:02 -07:00
parent 1c73304fe7
commit da309ce65d
2 changed files with 8 additions and 18 deletions

View File

@@ -884,7 +884,7 @@ a.author { margin-right: 0.5em; }
text-decoration: underline;
}
.help a.open {
.help a.open, .help a.close {
margin: 0px 5px 5px 0;
position: absolute;
right: 0px;
@@ -893,6 +893,7 @@ a.author { margin-right: 0.5em; }
.help.help-cover {
position: relative;
background-color: #F8F8F8;
border: 1px solid gray;
font-size: 110%;

View File

@@ -51,14 +51,6 @@
</div>
</div>
<%
fmt = _("Click %(here)s to close help.")
title = _("here")
link = '<a class="close" href="javascript:void(0)">%s</a>' % title
link = (fmt % dict(here = link))
link = unsafe(link.replace(" <", "&#32;<").replace("> ", ">&#32;"))
%>
<div class="help help-cover promoted">
<p>
This sponsored link is an advertisement generated with our&#32;<a href="http://www.reddit.com/help/selfservicepromotion">self-serve advertisement tool.</a>&#32.
@@ -66,9 +58,9 @@
<p>
Use of this tool is open to all members or reddit.com, and for as little as $20 you can advertise in this area.&#32;<a href="/ad_inq">Get started &raquo;</a>
</p>
<p>
${link}
</p>
<div class="help">
<a class="close" href="javascript:void(0)">${_("close help")}</a>
</div>
</div>
<div class="help help-cover organic">
@@ -83,13 +75,10 @@
format = _("Click %(here)s to disable this feature."),
format_arg = "here",
hidden_data = dict(id="organic"))}
%else:
<p>
%endif
${link}
%if not c.user_is_loggedin:
</p>
%endif
<div class="help">
<a class="close" href="javascript:void(0)">${_("close help")}</a>
</div>
</div>
<script type="text/javascript">