From 3324c71013ca994e359d40a5a498e138466f73bb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 Jan 2021 13:22:50 -0800 Subject: move translate icon to CSS --- fatcat_scholar/static/scholar.css | 16 ++++++++++++++++ fatcat_scholar/templates/base.html | 6 ++---- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/static/scholar.css b/fatcat_scholar/static/scholar.css index 5f63e6c..e0cc2a3 100644 --- a/fatcat_scholar/static/scholar.css +++ b/fatcat_scholar/static/scholar.css @@ -229,3 +229,19 @@ details.serp-action-menu > .citation-menu { margin-top: 0em; } } + +.translate-dropdown { + padding-top: 0!important; + padding-bottom: 0!important; +} + +.translate-icon { + display: inline-block; + vertical-align: middle; + height: 1.5em; + width: 1.5em; + margin-right: 0.25em; + background-size: contain; + background-repeat: no-repeat; + background-image: url('data:image/svg+xml;utf8,'); +} diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 3ccdcdd..19d28a4 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -56,10 +56,8 @@