Use HTML5 picture element to prefer SVG logo
This commit is contained in:
parent
284b56bee9
commit
ecc4b64a23
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
<header class="closed">
|
<header class="closed">
|
||||||
<h1>
|
<h1>
|
||||||
<a href="<%= root_path %>" class="geolink">
|
<a href="<%= root_path %>" class="geolink">
|
||||||
<%= image_tag "osm_logo.png", :alt => t('layouts.logo.alt_text'), :class => 'logo' %>
|
<picture>
|
||||||
|
<source srcset="<%= image_path "osm_logo.svg" %>" type="image/svg+xml">
|
||||||
|
<%= image_tag "osm_logo.png", :alt => t('layouts.logo.alt_text'), :class => 'logo' %>
|
||||||
|
</picture>
|
||||||
<%= t 'layouts.project_name.h1' %>
|
<%= t 'layouts.project_name.h1' %>
|
||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue