show hidpi images for avatars, site load icon, and favicon
This commit is contained in:
parent
37994c0306
commit
1e6b892005
|
@ -276,6 +276,14 @@ div#inside {
|
||||||
margin-right: 11px;
|
margin-right: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-resolution: 2dppx) {
|
||||||
|
#l_holder {
|
||||||
|
background: #ee0000 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QAAAD/AAauuCqnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wsCAS8I72AnqAAAACZpVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVAgb24gYSBNYWOV5F9bAAABE0lEQVRYw+2WMUoEMRSG34uDs4jaW1go2HgBvYOdjb3VnsDKSvAAdh7BM4i9LNiJsJ3gtDMqKDOzZOaLjcIimXUZd3dE8kGa5Cf5XlLkiQQCHaNNC1VVHRhjLqbZBOhHUXTTRiCasFZ+jh1VXfYFnHNvIjJ0zo3mdkVlWW4D7+4bwGOWZWsLeSfg2iNwOYu9zZS5Z8/c6yIF5kYQCAJB4H8LAGfAeScCRVFsisipiBx2IhDHcV9VVUTqWQise+ZWmsLW2n0ROflqLX5VSZqmq0Dq+Q2HeZ5vjGeTJOnVdX0MvIzl7lodbK3dA66AJ9cAUAEPwC1wD4w8mUGrjsgYs6WqRxP7OdUlEdn9oZZKAoHAX+YDqSbY/ekOWr0AAAAASUVORK5CYII=) no-repeat;
|
||||||
|
background-size: 16px;
|
||||||
|
background-position: 1px 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#header h1 {
|
#header h1 {
|
||||||
font-size: 11pt;
|
font-size: 11pt;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<meta name="robots" content="noarchive,noodp,noydir" />
|
<meta name="robots" content="noarchive,noodp,noydir" />
|
||||||
<meta name="referrer" content="always" />
|
<meta name="referrer" content="always" />
|
||||||
<meta name="theme-color" content="#AC130D" />
|
<meta name="theme-color" content="#AC130D" />
|
||||||
|
<link rel="shortcut icon" href="/favicon.ico" />
|
||||||
<% if @short_url %>
|
<% if @short_url %>
|
||||||
<link rev="canonical" rel="self alternate shorter shorturl shortlink"
|
<link rev="canonical" rel="self alternate shorter shorturl shortlink"
|
||||||
href="<%= @short_url %>" />
|
href="<%= @short_url %>" />
|
||||||
|
|
|
@ -61,7 +61,8 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %>
|
||||||
<span class="byline">
|
<span class="byline">
|
||||||
<% if @user && @user.show_avatars? %>
|
<% if @user && @user.show_avatars? %>
|
||||||
<a href="/u/<%= ms.user.username %>"><img
|
<a href="/u/<%= ms.user.username %>"><img
|
||||||
src="<%= ms.user.avatar_url(16) %>" class="avatar"></a>
|
src="<%= ms.user.avatar_url(16) %>"
|
||||||
|
srcset="<%= ms.user.avatar_url(32) %> 32w" class="avatar"></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if story.user_is_author? %>
|
<% if story.user_is_author? %>
|
||||||
|
@ -89,7 +90,8 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %>
|
||||||
<div class="byline">
|
<div class="byline">
|
||||||
<% if @user && @user.show_avatars? %>
|
<% if @user && @user.show_avatars? %>
|
||||||
<a href="/u/<%= story.user.username %>"><img
|
<a href="/u/<%= story.user.username %>"><img
|
||||||
src="<%= story.user.avatar_url(16) %>" class="avatar"></a>
|
src="<%= story.user.avatar_url(16) %>"
|
||||||
|
srcset="<%= story.user.avatar_url(32) %> 32w" class="avatar"></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if story.user_is_author? %>
|
<% if story.user_is_author? %>
|
||||||
authored
|
authored
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
|
|
||||||
<% if @showing_user.is_active? %>
|
<% if @showing_user.is_active? %>
|
||||||
<div id="gravatar">
|
<div id="gravatar">
|
||||||
<img src="<%= @showing_user.avatar_url %>">
|
<img src="<%= @showing_user.avatar_url(100) %>"
|
||||||
|
srcset="<%= @showing_user.avatar_url(200) %> 200w">
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 11 KiB |
Loading…
Reference in a new issue