From f308c9f7b06e28441abf64a9b3183e7ed04de7b0 Mon Sep 17 00:00:00 2001 From: Mark Holmquist Date: Wed, 11 Jun 2014 16:08:17 -0700 Subject: [PATCH] Make preview link more prominent Also cleaned up the SVG. I hate Illustrator so much for what it does to SVGs. Change-Id: I3c1b8b812ed50ad65a8c2f53835e440bfd2e77ac --- i18n/en.json | 2 +- resources/mmv/ui/img/open.svg | 11 +---------- resources/mmv/ui/mmv.ui.reuse.download.less | 19 +++++++++++++++++-- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 0b4c09b04..ae5840719 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -58,7 +58,7 @@ "multimediaviewer-share-tab": "Share", "multimediaviewer-embed-tab": "Embed", "multimediaviewer-download-tab": "Download", - "multimediaviewer-download-preview-link-title": "Preview in browser", + "multimediaviewer-download-preview-link-title": "View in browser", "multimediaviewer-download-original-button-name": "Download original file", "multimediaviewer-download-small-button-name": "Download small size", "multimediaviewer-download-medium-button-name": "Download medium size", diff --git a/resources/mmv/ui/img/open.svg b/resources/mmv/ui/img/open.svg index f9b8378fe..ee0c5d4fb 100644 --- a/resources/mmv/ui/img/open.svg +++ b/resources/mmv/ui/img/open.svg @@ -1,13 +1,4 @@ - - - - - - + diff --git a/resources/mmv/ui/mmv.ui.reuse.download.less b/resources/mmv/ui/mmv.ui.reuse.download.less index 8b27b3929..50f9a6a0b 100644 --- a/resources/mmv/ui/mmv.ui.reuse.download.less +++ b/resources/mmv/ui/mmv.ui.reuse.download.less @@ -38,8 +38,23 @@ .mw-mlb-download-preview-link { display: block; - font-size: small; margin-top: 12px; + margin-left: -6px; + font-size: 16px; + color: #555555; + + &:before { + display: inline-block; + vertical-align: middle; + content: ' '; + width: 44px; + height: 30px; + /* @embed */ + background-image: url(img/open.svg); + background-size: contain; + background-position: right center; + background-repeat: no-repeat; + } } /* Pulldown size menu */ @@ -60,4 +75,4 @@ } } -} \ No newline at end of file +}