Skip to content

Commit bb4a78f

Browse files
Merge #990
990: Adds a title to elaborate on how we count recent downloads. r=carols10cents On http://crates.io/categories/no-std, we list "All time downloads" and "Recent downloads" without explaining how recent the recent downloads are. This diff just adds an `<abbr>` element with a title to explain: ![image](https://user-images.githubusercontent.com/80639/29497273-54792342-85b3-11e7-96ee-16dcd71f99f6.png) The default `<abbr>` styles on my browser made this illegible (Brave on OS X) so I replaced the default abbr style with a border-bottom, but it could potentially be changed to use a newer CSS property (text-decoration-position).
2 parents 02860b5 + 8b8bdaa commit bb4a78f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/styles/app.scss

+5
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,8 @@ h1 {
350350
a.arrow svg {
351351
background: #EEECDD;
352352
}
353+
354+
abbr[title] {
355+
text-decoration: none;
356+
border-bottom: 1px dotted;
357+
}

app/templates/components/crate-row.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</div>
2525
<div class="recent-downloads">
2626
{{svg-jar "download"}}
27-
<span class='num'>Recent: {{ format-num crate.recent_downloads }}</span>
27+
<span class='num'><abbr title="Downloads in the last 90 days">Recent:</abbr> {{ format-num crate.recent_downloads }}</span>
2828
</div>
2929
</div>
3030
<div class="quick-links">

0 commit comments

Comments
 (0)