commit 6a91ffe696cfc942e11dc1f56d2627ff0f9cdd5f Author: hiro hiro@torproject.org Date: Sun Mar 31 23:58:06 2019 +0200
Test css fallback for icons --- assets/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css | 1 + templates/navbar.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/assets/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css b/assets/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css index 56c4e5f..bd74bb4 100644 --- a/assets/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css +++ b/assets/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css @@ -93,6 +93,7 @@
.oi-arrow-bottom:before { content:'\e008'; + background-image: url('/static/fonts/open-iconic/png/arrow-bottom-2x.png'); }
.oi-arrow-circle-bottom:before { diff --git a/templates/navbar.html b/templates/navbar.html index b368dfe..8c6a286 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -55,7 +55,7 @@ {% set download = site.get('/download') %} <div class="pull-right"> <a class="btn btn-outline-light pull-right" href="{{ this.url_to(download)|url(alt=this.alt) }}"> - {{ _("Download Tor Browser") }}<span class="oi oi-arrow-bottom ml-2 p-1" title="icon arrow-bottom" aria-hidden="true"><img src="{{ 'static/fonts/open-iconic/png/arrow-bottom.png-2x'|asseturl }}"></span> + {{ _("Download Tor Browser") }}<span class="oi oi-arrow-bottom ml-2 p-1" title="icon arrow-bottom" aria-hidden="true"></span> </a> </div> </nav>