This commit offers up Unicode arrow symbols in place of the arrow icons,
again in the effort to save one or two HTTP requests per page.
The layout is trickier, though, so could benefit greatly from someone
with more CSS experience and / or patience.
Signed-off-by: Dan Scott <dan@coffeecode.net>
[%- IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %]
<div class="rdetail_show_copies">
<a href="[% mkurl('', {copy_limit => more_copies_limit, copy_offset => 0}) %]"><span
- class="charsign">+</span>[% l('Show more copies') %]</a>
+ class="charsign"><span>+</span></span>[% l('Show more copies') %]</a>
</div>
[%- ELSIF ctx.copy_limit == more_copies_limit %]
<div class="rdetail_show_copies">
[%
IF tab_is_active(name);
href = mkurl('', {}, ['expand']);
- img_url = ctx.media_prefix _ '/images/rdetail_arrow_down.png';
+ symbol = "▾";
ELSE;
href = mkurl('', {expand => name}) _ '#' _ name;
- img_url = ctx.media_prefix _ '/images/rdetail_arrow.png';
+ symbol = "▸";
END;
%]
- <a name='[% name %]' href='[% href %]'><img alt='[% extra.label %]' src='[% img_url %]'/></a>
+ <a name='[% name %]' href='[% href %]' class='nakedlink'><span
+ class="charsign circle"><span>[% symbol %]</span></span></a>
<a href='[% href %]' class="rdetail_extras_lbl">[% extra.label %]</a>
</div>
</div>
.rdetail_extras_lbl {
position: relative;
- top: -4px;
left: 7px;
color: white;
}
table.result_holdings_table thead tr th {
font-weight: bold;
}
-.charsign {
- vertical-align: middle;
+span.charsign {
+ position: relative;
+ top: -.5em;
+ text-align: center;
+ display: inline-block;
font-weight: bold;
- padding: 5px 10px;
+ width: 2em;
+ height: 2em;
margin: .5em;
color: white;
background-color: #00593d;
border-radius: 4px;
}
-a.charsign, a.charsign:hover {
- text-decoration: none
+span.charsign span {
+ position: relative;
+ top: .5em;
+}
+span.charsign.circle {
+ border-radius: 50%;
+ margin-bottom: 3em;
+}
+div.rdetail_extras_link span.charsign {
+ color: #00593d;
+ background-color: #dff9ed;
+}
+a.nakedlink {
+ text-decoration: none;
}