From 7e2e92909e8b407ee7e555ab88d674d479120a8d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 4 Jun 2019 13:57:56 +0200 Subject: [PATCH] Elastic: Optimize svg images for size --- skins/elastic/images/contactgroup.svg | 12 ++--------- skins/elastic/images/contactpic.svg | 8 ++------ skins/elastic/images/corner-handle.svg | 7 ++----- skins/elastic/images/logo.svg | 24 +++++++++------------- skins/elastic/styles/variables.less | 2 +- skins/elastic/styles/widgets/jqueryui.less | 1 - 6 files changed, 17 insertions(+), 37 deletions(-) diff --git a/skins/elastic/images/contactgroup.svg b/skins/elastic/images/contactgroup.svg index c5237dc42..b85a926f0 100644 --- a/skins/elastic/images/contactgroup.svg +++ b/skins/elastic/images/contactgroup.svg @@ -1,11 +1,3 @@ - - - + + diff --git a/skins/elastic/images/contactpic.svg b/skins/elastic/images/contactpic.svg index ef2bdb3df..e2b7a02fb 100644 --- a/skins/elastic/images/contactpic.svg +++ b/skins/elastic/images/contactpic.svg @@ -1,7 +1,3 @@ - - - + + diff --git a/skins/elastic/images/corner-handle.svg b/skins/elastic/images/corner-handle.svg index ffbfb37f3..ecf8d065c 100644 --- a/skins/elastic/images/corner-handle.svg +++ b/skins/elastic/images/corner-handle.svg @@ -1,6 +1,3 @@ - - - - - + + diff --git a/skins/elastic/images/logo.svg b/skins/elastic/images/logo.svg index 1f50dd8a3..e3ee3fedd 100644 --- a/skins/elastic/images/logo.svg +++ b/skins/elastic/images/logo.svg @@ -1,15 +1,11 @@ - - - - - - - - - + + + + + + + + diff --git a/skins/elastic/styles/variables.less b/skins/elastic/styles/variables.less index 7e1968dfb..9686dfaca 100644 --- a/skins/elastic/styles/variables.less +++ b/skins/elastic/styles/variables.less @@ -53,5 +53,5 @@ @mail-header-photo-height: 4rem; // Additional icons -@icon-resize-corner: data-uri("image/svg+xml;charset=utf-8", "../images/corner-handle.svg"); // size: 512x512 +@icon-resize-corner: data-uri("image/svg+xml;charset=utf-8", "../images/corner-handle.svg"); // size: 16x16 @icon-file-drop: data-uri("image/svg+xml;charset=utf-8", "../images/download.svg"); diff --git a/skins/elastic/styles/widgets/jqueryui.less b/skins/elastic/styles/widgets/jqueryui.less index e56233dd0..56a060932 100644 --- a/skins/elastic/styles/widgets/jqueryui.less +++ b/skins/elastic/styles/widgets/jqueryui.less @@ -163,7 +163,6 @@ // Overwriting this icon generally prevents from loading bigger images sprite from jQuery-UI .ui-widget-content .ui-icon.ui-resizable-se { background: @icon-resize-corner; - background-size: cover; } /* FIXME: why do I need !important here? */