Skip to content

Commit

Permalink
Updating class name to rubygem version and reducing font size to fit …
Browse files Browse the repository at this point in the history
…longer timespans.
  • Loading branch information
robbyrussell committed Jan 13, 2024
1 parent 1173df9 commit 30c984d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/assets/stylesheets/modules/gem.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@
font-size: 18px;
color: #141c22; }

.gem__ruby-version-age {
.gem__rubygem-version-age {
margin-top: 10px;
margin-bottom: 30px;
display: block;
font-weight: 800;
font-size: 16px;
font-size: 14px;
color: #141c22; }

.gem__code-wrap {
Expand Down
5 changes: 4 additions & 1 deletion app/views/rubygems/_aside.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@
<span class="gem__downloads"><%= number_with_delimiter(@latest_version.downloads_count) %></span>
</h2>
</div>


<h2 class="gem__ruby-version__heading t-list__heading">
<%= t('.gem_version_age') %>:
<span class="gem__ruby-version-age">
<span class="gem__rubygem-version-age">
<p><%= time_ago_in_words(@latest_version.authored_at) %> ago</p>
</span>
</h2>

<h2 class="gem__ruby-version__heading t-list__heading">
<%= pluralized_licenses_header @latest_version %>:
<span class="gem__ruby-version">
Expand Down

0 comments on commit 30c984d

Please sign in to comment.