From 8c4b2941c51b469c4f0c772f520397ceedb0fb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Thu, 31 Oct 2019 15:51:52 +0100 Subject: [PATCH] =?UTF-8?q?Don't=20require=20knowledge=20of=20sprite=20row?= =?UTF-8?q?=20count=20Signed-off-by:=20Raimund=20Schl=C3=BC=C3=9Fler=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/src/style.scss | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/css/src/style.scss b/css/src/style.scss index 3f17af9e..bab8bae0 100644 --- a/css/src/style.scss +++ b/css/src/style.scss @@ -774,19 +774,14 @@ padding: 10px; height: 44px; width: 44px; + display: flex; + align-items: center; + justify-content: center; .icon { - height: 24px; - width: 24px; - &.icon-color { - /* 16px per icon, 4 rows, scale by factor 1.5, keep aspect ratio */ - background-size: calc(1.5 * 4 * 16px) auto; - } - - &.icon-bw { - /* 16px per icon, 6 rows, scale by factor 1.5, keep aspect ratio */ - background-size: calc(1.5 * 6 * 16px) auto; - } + height: 16px; + width: 16px; + transform: scale(1.5); } } }